Chromium Code Reviews| Index: src/preparser.cc |
| diff --git a/src/preparser.cc b/src/preparser.cc |
| index 1a3dd737c5d75f998bbda9361fa04fbb5289e88e..db27544b16e390c2709b203fc9fa8113571e6034 100644 |
| --- a/src/preparser.cc |
| +++ b/src/preparser.cc |
| @@ -538,6 +538,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(); |
| } |