Skip to content

Commit

Permalink
test: add all WebCryptoAPI globals to WPTRunner's loadLazyGlobals
Browse files Browse the repository at this point in the history
PR-URL: #45857
Reviewed-By: Antoine du Hamel <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
panva authored and RafaelGSS committed Jan 5, 2023
1 parent 56f3ad1 commit 97a8e05
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion test/common/wpt.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 0 additions & 1 deletion test/wpt/status/WebCryptoAPI.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
Expand Down

0 comments on commit 97a8e05

Please sign in to comment.