mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
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:
committed by
Node.js GitHub Bot
parent
560b24398c
commit
e8b56fb152
@@ -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);
|
||||
|
||||
@@ -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"
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user