| Index: src/parser.cc
|
| ===================================================================
|
| --- src/parser.cc (revision 7683)
|
| +++ src/parser.cc (working copy)
|
| @@ -2484,7 +2484,7 @@
|
| x = NewCompareNode(cmp, x, y, position);
|
| if (cmp != op) {
|
| // The comparison was negated - add a NOT.
|
| - x = new(zone()) UnaryOperation(Token::NOT, x);
|
| + x = new(zone()) UnaryOperation(Token::NOT, x, position);
|
| }
|
|
|
| } else {
|
| @@ -2534,6 +2534,7 @@
|
| Token::Value op = peek();
|
| if (Token::IsUnaryOp(op)) {
|
| op = Next();
|
| + int position = scanner().location().beg_pos;
|
| Expression* expression = ParseUnaryExpression(CHECK_OK);
|
|
|
| // Compute some expressions involving only number literals.
|
| @@ -2561,7 +2562,7 @@
|
| }
|
| }
|
|
|
| - return new(zone()) UnaryOperation(op, expression);
|
| + return new(zone()) UnaryOperation(op, expression, position);
|
|
|
| } else if (Token::IsCountOp(op)) {
|
| op = Next();
|
|
|