summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/internal/crypto/scrypt.ts
diff options
context:
space:
mode:
authorKenta Moriuchi <moriken@kimamass.com>2024-01-11 07:37:25 +0900
committerGitHub <noreply@github.com>2024-01-10 15:37:25 -0700
commit515a34b4de222e35c7ade1b92614d746e73d4c2e (patch)
tree8284201fc826a33f12597959a8a8be14e0f524bd /ext/node/polyfills/internal/crypto/scrypt.ts
parentd4893eb51a01c5a692d8ca74a3b8ff95c5fd1d9f (diff)
refactor: use `core.ensureFastOps()` (#21888)
Diffstat (limited to 'ext/node/polyfills/internal/crypto/scrypt.ts')
-rw-r--r--ext/node/polyfills/internal/crypto/scrypt.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/node/polyfills/internal/crypto/scrypt.ts b/ext/node/polyfills/internal/crypto/scrypt.ts
index 49dd815c6..7de5a3ab8 100644
--- a/ext/node/polyfills/internal/crypto/scrypt.ts
+++ b/ext/node/polyfills/internal/crypto/scrypt.ts
@@ -29,9 +29,9 @@ SOFTWARE.
import { Buffer } from "node:buffer";
import { HASH_DATA } from "ext:deno_node/internal/crypto/types.ts";
-const { core } = globalThis.__bootstrap;
-const { ops } = core;
+import { core } from "ext:core/mod.js";
const {
+ op_node_scrypt_sync,
op_node_scrypt_async,
} = core.ensureFastOps();
@@ -78,7 +78,7 @@ export function scryptSync(
}
const buf = Buffer.alloc(keylen);
- ops.op_node_scrypt_sync(
+ op_node_scrypt_sync(
password,
salt,
keylen,