blob: 8734452940e84e78733394f904a98798b4ed3adc (
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
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();
|