Refs: https://github.com/nodejs/node/issues/39098 PR-URL: https://github.com/nodejs/node/pull/39176 Fixes: https://github.com/nodejs/node/issues/39098 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Zijian Liu <lxxyxzj@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
17 lines
455 B
JavaScript
17 lines
455 B
JavaScript
'use strict';
|
|
|
|
require('../common');
|
|
const { WPTRunner } = require('../common/wpt');
|
|
|
|
const runner = new WPTRunner('html/webappapis/atob');
|
|
|
|
// Needed to access to DOMException.
|
|
runner.setFlags(['--expose-internals']);
|
|
|
|
// Set a script that will be executed in the worker before running the tests.
|
|
runner.setInitScript(`
|
|
const { internalBinding } = require('internal/test/binding');
|
|
const { atob, btoa } = require('buffer');
|
|
`);
|
|
|
|
runner.runJsTests();
|