Skip to content

Commit

Permalink
cherry-pick(#15430): chore: respect event name in removeAllListeners
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelfeldman committed Jul 6, 2022
1 parent 741e338 commit a2acf76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/playwright-core/src/client/joiningEventEmitter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export class JoiningEventEmitter implements EventEmitter {
}

removeAllListeners(event?: string | symbol | undefined): this {
this._emitterDelegate.removeAllListeners();
this._emitterDelegate.removeAllListeners(event);
return this;
}

Expand Down

0 comments on commit a2acf76

Please sign in to comment.