mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
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>
This commit is contained in:
1 parent
ce49f90e14
commit
efb908409e
3 files changed
+14
-5
No files matched your search
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user