blob: 8145debd66a11afd50509b6fc65b113840f9d420 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
'use strict';
// Flags: --expose-internals
require('../common');
const { MessageChannel } = require('worker_threads');
const { WPTRunner } = require('../common/wpt');
const runner = new WPTRunner('encoding');
// Copy global descriptors from the global object
runner.copyGlobalsFromObject(global, ['TextDecoder', 'TextEncoder']);
runner.defineGlobal('MessageChannel', {
get() {
return MessageChannel;
}
});
runner.runJsTests();
|