0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/test/message
Joyee Cheung d18b0a0132
process: make tick callback and promise rejection callback more robust
- Rename `internalTickCallback` to `processTicksAndRejections`, make
  sure it does not get called if it's not set in C++.
- Rename `emitPromiseRejectionWarnings` to `processPromiseRejections`
  since it also emit events that are not warnings.
- Sets `SetPromiseRejectCallback` in the `Environment` constructor
  to make sure it only gets called once per-isolate, and make
  sure it does not get called if it's not set in C++.
- Wrap promise rejection callback initialization into
  `listenForRejections()`.
- Add comments.

PR-URL: https://github.com/nodejs/node/pull/25200
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
2019-01-06 10:28:47 +08:00
..
2100bytes.js
2100bytes.out
assert_throws_stack.js
assert_throws_stack.out src: split LoadEnvironment() at startExecution() 2019-01-06 02:15:47 +01:00
console_low_stack_space.js
console_low_stack_space.out
core_line_numbers.js
core_line_numbers.out process: refactor the bootstrap mode branching for readability 2018-11-29 12:55:56 -08:00
error_exit.js
error_exit.out src: split LoadEnvironment() at startExecution() 2019-01-06 02:15:47 +01:00
esm_display_syntax_error_import_module.mjs
esm_display_syntax_error_import_module.out
esm_display_syntax_error_import.mjs
esm_display_syntax_error_import.out
esm_display_syntax_error_module.mjs
esm_display_syntax_error_module.out
esm_display_syntax_error.mjs
esm_display_syntax_error.out
eval_messages.js
eval_messages.out src: split LoadEnvironment() at startExecution() 2019-01-06 02:15:47 +01:00
events_unhandled_error_common_trace.js
events_unhandled_error_common_trace.out process: refactor the bootstrap mode branching for readability 2018-11-29 12:55:56 -08:00
events_unhandled_error_nexttick.js
events_unhandled_error_nexttick.out process: make tick callback and promise rejection callback more robust 2019-01-06 10:28:47 +08:00
events_unhandled_error_sameline.js
events_unhandled_error_sameline.out src: split LoadEnvironment() at startExecution() 2019-01-06 02:15:47 +01:00
hello_world.js
hello_world.out
if-error-has-good-stack.js
if-error-has-good-stack.out
max_tick_depth.js
max_tick_depth.out
message.status
nexttick_throw.js
nexttick_throw.out process: make tick callback and promise rejection callback more robust 2019-01-06 10:28:47 +08:00
stack_overflow.js
stack_overflow.out
stdin_messages.js
stdin_messages.out process: make tick callback and promise rejection callback more robust 2019-01-06 10:28:47 +08:00
testcfg.py test: prepare test/message/testcfg.py for Python 3 2018-12-06 19:21:30 -08:00
throw_custom_error.js
throw_custom_error.out
throw_in_line_with_tabs.js
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: run nextTicks after each immediate and timer 2018-10-17 20:38:07 -07:00
undefined_reference_in_new_context.js
undefined_reference_in_new_context.out
unhandled_promise_trace_warnings.js test: make crashOnUnhandleRejection opt-out 2018-07-19 08:47:28 +02:00
unhandled_promise_trace_warnings.out src: split LoadEnvironment() at startExecution() 2019-01-06 02:15:47 +01:00
util_inspect_error.js util: fix inspected stack indentation 2018-05-21 17:38:16 +02:00
util_inspect_error.out src: split LoadEnvironment() at startExecution() 2019-01-06 02:15:47 +01:00
v8_warning.js src: emit warnings from V8 2018-11-16 09:16:15 -06:00
v8_warning.out src: emit warnings from V8 2018-11-16 09:16:15 -06:00
vm_caught_custom_runtime_error.js
vm_caught_custom_runtime_error.out
vm_display_runtime_error.js
vm_display_runtime_error.out
vm_display_syntax_error.js
vm_display_syntax_error.out
vm_dont_display_runtime_error.js test: remove unused catch bindings 2018-11-06 10:59:18 -05:00
vm_dont_display_runtime_error.out
vm_dont_display_syntax_error.js test: remove unused catch bindings 2018-11-06 10:59:18 -05:00
vm_dont_display_syntax_error.out