From 860b6cbd233760e867099960c4c69d3e28b9401b Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa Date: Wed, 22 Feb 2023 12:40:36 +0900 Subject: fix(ext/node): fix webcrypto export (#17838) --- ext/node/polyfills/crypto.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/node/polyfills') diff --git a/ext/node/polyfills/crypto.ts b/ext/node/polyfills/crypto.ts index b59158456..8c179e916 100644 --- a/ext/node/polyfills/crypto.ts +++ b/ext/node/polyfills/crypto.ts @@ -166,8 +166,8 @@ import type { TransformOptions, WritableOptions, } from "internal:deno_node/polyfills/_stream.d.ts"; +import { crypto as webcrypto } from "internal:deno_crypto/00_crypto.js"; -const webcrypto = globalThis.crypto; const fipsForced = getOptionValue("--force-fips"); function createCipheriv( -- cgit v1.2.3