Index: src/preparser.cc |
diff --git a/src/preparser.cc b/src/preparser.cc |
index 49cadb661801bb86c9a7c0103bd129c9623107da..b36f4faca423e7254d5373d1c7f0d15e73ad6280 100644 |
--- a/src/preparser.cc |
+++ b/src/preparser.cc |
@@ -627,6 +627,7 @@ PreParser::Statement PreParser::ParseDoWhileStatement(bool* ok) { |
Expect(i::Token::LPAREN, CHECK_OK); |
ParseExpression(true, CHECK_OK); |
Expect(i::Token::RPAREN, ok); |
+ if (peek() == i::Token::SEMICOLON) Consume(i::Token::SEMICOLON); |
return Statement::Default(); |
} |