Index: src/parser.cc |
diff --git a/src/parser.cc b/src/parser.cc |
index 43694df1132f0454452aed3b21908a4ac1bdbef5..319d468e4d61db43f529e8424139842d7bede8ba 100644 |
--- a/src/parser.cc |
+++ b/src/parser.cc |
@@ -626,7 +626,7 @@ Expression* ParserTraits::BuildUnaryExpression(Expression* expression, |
// Desugar '+foo' => 'foo*1' |
if (op == Token::ADD) { |
return factory->NewBinaryOperation( |
- Token::MUL, expression, factory->NewNumberLiteral(1, pos), pos); |
+ Token::MUL, expression, factory->NewNumberLiteral(1, pos, true), pos); |
} |
// The same idea for '-foo' => 'foo*(-1)'. |
if (op == Token::SUB) { |