Skip to content

Commit

Permalink
test: remove hack for atob and btoa WPT tests
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
aduh95 authored and juanarbol committed May 31, 2022
1 parent 6dd0772 commit 0ad7f4b
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions test/wpt/test-atob.js
Expand Up @@ -5,15 +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');
const { DOMException } = internalBinding('messaging');
global.DOMException = DOMException;
`);

runner.runJsTests();

0 comments on commit 0ad7f4b

Please sign in to comment.