diff options
author | Gus Caplan <me@gus.host> | 2018-01-13 23:35:51 -0800 |
---|---|---|
committer | Timothy Gu <timothygu99@gmail.com> | 2018-01-30 17:00:57 -0800 |
commit | 0993fbe5b213d0fe746c3162bcda85f6c66bb552 (patch) | |
tree | f0a1ffef2ab24f1da963a23a43f3dd58eed5bba0 /src/node_internals.h | |
parent | 2033a9f4362ee46b0fbddf9caf9cf6238391561e (diff) | |
download | android-node-v8-0993fbe5b213d0fe746c3162bcda85f6c66bb552.tar.gz android-node-v8-0993fbe5b213d0fe746c3162bcda85f6c66bb552.tar.bz2 android-node-v8-0993fbe5b213d0fe746c3162bcda85f6c66bb552.zip |
vm: add modules
Adds vm.Module, which wraps around ModuleWrap to provide an interface
for developers to work with modules in a more reflective manner.
Co-authored-by: Timothy Gu <timothygu99@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/17560
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Diffstat (limited to 'src/node_internals.h')
-rw-r--r-- | src/node_internals.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/node_internals.h b/src/node_internals.h index 0001d15172..b3e1f5cd9f 100644 --- a/src/node_internals.h +++ b/src/node_internals.h @@ -172,6 +172,11 @@ extern bool config_preserve_symlinks; // that is used by lib/module.js extern bool config_experimental_modules; +// Set in node.cc by ParseArgs when --experimental-vm-modules is used. +// Used in node_config.cc to set a constant on process.binding('config') +// that is used by lib/vm.js +extern bool config_experimental_vm_modules; + // Set in node.cc by ParseArgs when --loader is used. // Used in node_config.cc to set a constant on process.binding('config') // that is used by lib/internal/bootstrap_node.js |