diff --git a/ops/op2/README.md b/ops/op2/README.md
index e5f4413c8..e43607347 100644
--- a/ops/op2/README.md
+++ b/ops/op2/README.md
@@ -144,6 +144,20 @@ Uint32, Int32, Number, BigInt
+
+
```rust
#[bigint] i64
```
diff --git a/ops/op2/mod.rs b/ops/op2/mod.rs
index 3a9512688..c1e9be891 100644
--- a/ops/op2/mod.rs
+++ b/ops/op2/mod.rs
@@ -472,8 +472,8 @@ deno_ops_compile_test_runner::prelude!();";
let md = include_str!("valid_args.md");
let separator = "\n\n";
let end_separator = "\n\n";
- let (header, remainder) =
- split_readme(include_str!("README.md"), separator, end_separator);
+ let readme = std::fs::read_to_string("op2/README.md").unwrap();
+ let (header, remainder) = split_readme(&readme, separator, end_separator);
let mut actual = format!("{header}{separator}Rust | Fastcall | v8 | \n");
@@ -517,10 +517,8 @@ deno_ops_compile_test_runner::prelude!();";
std::fs::write("op2/README.md", actual)
.expect("Failed to write expectation file");
} else {
- let expected = std::fs::read_to_string("op2/README.md")
- .expect("Failed to read expectation file");
assert_eq!(
- expected, actual,
+ readme, actual,
"Failed to match expectation. Use UPDATE_EXPECTED=1."
);
}
@@ -533,8 +531,8 @@ deno_ops_compile_test_runner::prelude!();";
let md = include_str!("valid_retvals.md");
let separator = "\n\n";
let end_separator = "\n\n";
- let (header, remainder) =
- split_readme(include_str!("README.md"), separator, end_separator);
+ let readme = std::fs::read_to_string("op2/README.md").unwrap();
+ let (header, remainder) = split_readme(&readme, separator, end_separator);
let mut actual = format!("{header}{separator}Rust | Fastcall | v8 | \n");
parse_md(md, |line, components| {
@@ -578,10 +576,8 @@ deno_ops_compile_test_runner::prelude!();";
std::fs::write("op2/README.md", actual)
.expect("Failed to write expectation file");
} else {
- let expected = std::fs::read_to_string("op2/README.md")
- .expect("Failed to read expectation file");
assert_eq!(
- expected, actual,
+ readme, actual,
"Failed to match expectation. Use UPDATE_EXPECTED=1."
);
}
diff --git a/ops/op2/valid_args.md b/ops/op2/valid_args.md
index 01311558f..fd46cba76 100644
--- a/ops/op2/valid_args.md
+++ b/ops/op2/valid_args.md
@@ -7,6 +7,7 @@
| X | u16 | X | Uint32, Int32, Number, BigInt | |
| X | i32 | X | Uint32, Int32, Number, BigInt | |
| X | u32 | X | Uint32, Int32, Number, BigInt | |
+| X | #[smi] ResourceId | X | Uint32, Int32, Number, BigInt | |
| X | #[bigint] i64 | X | Uint32, Int32, Number, BigInt | |
| X | #[bigint] u64 | X | Uint32, Int32, Number, BigInt | |
| X | #[bigint] isize | X | Uint32, Int32, Number, BigInt | |
diff --git a/ops/op2/valid_retvals.md b/ops/op2/valid_retvals.md
index bdac9e522..1dda39abe 100644
--- a/ops/op2/valid_retvals.md
+++ b/ops/op2/valid_retvals.md
@@ -7,6 +7,7 @@
| X | u16 | X | Uint32 | |
| X | i32 | X | Int32 | |
| X | u32 | X | Uint32 | |
+| X | #[smi] ResourceId | X | Int32 | |
| X | #[bigint] i64 | | BigInt | |
| X | #[bigint] u64 | | BigInt | |
| X | #[bigint] isize | | BigInt | |
|