From 0993fbe5b213d0fe746c3162bcda85f6c66bb552 Mon Sep 17 00:00:00 2001 From: Gus Caplan Date: Sat, 13 Jan 2018 23:35:51 -0800 Subject: vm: add modules MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 PR-URL: https://github.com/nodejs/node/pull/17560 Reviewed-By: Michaƫl Zasso Reviewed-By: Tiancheng "Timothy" Gu --- src/node_config.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/node_config.cc') diff --git a/src/node_config.cc b/src/node_config.cc index 2e9ad2ed13..cac551ad2c 100644 --- a/src/node_config.cc +++ b/src/node_config.cc @@ -82,6 +82,9 @@ static void InitConfig(Local target, } } + if (config_experimental_vm_modules) + READONLY_BOOLEAN_PROPERTY("experimentalVMModules"); + if (config_pending_deprecation) READONLY_BOOLEAN_PROPERTY("pendingDeprecation"); -- cgit v1.2.1