node/lib/internal/bootstrap
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
..
switches lib: reset the cwd cache before execution 2023-09-21 16:56:33 +00:00
web lib: add --no-experimental-global-navigator CLI flag 2023-11-14 09:17:59 +01:00
node.js lib: add api to detect whether source-maps are enabled 2023-08-17 08:42:12 +00:00
realm.js module: bootstrap module loaders in shadow realm 2023-11-23 10:15:44 +01:00
shadow_realm.js module: bootstrap module loaders in shadow realm 2023-11-23 10:15:44 +01:00