Index: src/asmjs/asm-wasm-builder.cc |
diff --git a/src/asmjs/asm-wasm-builder.cc b/src/asmjs/asm-wasm-builder.cc |
index 917de8b32349df2f7b64d582630bf800b96ac4c2..bf89ed13872bef8fb6ffa61416a24214ecc9e46f 100644 |
--- a/src/asmjs/asm-wasm-builder.cc |
+++ b/src/asmjs/asm-wasm-builder.cc |
@@ -123,7 +123,7 @@ class AsmWasmBuilderImpl final : public AstVisitor<AsmWasmBuilderImpl> { |
if (HasStackOverflow()) { |
return false; |
} |
- if (!typer_finished_) { |
+ if (!typer_finished_ && !typer_failed_) { |
typer_->FailWithMessage("Module missing export section."); |
typer_failed_ = true; |
} |