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

events: make memory leak warning more programatically accessible #8298

Closed
wants to merge 2 commits into from

Commits on Aug 27, 2016

  1. events: make memory leak warning more accessible

    This makes the famous `EventEmitter memory leak` warnings occurring
    when the listener count for a given event exceeds a specified number
    more programatically accessible, by giving them properties referring
    to the event emitter instance and the event itself.
    
    This can be useful for debugging the origins of such a warning when
    the stack itself doesn’t reveal enough information about the event
    emitter instance itself, e.g. when manual inspection of the
    already-registered listeners is expected to be useful.
    addaleax committed Aug 27, 2016
    Configuration menu
    Copy the full SHA
    802e6be View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    473c38d View commit details
    Browse the repository at this point in the history