From 97a8e055be95d0f40cdd7625dd044866040b7129 Mon Sep 17 00:00:00 2001 From: Filip Skokan Date: Wed, 14 Dec 2022 11:51:31 +0100 Subject: [PATCH] test: add all WebCryptoAPI globals to WPTRunner's loadLazyGlobals PR-URL: https://github.com/nodejs/node/pull/45857 Reviewed-By: Antoine du Hamel Reviewed-By: James M Snell --- test/common/wpt.js | 2 +- test/wpt/status/WebCryptoAPI.json | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/test/common/wpt.js b/test/common/wpt.js index 5e3f07a86db143..dcf5d943416950 100644 --- a/test/common/wpt.js +++ b/test/common/wpt.js @@ -397,7 +397,7 @@ class WPTRunner { 'CompressionStream', 'DecompressionStream', ]; if (Boolean(process.versions.openssl) && !process.env.NODE_SKIP_CRYPTO) { - lazyProperties.push('crypto'); + lazyProperties.push('crypto', 'Crypto', 'CryptoKey', 'SubtleCrypto'); } const script = lazyProperties.map((name) => `globalThis.${name};`).join('\n'); this.globalThisInitScripts.push(script); diff --git a/test/wpt/status/WebCryptoAPI.json b/test/wpt/status/WebCryptoAPI.json index 0eee00e0705e34..78a79a71920c6f 100644 --- a/test/wpt/status/WebCryptoAPI.json +++ b/test/wpt/status/WebCryptoAPI.json @@ -21,7 +21,6 @@ "idlharness.https.any.js": { "fail": { "expected": [ - "Crypto interface: existence and properties of interface object", "CryptoKey interface: existence and properties of interface object", "Window interface: attribute crypto" ]