node/test/message
Ruben Bridgewater b43d7e8f42
process: add --unhandled-rejections flag
This adds a flag to define the default behavior for unhandled
rejections. Three modes exist: `none`, `warn` and `strict`. The first
is going to silence all unhandled rejection warnings. The second
behaves identical to the current default with the excetion that no
deprecation warning will be printed and the last is going to throw
an error for each unhandled rejection, just as regular exceptions do.
It is possible to intercept those with the `uncaughtException` hook
as with all other exceptions as well.

This PR has no influence on the existing `unhandledRejection` hook.
If that is used, it will continue to function as before.

PR-URL: https://github.com/nodejs/node/pull/26599
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Matheus Marchini <mat@mmarchini.me>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
2019-10-15 19:43:53 +01:00
..
2100bytes.js
2100bytes.out
assert_throws_stack.js assert: fix throws trace 2018-02-09 08:45:51 -05:00
assert_throws_stack.out assert: make sure throws is able to handle primitives 2018-05-12 17:33:55 +02:00
console_low_stack_space.js test: remove untested knownGlobals 2018-05-22 14:24:32 -04:00
console_low_stack_space.out
core_line_numbers.js
core_line_numbers.out lib: restructure cjs and esm loaders 2018-03-15 20:50:35 +08:00
error_exit.js test: improve to use template string 2018-01-17 08:50:02 +08:00
error_exit.out assert: improve default error messages 2018-04-16 16:13:41 -07:00
esm_display_syntax_error.mjs module: print better message on esm syntax error 2017-11-29 12:06:09 +01:00
esm_display_syntax_error.out lib: rename js source to lower snake_case 2018-03-28 08:09:16 +02:00
esm_display_syntax_error_import.mjs module: print better message on esm import error 2017-12-24 17:38:36 +01:00
esm_display_syntax_error_import.out lib: rename js source to lower snake_case 2018-03-28 08:09:16 +02:00
esm_display_syntax_error_import_module.mjs module: print better message on esm import error 2017-12-24 17:38:36 +01:00
esm_display_syntax_error_import_module.out lib: rename js source to lower snake_case 2018-03-28 08:09:16 +02:00
esm_display_syntax_error_module.mjs module: print better message on esm syntax error 2017-11-29 12:06:09 +01:00
esm_display_syntax_error_module.out lib: rename js source to lower snake_case 2018-03-28 08:09:16 +02:00
eval_messages.js
eval_messages.out lib: restructure cjs and esm loaders 2018-03-15 20:50:35 +08:00
events_unhandled_error_common_trace.js events: show throw stack trace for uncaught exception 2018-03-04 21:20:43 +00:00
events_unhandled_error_common_trace.out lib: restructure cjs and esm loaders 2018-03-15 20:50:35 +08:00
events_unhandled_error_nexttick.js events: show throw stack trace for uncaught exception 2018-03-04 21:20:43 +00:00
events_unhandled_error_nexttick.out lib: restructure cjs and esm loaders 2018-03-15 20:50:35 +08:00
events_unhandled_error_sameline.js events: show throw stack trace for uncaught exception 2018-03-04 21:20:43 +00:00
events_unhandled_error_sameline.out lib: restructure cjs and esm loaders 2018-03-15 20:50:35 +08:00
hello_world.js
hello_world.out
if-error-has-good-stack.js assert: wrap original error in ifError 2018-01-24 13:16:07 +01:00
if-error-has-good-stack.out lib: restructure cjs and esm loaders 2018-03-15 20:50:35 +08:00
max_tick_depth.js test: improve to use template string 2018-01-17 08:50:02 +08:00
max_tick_depth.out
message.status test: skip tests related to CI failures on AIX 2019-07-25 13:55:04 +01:00
nexttick_throw.js
nexttick_throw.out lib: restructure cjs and esm loaders 2018-03-15 20:50:35 +08:00
promise_always_throw_unhandled.js process: add --unhandled-rejections flag 2019-10-15 19:43:53 +01:00
promise_always_throw_unhandled.out process: add --unhandled-rejections flag 2019-10-15 19:43:53 +01:00
stack_overflow.js
stack_overflow.out
stdin_messages.js
stdin_messages.out lib: restructure cjs and esm loaders 2018-03-15 20:50:35 +08:00
testcfg.py test: prepare test/message/testcfg.py for Python 3 2019-02-28 23:37:40 +11:00
throw_custom_error.js
throw_custom_error.out
throw_in_line_with_tabs.js test: adjust indentation for stricter linting 2017-07-27 09:24:20 -07:00
throw_in_line_with_tabs.out
throw_non_error.js
throw_non_error.out
throw_null.js
throw_null.out
throw_undefined.js
throw_undefined.out
timeout_throw.js
timeout_throw.out timers: refactor timer list processing 2018-02-09 14:59:07 -05:00
undefined_reference_in_new_context.js
undefined_reference_in_new_context.out lib: restructure cjs and esm loaders 2018-03-15 20:50:35 +08:00
unhandled_promise_trace_warnings.js test: make crashOnUnhandleRejection opt-out 2018-07-24 20:42:32 +02:00
unhandled_promise_trace_warnings.out process: add --unhandled-rejections flag 2019-10-15 19:43:53 +01:00
util_inspect_error.js util: fix inspected stack indentation 2018-05-22 15:24:54 -04:00
util_inspect_error.out util: fix inspected stack indentation 2018-05-22 15:24:54 -04:00
vm_caught_custom_runtime_error.js
vm_caught_custom_runtime_error.out
vm_display_runtime_error.js
vm_display_runtime_error.out lib: restructure cjs and esm loaders 2018-03-15 20:50:35 +08:00
vm_display_syntax_error.js
vm_display_syntax_error.out lib: restructure cjs and esm loaders 2018-03-15 20:50:35 +08:00
vm_dont_display_runtime_error.js test: remove unused catch bindings 2018-12-03 13:33:03 -05:00
vm_dont_display_runtime_error.out lib: restructure cjs and esm loaders 2018-03-15 20:50:35 +08:00
vm_dont_display_syntax_error.js test: remove unused catch bindings 2018-12-03 13:33:03 -05:00
vm_dont_display_syntax_error.out lib: restructure cjs and esm loaders 2018-03-15 20:50:35 +08:00