Skip to content

Commit 0ad7f4b

Browse files
aduh95juanarbol
authored andcommitted
test: remove hack for atob and btoa WPT tests
PR-URL: #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>
1 parent 6dd0772 commit 0ad7f4b

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

test/wpt/test-atob.js

-11
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,4 @@ const { WPTRunner } = require('../common/wpt');
55

66
const runner = new WPTRunner('html/webappapis/atob');
77

8-
// Needed to access to DOMException.
9-
runner.setFlags(['--expose-internals']);
10-
11-
// Set a script that will be executed in the worker before running the tests.
12-
runner.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-
198
runner.runJsTests();

0 commit comments

Comments
 (0)