diff --git a/test/wpt/test-file.js b/test/wpt/test-file.js index a48b2fb55299b9..ca337359db263c 100644 --- a/test/wpt/test-file.js +++ b/test/wpt/test-file.js @@ -4,9 +4,4 @@ const { WPTRunner } = require('../common/wpt'); const runner = new WPTRunner('FileAPI/file'); -runner.setInitScript(` - const { File } = require('buffer'); - globalThis.File = File; -`); - runner.runJsTests(); diff --git a/test/wpt/test-structured-clone.js b/test/wpt/test-structured-clone.js index 26edf0607083a9..4dcd44ad6a40bb 100644 --- a/test/wpt/test-structured-clone.js +++ b/test/wpt/test-structured-clone.js @@ -4,9 +4,4 @@ const { WPTRunner } = require('../common/wpt'); const runner = new WPTRunner('html/webappapis/structured-clone'); -runner.setInitScript(` - const { File } = require('buffer'); - globalThis.File = File; -`); - runner.runJsTests();