blob: fbbea2453203c32d4f542220e68af0eb6fe4b6b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
'use strict';
// Flags: --expose-internals --experimental-worker
require('../common');
const { WPTRunner } = require('../common/wpt');
const runner = new WPTRunner('url');
// Copy global descriptors from the global object
runner.copyGlobalsFromObject(global, ['URL', 'URLSearchParams']);
// Needed by urlsearchparams-constructor.any.js
runner.defineGlobal('DOMException', {
get() {
return require('internal/domexception');
}
});
runner.runJsTests();
|