From 518535888782aed75085e8731a13de06698ccdc8 Mon Sep 17 00:00:00 2001 From: Luca Spinazzola Date: Mon, 26 Sep 2022 17:03:19 -0400 Subject: [PATCH] #584@patch: Fixes problem in the "global-registrator" package that makes it impossible to register Happy DOM globally again after unregistering it. --- packages/global-registrator/src/GlobalRegistrator.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/global-registrator/src/GlobalRegistrator.ts b/packages/global-registrator/src/GlobalRegistrator.ts index c0854cf54..bcc7c4de2 100644 --- a/packages/global-registrator/src/GlobalRegistrator.ts +++ b/packages/global-registrator/src/GlobalRegistrator.ts @@ -33,6 +33,7 @@ export default class GlobalRegistrator { } for (const key of this.registered) { delete global[key]; + this.registered.pop(); } } }