diff options
author | Joyee Cheung <joyeec9h3@gmail.com> | 2019-04-17 23:21:25 +0800 |
---|---|---|
committer | Joyee Cheung <joyeec9h3@gmail.com> | 2019-04-22 17:30:09 +0800 |
commit | 7c816b7588f0e2910bcef5db48f71296cd3b67c2 (patch) | |
tree | 3790a650c6b582fb6be11946e1c63d538351b1ff /src/node_util.cc | |
parent | 528d100394ab45dd62141e010e53722accd5826d (diff) | |
download | android-node-v8-7c816b7588f0e2910bcef5db48f71296cd3b67c2.tar.gz android-node-v8-7c816b7588f0e2910bcef5db48f71296cd3b67c2.tar.bz2 android-node-v8-7c816b7588f0e2910bcef5db48f71296cd3b67c2.zip |
module: explicitly initialize CJS loader
Explicitly initialize the CJS loader with `module._initPaths()`
instead of making it a side-effect of requiring
`internal/modules/cjs/loader` - that makes it harder to reason about
when it's safe to load `internal/modules/cjs/loader`.
PR-URL: https://github.com/nodejs/node/pull/27313
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'src/node_util.cc')
0 files changed, 0 insertions, 0 deletions