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