66 lines
2.3 KiB
JSON
66 lines
2.3 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":19,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":19}},
|
|
"errors": [
|
|
"SyntaxError: Object pattern can't contain getter or setter (1:6)"
|
|
],
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":19,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":19}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":0,"end":19,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":19}},
|
|
"expression": {
|
|
"type": "ArrowFunctionExpression",
|
|
"start":0,"end":18,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":18}},
|
|
"id": null,
|
|
"generator": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "ObjectPattern",
|
|
"start":1,"end":12,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":12}},
|
|
"properties": [
|
|
{
|
|
"type": "ObjectMethod",
|
|
"start":2,"end":11,"loc":{"start":{"line":1,"column":2},"end":{"line":1,"column":11}},
|
|
"method": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start":6,"end":7,"loc":{"start":{"line":1,"column":6},"end":{"line":1,"column":7},"identifierName":"a"},
|
|
"name": "a"
|
|
},
|
|
"computed": false,
|
|
"kind": "get",
|
|
"id": null,
|
|
"generator": false,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":9,"end":11,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":11}},
|
|
"body": [],
|
|
"directives": []
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "NumericLiteral",
|
|
"start":17,"end":18,"loc":{"start":{"line":1,"column":17},"end":{"line":1,"column":18}},
|
|
"extra": {
|
|
"rawValue": 0,
|
|
"raw": "0"
|
|
},
|
|
"value": 0
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
} |