Index: src/parser.cc |
=================================================================== |
--- src/parser.cc (revision 5326) |
+++ src/parser.cc (working copy) |
@@ -3086,7 +3086,8 @@ |
Handle<String> type = Factory::invalid_lhs_in_prefix_op_symbol(); |
expression = NewThrowReferenceError(type); |
} |
- return NEW(CountOperation(true /* prefix */, op, expression)); |
+ IncrementOperation* increment = NEW(IncrementOperation(op, expression)); |
+ return NEW(CountOperation(true /* prefix */, increment)); |
} else { |
return ParsePostfixExpression(ok); |
@@ -3109,7 +3110,8 @@ |
expression = NewThrowReferenceError(type); |
} |
Token::Value next = Next(); |
- expression = NEW(CountOperation(false /* postfix */, next, expression)); |
+ IncrementOperation* increment = NEW(IncrementOperation(next, expression)); |
+ expression = NEW(CountOperation(false /* postfix */, increment)); |
} |
return expression; |
} |