Index: src/wasm/wasm-module.cc |
diff --git a/src/wasm/wasm-module.cc b/src/wasm/wasm-module.cc |
index 0b5ef15bc7229ba586b2c2f0e814cdc1a31583ba..80e3700eff40ad01760e20e45293b7f6a8710767 100644 |
--- a/src/wasm/wasm-module.cc |
+++ b/src/wasm/wasm-module.cc |
@@ -1925,7 +1925,7 @@ MaybeHandle<WasmModuleObject> wasm::CreateModuleObjectFromBytes( |
bool wasm::ValidateModuleBytes(Isolate* isolate, const byte* start, |
const byte* end, ErrorThrower* thrower, |
ModuleOrigin origin) { |
- ModuleResult result = DecodeWasmModule(isolate, start, end, false, origin); |
+ ModuleResult result = DecodeWasmModule(isolate, start, end, true, origin); |
if (result.val) { |
delete result.val; |
} else { |