| 1 | { |
| 2 | "type": "File", |
| 3 | "start":0,"end":20,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":20,"index":20}}, |
| 4 | "errors": [ |
| 5 | "SyntaxError: Object pattern can't contain getter or setter. (1:7)" |
| 6 | ], |
| 7 | "program": { |
| 8 | "type": "Program", |
| 9 | "start":0,"end":20,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":20,"index":20}}, |
| 10 | "sourceType": "script", |
| 11 | "interpreter": null, |
| 12 | "body": [ |
| 13 | { |
| 14 | "type": "ExpressionStatement", |
| 15 | "start":0,"end":20,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":20,"index":20}}, |
| 16 | "expression": { |
| 17 | "type": "AssignmentExpression", |
| 18 | "start":1,"end":19,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":19,"index":19}}, |
| 19 | "operator": "=", |
| 20 | "left": { |
| 21 | "type": "ObjectPattern", |
| 22 | "start":1,"end":15,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":15,"index":15}}, |
| 23 | "properties": [ |
| 24 | { |
| 25 | "type": "ObjectMethod", |
| 26 | "start":3,"end":13,"loc":{"start":{"line":1,"column":3,"index":3},"end":{"line":1,"column":13,"index":13}}, |
| 27 | "method": false, |
| 28 | "key": { |
| 29 | "type": "Identifier", |
| 30 | "start":7,"end":8,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":8,"index":8},"identifierName":"x"}, |
| 31 | "name": "x" |
| 32 | }, |
| 33 | "computed": false, |
| 34 | "kind": "get", |
| 35 | "id": null, |
| 36 | "generator": false, |
| 37 | "async": false, |
| 38 | "params": [], |
| 39 | "body": { |
| 40 | "type": "BlockStatement", |
| 41 | "start":11,"end":13,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":13,"index":13}}, |
| 42 | "body": [], |
| 43 | "directives": [] |
| 44 | } |
| 45 | } |
| 46 | ] |
| 47 | }, |
| 48 | "right": { |
| 49 | "type": "NumericLiteral", |
| 50 | "start":18,"end":19,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":19,"index":19}}, |
| 51 | "extra": { |
| 52 | "rawValue": 0, |
| 53 | "raw": "0" |
| 54 | }, |
| 55 | "value": 0 |
| 56 | }, |
| 57 | "extra": { |
| 58 | "parenthesized": true, |
| 59 | "parenStart": 0 |
| 60 | } |
| 61 | } |
| 62 | } |
| 63 | ], |
| 64 | "directives": [] |
| 65 | } |
| 66 | } |