From ee9fa968a9cd139aeefe470d767d1f046c1f0319 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Sat, 16 Nov 2024 23:21:51 -0800 Subject: [PATCH] Worker global override for node testing was moved to wallet, so remove it from custom polyfill. --- test/GLOBALS.mjs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/test/GLOBALS.mjs b/test/GLOBALS.mjs index 0ef5e2f..fa33be3 100644 --- a/test/GLOBALS.mjs +++ b/test/GLOBALS.mjs @@ -1,12 +1,6 @@ // SPDX-FileCopyrightText: 2024 Chris Duncan // SPDX-License-Identifier: GPL-3.0-or-later -if (globalThis.Worker == null) { - const { Worker } = await import('node:worker_threads') - Worker.prototype.addEventListener = Worker.prototype.on - globalThis.Worker = Worker -} - if (globalThis.sessionStorage == null) { const _sessionStorage = {} Object.defineProperty(globalThis, 'sessionStorage', { -- 2.34.1