0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/lib
cjihrig cca375f4af
console: don't attach unnecessary error handlers
A noop error handler is attached to the console's stream on
write. The handler is then immediately removed after the write.
This commit skips adding the error handler if one already
exists.

PR-URL: https://github.com/nodejs/node/pull/27691
Fixes: https://github.com/nodejs/node/issues/27687
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
2019-05-16 11:55:32 -04:00
..
internal console: don't attach unnecessary error handlers 2019-05-16 11:55:32 -04:00
_http_agent.js http: servername === false should disable SNI 2019-04-30 06:43:22 -07:00
_http_client.js async_hooks: fixup do not reuse HTTPParser 2019-05-03 16:02:55 +02:00
_http_common.js async_hooks: fixup do not reuse HTTPParser 2019-05-03 16:02:55 +02:00
_http_incoming.js lib: enforce the use of Object from primordials 2019-04-12 05:38:45 +02:00
_http_outgoing.js lib: enforce the use of Object from primordials 2019-04-12 05:38:45 +02:00
_http_server.js http, http2: remove default server timeout 2019-05-09 08:54:04 -07:00
_stream_duplex.js lib: enforce the use of Object from primordials 2019-04-12 05:38:45 +02:00
_stream_passthrough.js lib: enforce the use of Object from primordials 2019-04-12 05:38:45 +02:00
_stream_readable.js util: access process states lazily in debuglog 2019-04-20 00:30:38 +08:00
_stream_transform.js stream: remove TODO and add a description instead 2019-05-02 23:16:14 +02:00
_stream_wrap.js lib: assign missed deprecation code 2019-03-07 15:48:55 +01:00
_stream_writable.js stream: inline onwriteStateUpdate() 2019-04-16 05:35:26 +02:00
_tls_common.js tls: fix createSecureContext() cipher list filter 2019-05-10 11:25:29 -07:00
_tls_wrap.js tls: expose keylog event on TLSSocket 2019-05-15 05:32:33 +02:00
.eslintrc.yaml lib: require globals instead of using the global proxy 2019-04-16 04:24:26 +08:00
assert.js assert: use less read operations 2019-05-05 14:44:21 -07:00
async_hooks.js async_hooks: improve AsyncResource performance 2019-04-05 05:37:01 +02:00
buffer.js buffer: remove unreachable code 2019-04-30 06:37:55 -07:00
child_process.js child_process: refactor stdioStringToArray function 2019-05-16 05:14:10 +02:00
cluster.js
console.js console: split console into global.js and constructor.js 2018-12-02 04:51:18 +08:00
constants.js lib: enforce the use of Object from primordials 2019-04-12 05:38:45 +02:00
crypto.js lib: enforce the use of Object from primordials 2019-04-12 05:38:45 +02:00
dgram.js tools: enable block-scoped-var eslint rule 2019-05-10 16:58:49 +02:00
dns.js dns: do not indicate invalid IPs are IPv6 2019-04-16 16:19:17 -07:00
domain.js lib: enforce the use of Object from primordials 2019-04-12 05:38:45 +02:00
events.js lib: enforce the use of Object from primordials 2019-04-12 05:38:45 +02:00
fs.js fs: extract path conversion and validation to getValidatedPath 2019-05-14 15:13:48 -07:00
http2.js http2: order declarations in http2.js 2018-11-20 10:42:31 -08:00
http.js lib: enforce the use of Object from primordials 2019-04-12 05:38:45 +02:00
https.js http, http2: remove default server timeout 2019-05-09 08:54:04 -07:00
inspector.js errors: add more information in case of invalid callbacks 2019-04-04 12:51:03 +02:00
module.js
net.js src: move guessHandleType in the util binding 2019-04-20 13:25:41 +08:00
os.js lib: enforce the use of Object from primordials 2019-04-12 05:38:45 +02:00
path.js path: simplify normalizeString 2019-04-18 05:32:10 +02:00
perf_hooks.js lib: require globals instead of using the global proxy 2019-04-16 04:24:26 +08:00
process.js
punycode.js
querystring.js lib: enforce the use of Object from primordials 2019-04-12 05:38:45 +02:00
readline.js lib: require globals instead of using the global proxy 2019-04-16 04:24:26 +08:00
repl.js repl: handle uncaughtException properly 2019-05-08 08:15:15 +02:00
stream.js lib: enforce the use of Object from primordials 2019-04-12 05:38:45 +02:00
string_decoder.js lib: enforce the use of Object from primordials 2019-04-12 05:38:45 +02:00
sys.js benchmark,doc,lib,test: capitalize comments 2019-03-10 00:44:40 +01:00
timers.js lib: remove outdated optimizations 2019-04-29 20:46:53 +08:00
tls.js tls: add --tls-min-v1.2 CLI switch 2019-05-05 08:23:43 -07:00
trace_events.js trace_events: remove usage of require('util') 2019-03-24 18:28:07 +08:00
tty.js lib: enforce the use of Object from primordials 2019-04-12 05:38:45 +02:00
url.js tools: enable block-scoped-var eslint rule 2019-05-10 16:58:49 +02:00
util.js lib: require globals instead of using the global proxy 2019-04-16 04:24:26 +08:00
v8.js fs: extract path conversion and validation to getValidatedPath 2019-05-14 15:13:48 -07:00
vm.js module: initialize module_wrap.callbackMap during pre-execution 2019-04-25 12:11:10 +08:00
worker_threads.js worker: use copy of process.env 2019-03-30 22:25:35 +01:00
zlib.js lib: enforce the use of Object from primordials 2019-04-12 05:38:45 +02:00