From 33c7983692a94a0d70134061ad29ed5a6a0afc73 Mon Sep 17 00:00:00 2001 From: Matteo Collina Date: Mon, 18 Dec 2023 16:45:45 +0100 Subject: [PATCH] fixup Signed-off-by: Matteo Collina --- lib/ours/util.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ours/util.js b/lib/ours/util.js index 3755afe71..9896a1cec 100644 --- a/lib/ours/util.js +++ b/lib/ours/util.js @@ -2,8 +2,8 @@ const bufferModule = require('buffer') const { kResistStopPropagation, SymbolDispose } = require('./primordials') -const AbortSignal = global.AbortSignal || require('abort-controller').AbortSignal -const AbortController = global.AbortController || require('abort-controller').AbortController +const AbortSignal = globalThis.AbortSignal || require('abort-controller').AbortSignal +const AbortController = globalThis.AbortController || require('abort-controller').AbortController const AsyncFunction = Object.getPrototypeOf(async function () {}).constructor const Blob = globalThis.Blob || bufferModule.Blob /* eslint-disable indent */