mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
Co-authored-by: Daniel Lemire <daniel@lemire.me> PR-URL: https://github.com/nodejs/node/pull/56452 Reviewed-By: Daniel Lemire <daniel@lemire.me> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Jordan Harband <ljharb@gmail.com> Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
11 lines
303 B
JavaScript
11 lines
303 B
JavaScript
'use strict';
|
|
|
|
const { WPTRunner } = require('../common/wpt');
|
|
|
|
const runner = new WPTRunner('urlpattern');
|
|
|
|
runner.pretendGlobalThisAs('Window');
|
|
// TODO(@anonrig): Remove this once URLPattern is global.
|
|
runner.setInitScript(`global.URLPattern = require('node:url').URLPattern;`);
|
|
runner.runJsTests();
|