Index: src/preparser.cc |
diff --git a/src/preparser.cc b/src/preparser.cc |
index 474e642ad350a07272d9b04e70766a6610716df9..9480af6fbad0db414152485a00c482df211ef140 100644 |
--- a/src/preparser.cc |
+++ b/src/preparser.cc |
@@ -146,8 +146,8 @@ PreParserExpression PreParserTraits::ParseFunctionLiteral( |
} |
-PreParserExpression PreParserTraits::ParsePostfixExpression(bool* ok) { |
- return pre_parser_->ParsePostfixExpression(ok); |
+PreParserExpression PreParserTraits::ParseLeftHandSideExpression(bool* ok) { |
+ return pre_parser_->ParseLeftHandSideExpression(ok); |
} |
@@ -842,23 +842,6 @@ PreParser::Statement PreParser::ParseDebuggerStatement(bool* ok) { |
#undef DUMMY |
-PreParser::Expression PreParser::ParsePostfixExpression(bool* ok) { |
- // PostfixExpression :: |
- // LeftHandSideExpression ('++' | '--')? |
- |
- Expression expression = ParseLeftHandSideExpression(CHECK_OK); |
- if (!scanner()->HasAnyLineTerminatorBeforeNext() && |
- Token::IsCountOp(peek())) { |
- if (strict_mode() == STRICT) { |
- CheckStrictModeLValue(expression, CHECK_OK); |
- } |
- Next(); |
- return Expression::Default(); |
- } |
- return expression; |
-} |
- |
- |
PreParser::Expression PreParser::ParseLeftHandSideExpression(bool* ok) { |
// LeftHandSideExpression :: |
// (NewExpression | MemberExpression) ... |