65 lines
2.2 KiB
JSON
65 lines
2.2 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":17,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":17}},
|
|
"errors": [
|
|
"SyntaxError: Invalid left-hand side in object destructuring pattern (1:7)"
|
|
],
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":17,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":17}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":0,"end":17,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":17}},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"start":1,"end":16,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":16}},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "ObjectPattern",
|
|
"start":1,"end":11,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":11}},
|
|
"properties": [
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start":3,"end":9,"loc":{"start":{"line":1,"column":3},"end":{"line":1,"column":9}},
|
|
"method": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start":3,"end":6,"loc":{"start":{"line":1,"column":3},"end":{"line":1,"column":6},"identifierName":"obj"},
|
|
"name": "obj"
|
|
},
|
|
"computed": false,
|
|
"shorthand": false,
|
|
"value": {
|
|
"type": "NumericLiteral",
|
|
"start":7,"end":9,"loc":{"start":{"line":1,"column":7},"end":{"line":1,"column":9}},
|
|
"extra": {
|
|
"rawValue": 20,
|
|
"raw": "20"
|
|
},
|
|
"value": 20
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"right": {
|
|
"type": "NumericLiteral",
|
|
"start":14,"end":16,"loc":{"start":{"line":1,"column":14},"end":{"line":1,"column":16}},
|
|
"extra": {
|
|
"rawValue": 42,
|
|
"raw": "42"
|
|
},
|
|
"value": 42
|
|
},
|
|
"extra": {
|
|
"parenthesized": true,
|
|
"parenStart": 0
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
} |