summaryrefslogtreecommitdiff
path: root/tools/eslint/lib/code-path-analysis/code-path-state.js
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2016-08-27 10:45:34 +0200
committerAnna Henningsen <anna@addaleax.net>2016-08-30 17:02:51 +0200
commit932c824c600167d3057d3b42b6b0b81468334efb (patch)
tree3d3b1696616353cdffef7dade286040ec2765102 /tools/eslint/lib/code-path-analysis/code-path-state.js
parent1b8accfdd659e89ad94c0dea251c16b07c27e955 (diff)
downloadnode-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