Skip to content

Commit 97a8e05

Browse files
panvaRafaelGSS
authored andcommitted
test: add all WebCryptoAPI globals to WPTRunner's loadLazyGlobals
PR-URL: #45857 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 56f3ad1 commit 97a8e05

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

test/common/wpt.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ class WPTRunner {
397397
'CompressionStream', 'DecompressionStream',
398398
];
399399
if (Boolean(process.versions.openssl) && !process.env.NODE_SKIP_CRYPTO) {
400-
lazyProperties.push('crypto');
400+
lazyProperties.push('crypto', 'Crypto', 'CryptoKey', 'SubtleCrypto');
401401
}
402402
const script = lazyProperties.map((name) => `globalThis.${name};`).join('\n');
403403
this.globalThisInitScripts.push(script);

test/wpt/status/WebCryptoAPI.json

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
"idlharness.https.any.js": {
2222
"fail": {
2323
"expected": [
24-
"Crypto interface: existence and properties of interface object",
2524
"CryptoKey interface: existence and properties of interface object",
2625
"Window interface: attribute crypto"
2726
]

0 commit comments

Comments
 (0)