Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

emit newListener event before new listener is added #10993

Merged
merged 5 commits into from
May 13, 2024

Conversation

gvilums
Copy link
Contributor

@gvilums gvilums commented May 10, 2024

What does this PR do?

Emits the newListener event before the new listener is added to the EventEmitter. This was already correct in our EventEmitter implementation in events.ts, but wrong in JSEventEmitter.cpp, upon which our implementation of node:stream relies.

This fixes the current issue in #3150. However, the got library still doesn't work after this change (although it gets much further along in making a request).

How did you verify your code works?

A new test

Copy link
Contributor

github-actions bot commented May 10, 2024

@gvilums, your commit has failing tests :(

💪 3 failing tests Darwin AARCH64

💻 2 failing tests Darwin x64 baseline

💻 1 failing tests Darwin x64

🐧💪 2 failing tests Linux AARCH64

🐧🖥 1 failing tests Linux x64

🪟💻 10 failing tests Windows x64 baseline

🪟💻 10 failing tests Windows x64

View logs

@Jarred-Sumner
Copy link
Collaborator

@nektro st test is flaky

Copy link
Collaborator

@Jarred-Sumner Jarred-Sumner left a comment

Choose a reason for hiding this comment

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

1 comment on the test

@Jarred-Sumner Jarred-Sumner merged commit 89d68de into main May 13, 2024
@Jarred-Sumner Jarred-Sumner deleted the georgijs/add-listener branch May 13, 2024 23:58
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