From 65d4f734e059e1eaf8f39ee529dac92a4c99de82 Mon Sep 17 00:00:00 2001 From: Joyee Cheung Date: Wed, 22 May 2019 15:50:17 +0200 Subject: [PATCH] test: use ShellTestEnvironment in WPT MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit So we no longer need to hack the global.location and pretend that we are in a worker anymore. PR-URL: https://github.com/nodejs/node/pull/27822 Reviewed-By: James M Snell Reviewed-By: Tobias Nießen Reviewed-By: Michaël Zasso --- test/common/wpt.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/test/common/wpt.js b/test/common/wpt.js index 60be82564bf229..8401d101dc881f 100644 --- a/test/common/wpt.js +++ b/test/common/wpt.js @@ -336,7 +336,6 @@ class WPTRunner { fetch(file) { return resource.fetch(file); }, - location: {}, GLOBAL: { isWindow() { return false; } }, @@ -375,8 +374,6 @@ class WPTRunner { // TODO(joyeecheung): we are not a window - work with the upstream to // add a new scope for us. - const { Worker } = require('worker_threads'); - sandbox.DedicatedWorker = Worker; // Pretend we are a Worker return context; }