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" ]