diff options
author | Anna Henningsen <anna@addaleax.net> | 2016-08-27 10:45:34 +0200 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2016-08-30 17:02:51 +0200 |
commit | 932c824c600167d3057d3b42b6b0b81468334efb (patch) | |
tree | 3d3b1696616353cdffef7dade286040ec2765102 /tools/eslint/lib/code-path-analysis/code-path-state.js | |
parent | 1b8accfdd659e89ad94c0dea251c16b07c27e955 (diff) | |
download | node-new-932c824c600167d3057d3b42b6b0b81468334efb.tar.gz |
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.
PR-URL: https://github.com/nodejs/node/pull/8298
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Jeremiah Senkpiel <Fishrock123@rocketmail.com>
Diffstat (limited to 'tools/eslint/lib/code-path-analysis/code-path-state.js')
0 files changed, 0 insertions, 0 deletions