test: remove hack for atob and btoa WPT tests

PR-URL: https://github.com/nodejs/node/pull/42540
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Khaidi Chu <i@2333.moe>
Reviewed-By: Mestery <mestery@protonmail.com>
This commit is contained in:
Antoine du Hamel authored and GitHub committed 2022-04-03 10:40:21 +01:00
1 parent b07dc4d19f
commit 48dbec8b60
1 file changed
-9
-9
View File
@@ -5,13 +5,4 @@ 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();