Skip to content

Commit bed28f2

Browse files
committed
test: fix missing location on web-platform tests
1 parent fa397eb commit bed28f2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/wpt/test-url.js

+3
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,7 @@ runner.setScriptModifier((obj) => {
1414
}
1515
});
1616
runner.pretendGlobalThisAs('Window');
17+
runner.setInitScript(`
18+
globalThis.location = {};
19+
`);
1720
runner.runJsTests();

0 commit comments

Comments
 (0)