Chromium Code Reviews| Index: src/preparser.cc |
| diff --git a/src/preparser.cc b/src/preparser.cc |
| index 47d21bac15e8a253829eeddc5a582258618ecd7e..6021ebd463c2a0c3f0b7d5ffa38838bd542001a3 100644 |
| --- a/src/preparser.cc |
| +++ b/src/preparser.cc |
| @@ -540,6 +540,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(); |
| } |