test: enable api-invalid-label.any.js in encoding WPTs

PR-URL: https://github.com/nodejs/node/pull/46506
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
Filip Skokan
2023-02-07 11:39:36 +01:00
committed by GitHub
parent 8e6e215481
commit 4d36ebddda
2 changed files with 2 additions and 4 deletions

View File

@@ -2,9 +2,6 @@
"api-basics.any.js": {
"requires": ["small-icu"]
},
"api-invalid-label.any.js": {
"skip": "location is not defined"
},
"textdecoder-fatal-streaming.any.js": {
"requires": ["small-icu"]
},
@@ -91,7 +88,7 @@
"requires": ["small-icu"]
},
"single-byte-decoder.window.js": {
"skip": "location is not defined"
"skip": "document is not defined"
},
"textdecoder-eof.any.js": {
"requires": ["small-icu"]

View File

@@ -4,6 +4,7 @@ const { WPTRunner } = require('../common/wpt');
const runner = new WPTRunner('encoding');
runner.setInitScript(`
globalThis.location ||= {};
const { MessageChannel } = require('worker_threads');
global.MessageChannel = MessageChannel;
`);