Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Aug 24, 2019
1 parent 5610703 commit db5e908
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 16 deletions.
@@ -1 +1 @@
( { get x() {} } ) = 0
( { get x() {} } = 0 )
Expand Up @@ -14,8 +14,7 @@
},
"errors": [
"SyntaxError: Object pattern can't contain getter or setter (1:8)",
"SyntaxError: Invalid left-hand side in object destructuring pattern (1:4)",
"SyntaxError: You're trying to assign to a parenthesized expression, eg. instead of `({a}) = 0` use `({a} = 0)` (1:2)"
"SyntaxError: Invalid left-hand side in object destructuring pattern (1:4)"
],
"program": {
"type": "Program",
Expand Down Expand Up @@ -50,16 +49,16 @@
},
"expression": {
"type": "AssignmentExpression",
"start": 0,
"end": 22,
"start": 2,
"end": 20,
"loc": {
"start": {
"line": 1,
"column": 0
"column": 2
},
"end": {
"line": 1,
"column": 22
"column": 20
}
},
"operator": "=",
Expand Down Expand Up @@ -134,31 +133,31 @@
"directives": []
}
}
],
"extra": {
"parenthesized": true,
"parenStart": 0
}
]
},
"right": {
"type": "NumericLiteral",
"start": 21,
"end": 22,
"start": 19,
"end": 20,
"loc": {
"start": {
"line": 1,
"column": 21
"column": 19
},
"end": {
"line": 1,
"column": 22
"column": 20
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
},
"extra": {
"parenthesized": true,
"parenStart": 0
}
}
}
Expand Down

0 comments on commit db5e908

Please sign in to comment.