• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1'use strict';
2
3require('../common');
4const { WPTRunner } = require('../common/wpt');
5
6const runner = new WPTRunner('html/webappapis/atob');
7
8// Needed to access to DOMException.
9runner.setFlags(['--expose-internals']);
10
11// Set a script that will be executed in the worker before running the tests.
12runner.setInitScript(`
13  const { internalBinding } = require('internal/test/binding');
14  const { atob, btoa } = require('buffer');
15  const { DOMException } = internalBinding('messaging');
16  global.DOMException = DOMException;
17`);
18
19runner.runJsTests();
20