Index: src/parser.cc |
diff --git a/src/parser.cc b/src/parser.cc |
index 4947790395f3c431db7ef1ef68f30d47fccb8e5b..df568ef1bbb5962a91c3c3c925da42eee04f2037 100644 |
--- a/src/parser.cc |
+++ b/src/parser.cc |
@@ -3197,20 +3197,6 @@ Expression* Parser::ParseUnaryExpression(bool* ok) { |
factory()->NewNumberLiteral(1), |
position); |
} |
- // The same idea for '-foo' => 'foo*(-1)'. |
- if (op == Token::SUB) { |
- return factory()->NewBinaryOperation(Token::MUL, |
- expression, |
- factory()->NewNumberLiteral(-1), |
- position); |
- } |
- // ...and one more time for '~foo' => 'foo^(~0)'. |
- if (op == Token::BIT_NOT) { |
- return factory()->NewBinaryOperation(Token::BIT_XOR, |
- expression, |
- factory()->NewNumberLiteral(~0), |
- position); |
- } |
return factory()->NewUnaryOperation(op, expression, position); |