| Index: src/parser.cc
|
| diff --git a/src/parser.cc b/src/parser.cc
|
| index 8b467e939e03675fa0d38f09090358813a3f0575..1c5435c0ee8ffc3cb3d9678c1c095a2d33cd7d43 100644
|
| --- a/src/parser.cc
|
| +++ b/src/parser.cc
|
| @@ -2592,8 +2592,6 @@ DoWhileStatement* Parser::ParseDoWhileStatement(ZoneStringList* labels,
|
| Expect(Token::WHILE, CHECK_OK);
|
| Expect(Token::LPAREN, CHECK_OK);
|
|
|
| - if (loop != NULL) loop->set_condition_position(position());
|
| -
|
| Expression* cond = ParseExpression(true, CHECK_OK);
|
| Expect(Token::RPAREN, CHECK_OK);
|
|
|
| @@ -3045,13 +3043,10 @@ Expression* Parser::ParseConditionalExpression(bool accept_IN, bool* ok) {
|
| // In parsing the first assignment expression in conditional
|
| // expressions we always accept the 'in' keyword; see ECMA-262,
|
| // section 11.12, page 58.
|
| - int left_position = peek_position();
|
| Expression* left = ParseAssignmentExpression(true, CHECK_OK);
|
| Expect(Token::COLON, CHECK_OK);
|
| - int right_position = peek_position();
|
| Expression* right = ParseAssignmentExpression(accept_IN, CHECK_OK);
|
| - return factory()->NewConditional(
|
| - expression, left, right, left_position, right_position, pos);
|
| + return factory()->NewConditional(expression, left, right, pos);
|
| }
|
|
|
|
|
|
|