Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index 26857502da6705d59e88a1d81fb8b7e74e3f8686..b65af08228442a3ebf672180687a3a2b588e02d1 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -2657,7 +2657,9 @@ bool Genesis::InstallSpecialObjects(Handle<Context> native_context) { |
} |
#if defined(V8_WASM) |
- WasmJs::Install(isolate, global); |
+ if (FLAG_expose_wasm) { |
+ WasmJs::Install(isolate, global); |
+ } |
#endif |
return true; |