diff options
author | Joyee Cheung <joyeec9h3@gmail.com> | 2019-01-13 20:23:31 +0800 |
---|---|---|
committer | Joyee Cheung <joyeec9h3@gmail.com> | 2019-01-23 19:21:56 +0800 |
commit | a93c825d7843e72d3e534939639f49ce8e26b16b (patch) | |
tree | 43db5832f6a88f12589b911a830d7fbab1148319 /src/env.h | |
parent | 530016829690285e0475d6716eb039ec890031b4 (diff) | |
download | node-new-a93c825d7843e72d3e534939639f49ce8e26b16b.tar.gz |
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>
Diffstat (limited to 'src/env.h')
0 files changed, 0 insertions, 0 deletions