PR-URL: https://github.com/nodejs/node/pull/43455 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
18 lines
378 B
JavaScript
18 lines
378 B
JavaScript
'use strict';
|
|
|
|
const common = require('../common');
|
|
if (!common.hasCrypto)
|
|
common.skip('missing crypto');
|
|
|
|
const { WPTRunner } = require('../common/wpt');
|
|
|
|
const runner = new WPTRunner('WebCryptoAPI');
|
|
|
|
// Set Node.js flags required for the tests.
|
|
runner.setFlags(['--experimental-global-webcrypto']);
|
|
|
|
runner.setInitScript(`
|
|
global.location = {};
|
|
`);
|
|
|
|
runner.runJsTests();
|