Index: src/wasm/wasm-module.cc |
diff --git a/src/wasm/wasm-module.cc b/src/wasm/wasm-module.cc |
index 89bc5b7f032c3c4f53dd7160168ac67d2715d8e8..ba9c0f1c53f53e158e784f1397c0e21783a014f6 100644 |
--- a/src/wasm/wasm-module.cc |
+++ b/src/wasm/wasm-module.cc |
@@ -569,10 +569,10 @@ bool FinishCompilation(Isolate* isolate, const WasmModule* module, |
ErrorThrower& thrower, Factory* factory, |
ModuleEnv& module_env, CodeStats& code_stats, |
PropertyDescriptor& desc) { |
+ if (thrower.error()) return false; |
for (uint32_t i = FLAG_skip_compiling_wasm_funcs; |
i < module->functions.size(); i++) { |
const WasmFunction& func = module->functions[i]; |
- if (thrower.error()) break; |
DCHECK_EQ(i, func.func_index); |
WasmName str = module->GetName(func.name_offset, func.name_length); |