0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/test/message
Joyee Cheung efce655c0f
module: reduce circular dependency of internal/modules/cjs/loader
Previously `internal/bootstrap/pre_execution.js` requires
`internal/modules/cjs/loader.js` which in turn requires
`internal/bootstrap/pre_execution.js`. This patch moves the
entry point execution logic out of `pre_execution.js` and
puts it into `internal/modules/run_main.js`. It also tests
that `Module.runMain` can be monkey-patched before further
deprecation/refactoring can be done.

Also added an internal assertion `hasLoadedAnyUserCJSModule`
for documentation purposes.

PR-URL: https://github.com/nodejs/node/pull/30349
Reviewed-By: Guy Bedford <guybedford@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
2019-11-19 13:43:59 +01:00
..
2100bytes.js
2100bytes.out
assert_throws_stack.js
assert_throws_stack.out process: inspect error in case of a fatal exception 2019-05-16 12:50:05 +02:00
async_error_eval_cjs.js process: reduce the number of internal frames in async stack trace 2019-04-28 15:36:28 +08:00
async_error_eval_cjs.out process: reduce the number of internal frames in async stack trace 2019-04-28 15:36:28 +08:00
async_error_eval_esm.js esm: unflag --experimental-modules 2019-11-12 14:04:55 -08:00
async_error_eval_esm.out esm: unflag --experimental-modules 2019-11-12 14:04:55 -08:00
async_error_microtask_main.js process: reduce the number of internal frames in async stack trace 2019-04-28 15:36:28 +08:00
async_error_microtask_main.out process: reduce the number of internal frames in async stack trace 2019-04-28 15:36:28 +08:00
async_error_nexttick_main.js process: reduce the number of internal frames in async stack trace 2019-04-28 15:36:28 +08:00
async_error_nexttick_main.out process: reduce the number of internal frames in async stack trace 2019-04-28 15:36:28 +08:00
async_error_sync_esm.mjs esm: unflag --experimental-modules 2019-11-12 14:04:55 -08:00
async_error_sync_esm.out esm: unflag --experimental-modules 2019-11-12 14:04:55 -08:00
async_error_sync_main.js process: reduce the number of internal frames in async stack trace 2019-04-28 15:36:28 +08:00
async_error_sync_main.out process: reduce the number of internal frames in async stack trace 2019-04-28 15:36:28 +08:00
console_low_stack_space.js
console_low_stack_space.out
console.js
console.out
core_line_numbers.js
core_line_numbers.out module: reduce circular dependency of internal/modules/cjs/loader 2019-11-19 13:43:59 +01:00
error_exit.js
error_exit.out module: reduce circular dependency of internal/modules/cjs/loader 2019-11-19 13:43:59 +01:00
esm_display_syntax_error_import_module.mjs esm: unflag --experimental-modules 2019-11-12 14:04:55 -08:00
esm_display_syntax_error_import_module.out
esm_display_syntax_error_import.mjs esm: unflag --experimental-modules 2019-11-12 14:04:55 -08:00
esm_display_syntax_error_import.out esm: unflag --experimental-modules 2019-11-12 14:04:55 -08:00
esm_display_syntax_error_module.mjs esm: unflag --experimental-modules 2019-11-12 14:04:55 -08:00
esm_display_syntax_error_module.out
esm_display_syntax_error.mjs esm: unflag --experimental-modules 2019-11-12 14:04:55 -08:00
esm_display_syntax_error.out esm: unflag --experimental-modules 2019-11-12 14:04:55 -08:00
esm_loader_not_found.mjs esm: unflag --experimental-modules 2019-11-12 14:04:55 -08:00
esm_loader_not_found.out module: reduce circular dependency of internal/modules/cjs/loader 2019-11-19 13:43:59 +01:00
esm_loader_syntax_error.mjs esm: unflag --experimental-modules 2019-11-12 14:04:55 -08:00
esm_loader_syntax_error.out esm: exit the process with an error if loader has an issue 2019-11-09 09:30:36 +01:00
eval_messages.js
eval_messages.out cli: add --trace-uncaught flag 2019-10-22 08:16:18 +02:00
events_unhandled_error_common_trace.js
events_unhandled_error_common_trace.out module: reduce circular dependency of internal/modules/cjs/loader 2019-11-19 13:43:59 +01:00
events_unhandled_error_nexttick.js
events_unhandled_error_nexttick.out module: reduce circular dependency of internal/modules/cjs/loader 2019-11-19 13:43:59 +01:00
events_unhandled_error_sameline.js
events_unhandled_error_sameline.out module: reduce circular dependency of internal/modules/cjs/loader 2019-11-19 13:43:59 +01:00
events_unhandled_error_subclass.js events: give subclass name in unhandled 'error' message 2019-08-06 19:28:12 -07:00
events_unhandled_error_subclass.out module: reduce circular dependency of internal/modules/cjs/loader 2019-11-19 13:43:59 +01:00
hello_world.js
hello_world.out
if-error-has-good-stack.js
if-error-has-good-stack.out module: reduce circular dependency of internal/modules/cjs/loader 2019-11-19 13:43:59 +01:00
internal_assert_fail.js lib: throw a special error in internal/assert 2019-04-25 01:29:48 +02:00
internal_assert_fail.out errors: make sure all Node.js errors show their properties 2019-10-03 12:34:44 -07:00
internal_assert.js lib: throw a special error in internal/assert 2019-04-25 01:29:48 +02:00
internal_assert.out errors: make sure all Node.js errors show their properties 2019-10-03 12:34:44 -07:00
max_tick_depth.js
max_tick_depth.out
message.status test: unskip tests that now pass on AIX 2019-08-10 19:02:57 -07:00
nexttick_throw.js
nexttick_throw.out process: reduce the number of internal frames in async stack trace 2019-04-28 15:36:28 +08:00
promise_always_throw_unhandled.js process: add --unhandled-rejections flag 2019-04-15 18:29:07 +02:00
promise_always_throw_unhandled.out process: add --unhandled-rejections flag 2019-04-15 18:29:07 +02:00
source_map_throw_catch.js process: add source-map support to stack traces 2019-10-05 17:08:00 -07:00
source_map_throw_catch.out process: add source-map support to stack traces 2019-10-05 17:08:00 -07:00
source_map_throw_first_tick.js process: add source-map support to stack traces 2019-10-05 17:08:00 -07:00
source_map_throw_first_tick.out process: add source-map support to stack traces 2019-10-05 17:08:00 -07:00
source_map_throw_set_immediate.js process: add source-map support to stack traces 2019-10-05 17:08:00 -07:00
source_map_throw_set_immediate.out process: add source-map support to stack traces 2019-10-05 17:08:00 -07:00
stack_overflow.js
stack_overflow.out process: inspect error in case of a fatal exception 2019-05-16 12:50:05 +02:00
stdin_messages.js test: change var to let 2019-11-17 20:08:36 +05:30
stdin_messages.out test: change var to let 2019-11-17 20:08:36 +05:30
testcfg.py
throw_custom_error.js
throw_custom_error.out process: inspect error in case of a fatal exception 2019-05-16 12:50:05 +02:00
throw_error_with_getter_throw_traced.js cli: add --trace-uncaught flag 2019-10-22 08:16:18 +02:00
throw_error_with_getter_throw_traced.out module: reduce circular dependency of internal/modules/cjs/loader 2019-11-19 13:43:59 +01:00
throw_error_with_getter_throw.js
throw_error_with_getter_throw.out cli: add --trace-uncaught flag 2019-10-22 08:16:18 +02:00
throw_in_line_with_tabs.js
throw_in_line_with_tabs.out process: inspect error in case of a fatal exception 2019-05-16 12:50:05 +02:00
throw_non_error.js
throw_non_error.out process: inspect error in case of a fatal exception 2019-05-16 12:50:05 +02:00
throw_null_traced.js cli: add --trace-uncaught flag 2019-10-22 08:16:18 +02:00
throw_null_traced.out module: reduce circular dependency of internal/modules/cjs/loader 2019-11-19 13:43:59 +01:00
throw_null.js
throw_null.out cli: add --trace-uncaught flag 2019-10-22 08:16:18 +02:00
throw_undefined_traced.js cli: add --trace-uncaught flag 2019-10-22 08:16:18 +02:00
throw_undefined_traced.out module: reduce circular dependency of internal/modules/cjs/loader 2019-11-19 13:43:59 +01:00
throw_undefined.js
throw_undefined.out cli: add --trace-uncaught flag 2019-10-22 08:16:18 +02:00
timeout_throw.js
timeout_throw.out
undefined_reference_in_new_context.js
undefined_reference_in_new_context.out module: reduce circular dependency of internal/modules/cjs/loader 2019-11-19 13:43:59 +01:00
unhandled_promise_trace_warnings.js
unhandled_promise_trace_warnings.out lib: refactor unhandled rejection deprecation warning emission 2019-06-19 15:44:09 +08:00
util_inspect_error.js
util_inspect_error.out
v8_warning.js
v8_warning.out
vm_caught_custom_runtime_error.js
vm_caught_custom_runtime_error.out
vm_display_runtime_error.js
vm_display_runtime_error.out module: reduce circular dependency of internal/modules/cjs/loader 2019-11-19 13:43:59 +01:00
vm_display_syntax_error.js
vm_display_syntax_error.out module: reduce circular dependency of internal/modules/cjs/loader 2019-11-19 13:43:59 +01:00
vm_dont_display_runtime_error.js
vm_dont_display_runtime_error.out module: reduce circular dependency of internal/modules/cjs/loader 2019-11-19 13:43:59 +01:00
vm_dont_display_syntax_error.js
vm_dont_display_syntax_error.out module: reduce circular dependency of internal/modules/cjs/loader 2019-11-19 13:43:59 +01:00