0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/lib
Gerhard Stoebich f4797ff1ef process: allow monitoring uncaughtException
Installing an uncaughtException listener has a side effect that process
is not aborted. This is quite bad for monitoring/logging tools which
tend to be interested in errors but don't want to cause side effects
like swallow an exception or change the output on console.

There are some workarounds in the wild like monkey patching emit or
rethrow in the exception if monitoring tool detects that it is the only
listener but this is error prone and risky.

This PR allows to install a listener to monitor uncaughtException
without the side effect to consider the exception has handled.

PR-URL: https://github.com/nodejs/node/pull/31257
Refs: https://github.com/nodejs/node/pull/30932
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
2020-01-10 18:35:01 -08:00
..
internal process: allow monitoring uncaughtException 2020-01-10 18:35:01 -08:00
_http_agent.js http: use for...of in http library code 2019-12-17 10:18:00 -08:00
_http_client.js lib: replace use of Error with primordials 2020-01-04 14:50:18 -08:00
_http_common.js
_http_incoming.js stream: enable autoDestroy by default 2020-01-03 01:49:10 +01:00
_http_outgoing.js http: http_outgoing rename var to let and const 2020-01-03 15:44:38 +01:00
_http_server.js lib: replace use of Error with primordials 2020-01-04 14:50:18 -08:00
_stream_duplex.js stream: clean up definition using defineProperties 2020-01-08 21:38:02 -08:00
_stream_passthrough.js
_stream_readable.js stream: sync stream unpipe resume 2020-01-07 16:00:00 +01:00
_stream_transform.js
_stream_wrap.js
_stream_writable.js stream: replace Function.prototype with primordial 2020-01-08 06:10:11 -08:00
_tls_common.js tls: for...of in _tls_common.js 2019-12-17 08:11:13 -05:00
_tls_wrap.js lib: add RegExp primordials 2020-01-07 19:26:15 -08:00
.eslintrc.yaml lib: add Uint16Array primordials 2020-01-10 20:27:10 +08:00
assert.js lib: replace Map global by the primordials 2020-01-04 14:56:52 -08:00
async_hooks.js async_hooks: ensure proper handling in runInAsyncScope 2019-12-16 21:59:50 -08:00
buffer.js lib: replace use of Error with primordials 2020-01-04 14:50:18 -08:00
child_process.js lib: replace use of Error with primordials 2020-01-04 14:50:18 -08:00
cluster.js
console.js
constants.js
crypto.js
dgram.js dgram: test to add and to drop specific membership 2019-12-25 11:58:29 +01:00
dns.js
domain.js lib: replace Map global by the primordials 2020-01-04 14:56:52 -08:00
events.js lib: replace use of Error with primordials 2020-01-04 14:50:18 -08:00
fs.js lib: replace Map global by the primordials 2020-01-04 14:56:52 -08:00
http2.js
http.js
https.js https: prevent options object from being mutated 2020-01-03 20:09:27 -08:00
inspector.js lib: replace Map global by the primordials 2020-01-04 14:56:52 -08:00
module.js
net.js lib: replace use of Error with primordials 2020-01-04 14:50:18 -08:00
os.js
path.js
perf_hooks.js lib: replace Map global by the primordials 2020-01-04 14:56:52 -08:00
process.js
punycode.js lib: use strict equality comparison 2019-12-14 08:57:36 -05:00
querystring.js
readline.js readline,repl: support tabs properly 2020-01-10 09:11:55 +01:00
repl.js repl: change preview default in case of custom eval functions 2020-01-10 04:35:37 -08:00
stream.js
string_decoder.js
sys.js
timers.js timers: fix refresh for expired timers 2019-12-25 12:45:24 +01:00
tls.js
trace_events.js lib: replace Set global by the primordials 2020-01-04 12:41:09 -08:00
tty.js
url.js
util.js lib: replace use of Error with primordials 2020-01-04 14:50:18 -08:00
v8.js lib: replace Map global by the primordials 2020-01-04 14:56:52 -08:00
vm.js doc,vm,test: remove _sandbox_ from vm documentation 2019-12-24 16:14:05 -08:00
wasi.js wasi: improve use of primordials 2020-01-07 21:49:20 -05:00
worker_threads.js
zlib.js lib: replace use of Error with primordials 2020-01-04 14:50:18 -08:00