summaryrefslogtreecommitdiff
path: root/test/wpt/test-encoding.js
blob: 8cd0d5e04e0b7b554cb51370950797cf4fa2b744 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
'use strict';
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();