Commit 0a952b8
test: ensure removeListener event fires for once() listeners
Adds test coverage for the removeListener event being emitted
when a once() listener is automatically removed after execution.
This verifies that streams and other EventEmitters correctly
emit removeListener events when once() wrappers clean up.
PR-URL: #60137
Fixes: #59977
Reviewed-By: Aviv Keller <me@aviv.sh>
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>1 parent a782598 commit 0a952b8Copy full SHA for 0a952b8
2 files changed
+19-2Lines changed: 19 additions & 2 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- lib
- test/parallel
Expand file treeCollapse file tree
Open diff view settings
Collapse file
+3-2Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
687 | 687 | |
688 | 688 | |
689 | 689 | |
690 | | - |
691 | | - |
692 | 690 | |
| 691 | + |
| 692 | + |
| 693 | + |
693 | 694 | |
694 | 695 | |
695 | 696 | |
|
Collapse file
test/parallel/test-event-emitter-remove-listeners.js
Copy file name to clipboardExpand all lines: test/parallel/test-event-emitter-remove-listeners.js+16Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
168 | 168 | |
169 | 169 | |
170 | 170 | |
| 171 | + |
| 172 | + |
| 173 | + |
| 174 | + |
| 175 | + |
| 176 | + |
| 177 | + |
| 178 | + |
| 179 | + |
| 180 | + |
| 181 | + |
| 182 | + |
| 183 | + |
| 184 | + |
| 185 | + |
| 186 | + |
0 commit comments