Index: src/asmjs/asm-js.cc |
diff --git a/src/asmjs/asm-js.cc b/src/asmjs/asm-js.cc |
index 13f936d0b536b989bc0d359d9c093c41cb0fb086..3670962f67b7ed689c33e9ec7dd6fc269062f3fe 100644 |
--- a/src/asmjs/asm-js.cc |
+++ b/src/asmjs/asm-js.cc |
@@ -158,6 +158,7 @@ MaybeHandle<FixedArray> AsmJs::ConvertAsmToWasm(ParseInfo* info) { |
if (!typer.Validate()) { |
DCHECK(!info->isolate()->has_pending_exception()); |
PrintF("Validation of asm.js module failed: %s", typer.error_message()); |
+ Flush(); |
return MaybeHandle<FixedArray>(); |
} |
v8::internal::wasm::AsmWasmBuilder builder(info->isolate(), info->zone(), |