mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
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:
@@ -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"]
|
||||
|
||||
@@ -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;
|
||||
`);
|
||||
|
||||
Reference in New Issue
Block a user