node/lib/internal/bootstrap
Joyee Cheung a93c825d78
process: clarify the pre- and post-condition of esm setup
This patch:

- Clarifies the dependency of the ESM loader initialization
  (`process.cwd()` and the value of `--loader`) in `node.js`.
- Moves the initialization of the per-isolate `importModuleDynamically`
  and `initializeImportMetaObject` callbacks into `node.js`
- Moves the initialization of the ESM loader into
  `prepareUserCodeExecution()` since it potentially involves
  execution of user code (similar to `--require` for CJS modules).

PR-URL: https://github.com/nodejs/node/pull/25530
Reviewed-By: Gus Caplan <me@gus.host>
2019-01-23 19:21:56 +08:00
..
cache.js src: simplify NativeModule caching and remove redundant data 2019-01-12 22:56:02 +08:00
loaders.js src: pass cli options to bootstrap/loaders.js lexically 2019-01-16 21:54:23 +08:00
node.js process: clarify the pre- and post-condition of esm setup 2019-01-23 19:21:56 +08:00