Index: src/wasm/wasm-module.cc |
diff --git a/src/wasm/wasm-module.cc b/src/wasm/wasm-module.cc |
index d1f07608259fa5d5423d439a9888fb77a4fcb00c..b150ffbf15479033519061662c50926ce43eb426 100644 |
--- a/src/wasm/wasm-module.cc |
+++ b/src/wasm/wasm-module.cc |
@@ -1833,7 +1833,7 @@ class InstantiationHelper { |
module_name, import_name); |
return -1; |
} |
- if (FLAG_fast_validate_asm) { |
+ if (module_->is_asm_js() && FLAG_fast_validate_asm) { |
if (module_->globals[import.index].type == kWasmI32) { |
value = Object::ToInt32(isolate_, value).ToHandleChecked(); |
} else { |