0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/test/message
Ruben Bridgewater 8e6e1c9dcc
assert: use destructuring for errors
Destructure the necessary Error classes from internal/errors.
This improves the readability of the error creation.

PR-URL: https://github.com/nodejs/node/pull/18247
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2018-01-24 13:16:08 +01:00
..
2100bytes.js
2100bytes.out
console_low_stack_space.js lib: make console writable and non-enumerable 2018-01-18 18:12:16 +01:00
console_low_stack_space.out
core_line_numbers.js
core_line_numbers.out lib: remove _debugger.js 2017-04-21 10:35:49 +02:00
error_exit.js test: improve to use template string 2018-01-17 08:50:02 +08:00
error_exit.out assert: use destructuring for errors 2018-01-24 13:16:08 +01: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 module: print better message on esm import error 2017-12-24 17:38:36 +01: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 module: print better message on esm import error 2017-12-24 17:38:36 +01: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 module: refactor loader 2018-01-15 12:42:29 -06: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 module: refactor loader 2018-01-15 12:42:29 -06:00
eval_messages.js
eval_messages.out vm: never abort on caught syntax error 2017-12-05 23:49:36 +01: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 assert: wrap original error in ifError 2018-01-24 13:16:07 +01: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
nexttick_throw.js
nexttick_throw.out process: slightly simplify next tick execution 2017-11-28 08:48:30 -05:00
stack_overflow.js test: use JSON.stringify to trigger stack overflow 2017-04-21 11:46:19 +02:00
stack_overflow.out test: use JSON.stringify to trigger stack overflow 2017-04-21 11:46:19 +02:00
stdin_messages.js
stdin_messages.out vm: never abort on caught syntax error 2017-12-05 23:49:36 +01:00
testcfg.py module: print better message on esm syntax error 2017-11-29 12:06:09 +01: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
undefined_reference_in_new_context.js
undefined_reference_in_new_context.out vm: never abort on caught syntax error 2017-12-05 23:49:36 +01:00
unhandled_promise_trace_warnings.js test: remove common.noop 2017-07-03 11:39:35 -07:00
unhandled_promise_trace_warnings.out promises: refactor rejection handling 2018-01-21 12:37:43 -05:00
vm_caught_custom_runtime_error.js
vm_caught_custom_runtime_error.out
vm_display_runtime_error.js lib,src: fix consistent spacing inside braces 2017-07-21 15:13:47 -04:00
vm_display_runtime_error.out vm: never abort on caught syntax error 2017-12-05 23:49:36 +01:00
vm_display_syntax_error.js
vm_display_syntax_error.out vm: never abort on caught syntax error 2017-12-05 23:49:36 +01:00
vm_dont_display_runtime_error.js
vm_dont_display_runtime_error.out vm: never abort on caught syntax error 2017-12-05 23:49:36 +01:00
vm_dont_display_syntax_error.js
vm_dont_display_syntax_error.out vm: never abort on caught syntax error 2017-12-05 23:49:36 +01:00