Index: src/full-codegen/full-codegen.cc |
diff --git a/src/full-codegen/full-codegen.cc b/src/full-codegen/full-codegen.cc |
index 4bb0b4d1b7d7e446bc1435cf4b919bc108d8da06..57ca1d0e2e3f9aa61a7ae77d0feb526ddbd55ad5 100644 |
--- a/src/full-codegen/full-codegen.cc |
+++ b/src/full-codegen/full-codegen.cc |
@@ -1283,7 +1283,7 @@ void FullCodeGenerator::VisitTryCatchStatement(TryCatchStatement* stmt) { |
Label try_entry, handler_entry, exit; |
__ jmp(&try_entry); |
__ bind(&handler_entry); |
- ClearPendingMessage(); |
+ if (stmt->clear_pending_message()) ClearPendingMessage(); |
// Exception handler code, the exception is in the result register. |
// Extend the context before executing the catch block. |