node/lib/internal/main
Chengzhong Wu c7a7493ca2
module: bootstrap module loaders in shadow realm
This bootstraps ESM loaders in the ShadowRealm with
`ShadowRealm.prototype.importValue` as its entry point and enables
loading ESM and CJS modules in the ShadowRealm. The module is imported
without a parent URL and resolved with the current process's working
directory.

PR-URL: https://github.com/nodejs/node/pull/48655
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
2023-11-23 10:15:44 +01:00
..
check_syntax.js esm: --experimental-default-type flag to flip module defaults 2023-09-29 06:18:44 +00:00
embedding.js
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
mksnapshot.js
print_help.js lib: remove deprecated string methods 2023-11-14 09:18:04 +01:00
prof_process.js
repl.js
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
worker_thread.js module: bootstrap module loaders in shadow realm 2023-11-23 10:15:44 +01:00