Revert "events: don't delete the listeners array in removeListener()"
This reverts commit 928ea564. Keeping the original Array instance in-place essentially causes a memory leak on EventEmitters that use an infinite number of event names (an incrementing counter, for example), which isn't an unreasonable thing to want to do. Fixes #3702.
parent
3a6314db
Please register or sign in to comment