chore(domworld): clear set (#6847)

This commit is contained in:
Jan Scheffler 2021-02-09 11:39:15 +01:00 committed by GitHub
parent de904db51d
commit 25abae6e79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -115,7 +115,7 @@ export class DOMWorld {
async _setContext(context?: ExecutionContext): Promise<void> {
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();