Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGus Caplan <me@gus.host>2018-01-14 10:35:51 +0300
committerTimothy Gu <timothygu99@gmail.com>2018-01-31 04:00:57 +0300
commit0993fbe5b213d0fe746c3162bcda85f6c66bb552 (patch)
treef0a1ffef2ab24f1da963a23a43f3dd58eed5bba0 /src/node_config.cc
parent2033a9f4362ee46b0fbddf9caf9cf6238391561e (diff)
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_config.cc')
-rw-r--r--src/node_config.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/node_config.cc b/src/node_config.cc
index 2e9ad2ed134..cac551ad2c4 100644
--- a/src/node_config.cc
+++ b/src/node_config.cc
@@ -82,6 +82,9 @@ static void InitConfig(Local<Object> target,
}
}
+ if (config_experimental_vm_modules)
+ READONLY_BOOLEAN_PROPERTY("experimentalVMModules");
+
if (config_pending_deprecation)
READONLY_BOOLEAN_PROPERTY("pendingDeprecation");