1'use strict'; 2 3require('../common'); 4const { WPTRunner } = require('../common/wpt'); 5 6const runner = new WPTRunner('url'); 7 8// Needed to access to DOMException. 9runner.setFlags(['--expose-internals']); 10 11// DOMException is needed by urlsearchparams-constructor.any.js 12runner.setInitScript(` 13 const { internalBinding } = require('internal/test/binding'); 14 const { DOMException } = internalBinding('messaging'); 15 global.DOMException = DOMException; 16`); 17 18runner.runJsTests(); 19