0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/src
Trevor Norris a17200b520 async_wrap: don't abort on callback exception
Rather than abort if the init/pre/post/final/destroy callbacks throw,
force the exception to propagate and not be made catchable. This way
the application is still not allowed to proceed but also allowed the
location of the failure to print before exiting. Though the stack itself
may not be of much use since all callbacks except init are called from
the bottom of the call stack.

    /tmp/async-test.js:14
      throw new Error('pre');
      ^
    Error: pre
        at InternalFieldObject.pre (/tmp/async-test.js:14:9)

PR-URL: https://github.com/nodejs/node/pull/5756
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Andreas Madsen <amwebdk@gmail.com>
2016-03-28 11:32:54 -06:00
..
res
.eslintrc src,tools: use template literals 2016-03-20 14:58:45 +02:00
async-wrap-inl.h async_wrap: don't abort on callback exception 2016-03-28 11:32:54 -06:00
async-wrap.cc async_wrap: don't abort on callback exception 2016-03-28 11:32:54 -06:00
async-wrap.h http_parser: use MakeCallback 2016-03-01 02:37:27 -07:00
atomic-polyfill.h
base-object-inl.h src: fix deprecated SetWeak usage in base-object 2016-03-03 20:35:20 -08:00
base-object.h src: fix deprecated SetWeak usage in base-object 2016-03-03 20:35:20 -08:00
cares_wrap.cc net: make isIPv4 and isIPv6 more efficient 2016-03-15 08:32:32 -07:00
CNNICHashWhitelist.inc
debug-agent.cc src: fix NewInstance deprecation warnings 2016-03-03 20:35:20 -08:00
debug-agent.h src: remove no longer relevant comments 2016-02-01 21:28:06 +01:00
env-inl.h src: remove unnecessary check 2016-02-15 07:52:02 -08:00
env.cc src,http_parser: remove KickNextTick call 2016-03-28 11:30:55 -06:00
env.h src,http_parser: remove KickNextTick call 2016-03-28 11:30:55 -06:00
fs_event_wrap.cc fs: Buffer and encoding enhancements to fs API 2016-03-25 14:21:27 -07:00
handle_wrap.cc
handle_wrap.h
js_stream.cc
js_stream.h
node_buffer.cc buffer: add swap16() and swap32() methods 2016-03-23 08:52:44 -07:00
node_buffer.h buffer: fix buffer alignment restriction 2016-03-19 07:07:01 -07:00
node_constants.cc constants: define ENGINE_METHOD_RSA 2016-02-26 19:42:56 -08:00
node_constants.h
node_contextify.cc contextify: tie lifetimes of context & sandbox 2016-03-19 07:45:38 -07:00
node_counters.cc src: remove forwards for v8::GC*logueCallback 2015-12-22 08:11:41 -08:00
node_counters.h
node_crypto_bio.cc crypto: have fixed NodeBIOs return EOF 2016-02-11 16:30:03 -05:00
node_crypto_bio.h crypto: have fixed NodeBIOs return EOF 2016-02-11 16:30:03 -05:00
node_crypto_clienthello-inl.h
node_crypto_clienthello.cc
node_crypto_clienthello.h
node_crypto_groups.h
node_crypto.cc crypto: improve error messages 2016-03-26 23:46:32 +05:30
node_crypto.h crypto: simplify Certificate class bindings 2016-03-05 12:29:46 +01:00
node_dtrace.cc src: remove forwards for v8::GC*logueCallback 2015-12-22 08:11:41 -08:00
node_dtrace.h
node_file.cc fs: Buffer and encoding enhancements to fs API 2016-03-25 14:21:27 -07:00
node_file.h
node_http_parser.cc src,http_parser: remove KickNextTick call 2016-03-28 11:30:55 -06:00
node_http_parser.h
node_i18n.cc
node_i18n.h
node_internals.h async_wrap: don't abort on callback exception 2016-03-28 11:32:54 -06:00
node_javascript.cc lib: rename /node.js to /bootstrap_node.js 2016-03-22 19:21:20 -04:00
node_javascript.h
node_lttng_provider.h
node_lttng_tp.h
node_lttng.cc src: remove forwards for v8::GC*logueCallback 2015-12-22 08:11:41 -08:00
node_lttng.h
node_main.cc win: prevent node from running on Windows Vista or earlier 2016-03-18 03:00:47 +01:00
node_object_wrap.h src: replace deprecated SetWeak in object_wrap 2016-03-03 20:35:20 -08:00
node_os.cc src: replace usage of deprecated Has 2016-03-03 20:35:20 -08:00
node_provider.d
node_revert.cc src: avoid compiler warning in node_revert.cc 2016-02-09 09:22:13 -08:00
node_revert.h src: add --security-revert command line flag 2016-02-09 09:20:41 -08:00
node_root_certs.h
node_stat_watcher.cc
node_stat_watcher.h
node_util.cc src: upgrade to new v8::Private api 2016-02-03 01:04:31 +01:00
node_v8.cc v8,src: expose statistics about heap spaces 2016-01-18 11:44:00 -05:00
node_version.h
node_watchdog.cc src: replace deprecated TerminateExecution 2016-03-03 20:35:20 -08:00
node_watchdog.h
node_win32_etw_provider-inl.h etw: fix descriptors of events 9 and 23 2016-03-23 14:12:25 +00:00
node_win32_etw_provider.cc
node_win32_etw_provider.h
node_win32_perfctr_provider.cc
node_win32_perfctr_provider.h
node_wrap.h
node_zlib.cc zlib: Fix handling of gzip magic bytes mid-file 2016-03-23 13:04:19 -04:00
node.cc async_wrap: don't abort on callback exception 2016-03-28 11:32:54 -06:00
node.d
node.h src: replace usage of deprecated ForceSet 2016-03-03 20:35:20 -08:00
node.stp
nolttng_macros.py
notrace_macros.py
perfctr_macros.py
pipe_wrap.cc src: fix NewInstance deprecation warnings 2016-03-03 20:35:20 -08:00
pipe_wrap.h
process_wrap.cc
req-wrap-inl.h
req-wrap.h
signal_wrap.cc
spawn_sync.cc
spawn_sync.h
stream_base-inl.h
stream_base.cc src: replace usage of deprecated Has 2016-03-03 20:35:20 -08:00
stream_base.h tls_wrap: reach error reporting for UV_EPROTO 2016-01-27 17:27:52 -05:00
stream_wrap.cc
stream_wrap.h
string_bytes.cc fs: Buffer and encoding enhancements to fs API 2016-03-25 14:21:27 -07:00
string_bytes.h fs: Buffer and encoding enhancements to fs API 2016-03-25 14:21:27 -07:00
string_search.cc
string_search.h
tcp_wrap.cc src: fix NewInstance deprecation warnings 2016-03-03 20:35:20 -08:00
tcp_wrap.h
timer_wrap.cc
tls_wrap.cc src: fix NewInstance deprecation warnings 2016-03-03 20:35:20 -08:00
tls_wrap.h tls_wrap: reach error reporting for UV_EPROTO 2016-01-27 17:27:52 -05:00
tree.h
tty_wrap.cc
tty_wrap.h
udp_wrap.cc src: fix NewInstance deprecation warnings 2016-03-03 20:35:20 -08:00
udp_wrap.h
util-inl.h src: replace deprecated String::NewFromOneByte 2016-03-03 20:35:20 -08:00
util.cc fs: Buffer and encoding enhancements to fs API 2016-03-25 14:21:27 -07:00
util.h fs: Buffer and encoding enhancements to fs API 2016-03-25 14:21:27 -07:00
uv.cc
v8abbr.h
v8ustack.d