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
path: root/src
diff options
context:
space:
mode:
authorcjihrig <cjihrig@gmail.com>2019-12-14 19:14:02 +0300
committerMyles Borins <mylesborins@google.com>2019-12-18 02:21:12 +0300
commit54d51dbe4c8a0415f2cb16ca95dbb03e63df125a (patch)
tree69cdbd22f6e20c05df58eef7a952106a000d3df4 /src
parent5ca29d860bf8bdadf08ef0d5f906e90060d4adf0 (diff)
wasi: require CLI flag to require() wasi module
This commit ensures that the WASI module cannot be require()'ed without a CLI flag while the module is still experimental. This fixes a regression from https://github.com/nodejs/node/pull/30778. PR-URL: https://github.com/nodejs/node/pull/30963 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: David Carlier <devnexen@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/node_native_module.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/node_native_module.cc b/src/node_native_module.cc
index 814adb620dc..43c13ea30a0 100644
--- a/src/node_native_module.cc
+++ b/src/node_native_module.cc
@@ -98,6 +98,7 @@ void NativeModuleLoader::InitializeModuleCategories() {
#endif // !HAVE_OPENSSL
"sys", // Deprecated.
+ "wasi", // Experimental.
"internal/test/binding",
"internal/v8_prof_polyfill",
"internal/v8_prof_processor",