0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/lib
Anna Henningsen 932c824c60
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>
2016-08-30 17:02:51 +02:00
..
internal promise: hard deprecation for unhandled promise rejection 2016-08-29 16:27:58 -07:00
_debug_agent.js debugger: use arrow function for lexical this 2016-08-18 16:44:38 -07:00
_debugger.js debugger: remove obsolete setTimeout 2016-06-07 13:32:05 -07:00
_http_agent.js tls,https: respect address family when connecting 2016-05-28 22:49:36 +02:00
_http_client.js http: wait for both prefinish/end to keepalive 2016-06-06 13:34:11 -04:00
_http_common.js http: fix connection upgrade checks 2016-08-26 10:17:34 -04:00
_http_incoming.js http: fix no dumping after maybeReadMore 2016-06-15 12:50:19 -04:00
_http_outgoing.js http: fix connection upgrade checks 2016-08-26 10:17:34 -04:00
_http_server.js tools: lint for object literal spacing 2016-05-08 22:45:20 -07:00
_linklist.js lib,test: deprecate _linklist 2015-10-08 17:32:08 -07:00
_stream_duplex.js node: allow multiple arguments passed to nextTick 2015-04-15 17:02:21 -06:00
_stream_passthrough.js lib: use const to define constants 2015-01-21 16:21:31 -05:00
_stream_readable.js stream: avoid caching prepend check 2016-08-17 18:47:41 -07:00
_stream_transform.js stream: 'data' argument on callback of Transform._flush() 2016-06-09 11:06:01 +02:00
_stream_wrap.js stream_wrap: error if stream has StringDecoder 2015-12-06 21:55:25 -05:00
_stream_writable.js stream: improve unimplemented _write() error 2016-07-21 11:24:26 -04:00
_tls_common.js src: refactor require('constants') 2016-05-17 11:05:18 -07:00
_tls_legacy.js lib: replace legacy uses of __defineGetter__ 2016-05-16 17:01:34 -07:00
_tls_wrap.js buffer: introduce latin1 encoding term 2016-06-07 13:51:14 -06:00
.eslintrc tools: add buffer-constructor eslint rule 2016-03-18 17:05:18 -07:00
assert.js assert: remove code that is never reached 2016-08-18 16:50:16 -07:00
buffer.js buffer: runtime deprecation of calling Buffer without new 2016-08-25 11:08:19 -07:00
child_process.js child_process: control argv0 for spawned processes 2016-08-08 16:35:43 +02:00
cluster.js cluster: support stdio option for workers 2016-08-01 15:08:42 -04:00
console.js console: timeEnd() with no label emits warning 2016-04-25 08:28:23 -07:00
constants.js src: refactor require('constants') 2016-05-17 11:05:18 -07:00
crypto.js Revert "crypto: add crypto.timingSafeEqual" 2016-08-23 10:52:32 -07:00
dgram.js udp: remove ancient check 2016-08-13 08:38:37 +01:00
dns.js dns: remove makeAsync() function check 2016-08-22 11:07:05 -07:00
domain.js domain: add message for dispose deprecation 2016-06-07 00:27:42 -04:00
events.js events: make memory leak warning more accessible 2016-08-30 17:02:51 +02:00
fs.js Revert "fs: add a temporary fix for re-evaluation support" 2016-08-29 15:11:00 -07:00
http.js http: remove deprecated Client interface 2016-08-29 21:44:58 -04:00
https.js crypto: fail early when loading crypto without openssl 2016-03-23 10:34:40 -07:00
module.js module: fix node_modules search path in edge case 2016-08-09 05:46:40 -05:00
net.js net: make holding the buffer in memory more robust 2016-08-27 16:11:46 +02:00
os.js os: deprecate tmpDir() in favour of tmpdir() 2016-06-30 14:52:13 +02:00
path.js path: fix basename() regressions 2016-05-18 02:12:28 -04:00
process.js src: remove excessive license boilerplate 2015-01-27 16:35:05 +11:00
punycode.js punycode: update to v2.0.0 2016-06-17 17:03:49 +02:00
querystring.js benchmark,test,lib: remove extra spaces 2016-05-11 23:18:16 -07:00
readline.js repl: Auto alignment for .editor mode 2016-08-27 16:53:59 +05:30
repl.js repl: Auto alignment for .editor mode 2016-08-27 16:53:59 +05:30
stream.js lib,src: remove usage of events.EventEmitter 2015-09-23 00:23:08 +05:30
string_decoder.js string_decoder: fix bad utf8 character handling 2016-06-23 23:18:10 -04:00
sys.js util: introduce printDeprecationMessage function 2015-06-04 10:59:43 +03:00
timers.js timers: remove unused repeat param in timer_wrap 2016-08-09 12:26:10 -07:00
tls.js tls: copy the Buffer object before using 2016-08-17 18:40:52 -07:00
tty.js tty: set the handle to blocking mode 2016-08-10 23:41:28 +02:00
url.js url: keep auth in url.resolve() if host matches 2016-08-24 11:40:14 -07:00
util.js util: improve function signature of util._extend 2016-08-26 18:53:39 +05:30
v8.js v8,src: expose statistics about heap spaces 2016-01-18 11:44:00 -05:00
vm.js vm: add ability to break on sigint/ctrl+c 2016-06-18 20:44:16 +02:00
zlib.js zlib: move constants into zlib.constants 2016-06-11 17:24:35 -07:00