From: Chris Duncan Date: Sun, 17 Nov 2024 07:21:51 +0000 (-0800) Subject: Worker global override for node testing was moved to wallet, so remove it from custom... X-Git-Tag: v0.0.20~14 X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=ee9fa968a9cd139aeefe470d767d1f046c1f0319;p=libnemo.git Worker global override for node testing was moved to wallet, so remove it from custom polyfill. --- 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', {