summaryrefslogtreecommitdiff
path: root/core/runtime.rs
diff options
context:
space:
mode:
authorMatt Mastracci <matthew@mastracci.com>2023-06-06 03:01:28 -0600
committerGitHub <noreply@github.com>2023-06-06 11:01:28 +0200
commit0bbdbace02d8b17a02bd3c631b82f508d0effa4a (patch)
tree836c1faac1dd7e1afc358255554f88e934f282be /core/runtime.rs
parent5c55f2b4fb9f386d5589e4cbd4c513ecb1bae50b (diff)
refactor(core): ensureFastOps is an op-generating proxy (#19377)
Startup benchmark shows no changes (within 1ms, identical system/user times).
Diffstat (limited to 'core/runtime.rs')
-rw-r--r--core/runtime.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/runtime.rs b/core/runtime.rs
index fdcb81e9e..a27717a8b 100644
--- a/core/runtime.rs
+++ b/core/runtime.rs
@@ -2852,7 +2852,7 @@ pub mod tests {
.execute_script_static(
"filename.js",
r#"
- const { op_test } = Deno.core.generateAsyncOpHandler("op_test");
+ const { op_test } = Deno.core.ensureFastOps();
let zero_copy_a = new Uint8Array([0]);
op_test(null, zero_copy_a);
"#,
@@ -4942,7 +4942,7 @@ Deno.core.opAsync("op_async_serialize_object_with_numbers_as_keys", {
throw new Error();
}
- const { op_test_async } = Deno.core.generateAsyncOpHandler("op_test_async");
+ const { op_test_async } = Deno.core.ensureFastOps();
if (op_test_async.name !== "op_test_async") {
throw new Error();
}