diff --git a/test/wpt/status/encoding.json b/test/wpt/status/encoding.json index 411bc3401b04c1..f39fc321f2a210 100644 --- a/test/wpt/status/encoding.json +++ b/test/wpt/status/encoding.json @@ -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"] diff --git a/test/wpt/test-encoding.js b/test/wpt/test-encoding.js index b297648d9cb7ee..901f53e00e22f0 100644 --- a/test/wpt/test-encoding.js +++ b/test/wpt/test-encoding.js @@ -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; `);