Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

fix: mark disposed dispatchers as such (#6051)

Yury Semikhatskye9f0f6c8942a
diff --git a/src/dispatchers/dispatcher.ts b/src/dispatchers/dispatcher.ts
index bd8909d7a7..aeee3d7708 100644
--- a/src/dispatchers/dispatcher.ts
+++ b/src/dispatchers/dispatcher.ts
@@ -91,6 +91,7 @@ export class Dispatcher<Type, Initializer> extends EventEmitter implements chann
_dispose() {
assert(!this._disposed);
+ this._disposed = true;
// Clean up from parent and connection.
if (this._parent)