test: add all WebCryptoAPI globals to WPTRunner's loadLazyGlobals

PR-URL: https://github.com/nodejs/node/pull/45857
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Filip Skokan
2022-12-14 11:51:31 +01:00
committed by Node.js GitHub Bot
parent 560b24398c
commit e8b56fb152
2 changed files with 1 additions and 2 deletions

View File

@@ -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);

View File

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