EventTarget removeEventListener does not match all listenersΒ #65244
Copy link
Copy link
Closed
Labels
eventsIssues and PRs related to EventEmitter and the events module.Issues and PRs related to EventEmitter and the events module.
Description
Activity
- addedeventsIssues and PRs related to EventEmitter and the events module.Issues and PRs related to EventEmitter and the events module.
on Aug 18, 2026 - added a commit that references this issue
on Aug 23, 2026 - added a commit that references this issue
on Aug 27, 2026 - added 2 commits that reference this issue
on Aug 29, 2026 - added a commit that references this issue
on Sep 15, 2026
Metadata
Metadata
Assignees
Labels
eventsIssues and PRs related to EventEmitter and the events module.Issues and PRs related to EventEmitter and the events module.
Version
v26.7.0
Platform
Subsystem
events
What steps will reproduce the bug?
How often does it reproduce? Is there a required condition?
Every time.
What is the expected behavior? Why is that the expected behavior?
All matching event listeners should be removed,
invocationsshould be0.What do you see instead?
The event listener is not removed,
invocationsis1.Additional information
Running the code under Node.js and popular browsers results in differing output. Chrome, Firefox and Safari all print
0, Node.js prints1.This can cause memory leaks, unexpected application behaviour, etc.