We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 092af43 commit db8ad9aCopy full SHA for db8ad9a
test/wpt/test-encoding.js
@@ -3,10 +3,17 @@
3
// Flags: --expose-internals
4
5
require('../common');
6
+const { MessageChannel } = require('worker_threads');
7
const { WPTRunner } = require('../common/wpt');
8
const runner = new WPTRunner('encoding');
9
10
// Copy global descriptors from the global object
11
runner.copyGlobalsFromObject(global, ['TextDecoder', 'TextEncoder']);
12
13
+runner.defineGlobal('MessageChannel', {
14
+ get() {
15
+ return MessageChannel;
16
+ }
17
+});
18
+
19
runner.runJsTests();
0 commit comments