summaryrefslogtreecommitdiff
path: root/lib/internal/bootstrap/pre_execution.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/internal/bootstrap/pre_execution.js')
-rw-r--r--lib/internal/bootstrap/pre_execution.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/internal/bootstrap/pre_execution.js b/lib/internal/bootstrap/pre_execution.js
index 81002a3e3c..67fcfc8fbf 100644
--- a/lib/internal/bootstrap/pre_execution.js
+++ b/lib/internal/bootstrap/pre_execution.js
@@ -402,11 +402,10 @@ function initializePolicy() {
}
function initializeWASI() {
- if (getOptionValue('--experimental-wasi-unstable-preview0')) {
- const { NativeModule } = require('internal/bootstrap/loaders');
- const mod = NativeModule.map.get('wasi');
- mod.canBeRequiredByUsers = true;
- }
+ const { NativeModule } = require('internal/bootstrap/loaders');
+ const mod = NativeModule.map.get('wasi');
+ mod.canBeRequiredByUsers =
+ getOptionValue('--experimental-wasi-unstable-preview0');
}
function initializeCJSLoader() {