Commit 713b9249 authored by Nathan Rajlich's avatar Nathan Rajlich
Browse files

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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment