Commit ae3ca62b authored by clemensh's avatar clemensh Committed by Commit bot

[asmjs] Flush after printing error message

This hopefully avoids multiple error messages appearing on the same
line.

R=titzer@chromium.org, machenbach@chromium.org
BUG=chromium:660016

Review-Url: https://codereview.chromium.org/2503423006
Cr-Commit-Position: refs/heads/master@{#41070}
parent 4abdcad2
...@@ -158,6 +158,7 @@ MaybeHandle<FixedArray> AsmJs::ConvertAsmToWasm(ParseInfo* info) { ...@@ -158,6 +158,7 @@ MaybeHandle<FixedArray> AsmJs::ConvertAsmToWasm(ParseInfo* info) {
if (!typer.Validate()) { if (!typer.Validate()) {
DCHECK(!info->isolate()->has_pending_exception()); DCHECK(!info->isolate()->has_pending_exception());
PrintF("Validation of asm.js module failed: %s", typer.error_message()); PrintF("Validation of asm.js module failed: %s", typer.error_message());
Flush();
return MaybeHandle<FixedArray>(); return MaybeHandle<FixedArray>();
} }
v8::internal::wasm::AsmWasmBuilder builder(info->isolate(), info->zone(), v8::internal::wasm::AsmWasmBuilder builder(info->isolate(), info->zone(),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment