From 25abae6e7958c638e7608698508f494e60363e20 Mon Sep 17 00:00:00 2001 From: Jan Scheffler Date: Tue, 9 Feb 2021 11:39:15 +0100 Subject: [PATCH] chore(domworld): clear set (#6847) --- src/common/DOMWorld.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/DOMWorld.ts b/src/common/DOMWorld.ts index 02b42cac0dd..829c574b7a8 100644 --- a/src/common/DOMWorld.ts +++ b/src/common/DOMWorld.ts @@ -115,7 +115,7 @@ export class DOMWorld { async _setContext(context?: ExecutionContext): Promise { if (context) { - this._ctxBindings = new Set(); + this._ctxBindings.clear(); this._contextResolveCallback.call(null, context); this._contextResolveCallback = null; for (const waitTask of this._waitTasks) waitTask.rerun();