node/lib/internal/main
Joyee Cheung ccc76bbfd7 src: simplify embedder entry point execution
Previously we wrapped the embedder entry point callback into a
binding and then invoke the binding from JS land which was a bit
convoluted. Now we just call it directly from C++.
The main scripts that needed to tail call the embedder callback now
return the arguments in an array so that the C++ land can extract
the arguments and pass them to the callback. We also set
`PauseOnNextJavascriptStatement()` for --inspect-brk and mark
the bootstrap complete milestone directly in C++ for these
execution modes.

PR-URL: https://github.com/nodejs/node/pull/51557
Reviewed-By: Daniel Lemire <daniel@lemire.me>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
2024-02-27 12:10:13 +01:00
..
check_syntax.js esm: --experimental-default-type flag to flip module defaults 2023-09-29 06:18:44 +00:00
embedding.js src: simplify embedder entry point execution 2024-02-27 12:10:13 +01:00
eval_stdin.js esm: --experimental-default-type flag to flip module defaults 2023-09-29 06:18:44 +00:00
eval_string.js esm: --experimental-default-type flag to flip module defaults 2023-09-29 06:18:44 +00:00
inspect.js lib: enforce use of trailing commas 2023-03-06 10:44:14 +01:00
mksnapshot.js src: simplify embedder entry point execution 2024-02-27 12:10:13 +01:00
print_help.js lib: remove deprecated string methods 2023-11-14 09:18:04 +01:00
prof_process.js lib: enforce use of trailing commas 2023-03-06 10:44:14 +01:00
repl.js lib: enforce use of trailing commas 2023-03-06 10:44:14 +01:00
run_main_module.js esm: bypass CommonJS loader under --default-type 2023-10-05 17:57:32 +00:00
test_runner.js test_runner, cli: add --test-timeout flag 2023-11-14 09:17:58 +01:00
watch_mode.js watch: fix infinite loop when passing --watch=true flag 2024-01-02 15:05:22 -03:00
worker_thread.js module: bootstrap module loaders in shadow realm 2023-11-23 10:15:44 +01:00