summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/internal/crypto
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 /ext/node/polyfills/internal/crypto
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 'ext/node/polyfills/internal/crypto')
-rw-r--r--ext/node/polyfills/internal/crypto/random.ts6
1 files changed, 1 insertions, 5 deletions
diff --git a/ext/node/polyfills/internal/crypto/random.ts b/ext/node/polyfills/internal/crypto/random.ts
index 4890e158a..9156ab4e1 100644
--- a/ext/node/polyfills/internal/crypto/random.ts
+++ b/ext/node/polyfills/internal/crypto/random.ts
@@ -37,11 +37,7 @@ const {
op_node_gen_prime_async,
op_node_check_prime_bytes_async,
op_node_check_prime_async,
-} = Deno.core.generateAsyncOpHandler(
- "op_node_gen_prime_async",
- "op_node_check_prime_bytes_async",
- "op_node_check_prime_async",
-);
+} = Deno.core.ensureFastOps();
export type LargeNumberLike =
| ArrayBufferView