Index: src/parsing/preparser.cc |
diff --git a/src/parsing/preparser.cc b/src/parsing/preparser.cc |
index 1025b8b136987f0af54715d2c8e1d9fc4995a8b3..4cd00ee9ed84dec8dc229b06cae7cfdd01711fed 100644 |
--- a/src/parsing/preparser.cc |
+++ b/src/parsing/preparser.cc |
@@ -133,7 +133,7 @@ PreParser::PreParseResult PreParser::PreParseFunction( |
} else if (stack_overflow()) { |
return kPreParseStackOverflow; |
} else if (!*ok) { |
- DCHECK(log_.has_error()); |
+ DCHECK(pending_error_handler_->has_pending_error()); |
} else { |
DCHECK_EQ(Token::RBRACE, scanner()->peek()); |