File tree Expand file tree Collapse file tree 1 file changed +1
-40
lines changed Expand file tree Collapse file tree 1 file changed +1
-40
lines changed Original file line number Diff line number Diff line change @@ -9,45 +9,6 @@ const { WPTRunner } = require('../common/wpt');
99const runner = new WPTRunner ( 'WebCryptoAPI' ) ;
1010
1111// Set Node.js flags required for the tests.
12- runner . setFlags ( [ '--expose-internals' ] ) ;
13-
14- // Set a script that will be executed in the worker before running the tests.
15- runner . setInitScript ( `
16- const {
17- Crypto,
18- SubtleCrypto,
19- crypto,
20- } = require('internal/crypto/webcrypto');
21- const { internalBinding } = require('internal/test/binding');
22- const { DOMException } = internalBinding('messaging');
23- global.DOMException = DOMException;
24-
25- Object.defineProperties(global, {
26- Crypto: {
27- value: Crypto,
28- configurable: true,
29- writable: true,
30- enumerable: false,
31- },
32- SubtleCrypto: {
33- value: SubtleCrypto,
34- configurable: true,
35- writable: true,
36- enumerable: false,
37- },
38- CryptoKey: {
39- value: crypto.CryptoKey,
40- configurable: true,
41- writable: true,
42- enumerable: false,
43- },
44- crypto: {
45- value: crypto,
46- configurable: true,
47- writable: true,
48- enumerable: false,
49- },
50- });
51- ` ) ;
12+ runner . setFlags ( [ '--experimental-global-webcrypto' ] ) ;
5213
5314runner . runJsTests ( ) ;
You can’t perform that action at this time.
0 commit comments