Skip to content

Conversation

JoelEinbinder
Copy link
Contributor

Moves the waitForEvent implementation into an ExtendedEventEmitter class.

This is step one if we want to add waitForEvent to Worker, Browser, and BrowserServer objects. All of these only have a 'close' event, but I still feel we should be consistent with our event emitters.

src/page.ts Outdated

constructor(delegate: PageDelegate, browserContext: BrowserContextBase) {
super();
super({
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we already inherit, perhaps use overridden methods instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure.

@JoelEinbinder JoelEinbinder merged commit 9e85f8d into microsoft:master Mar 31, 2020
debs-obrien pushed a commit to debs-obrien/playwright that referenced this pull request Jun 10, 2025
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants