56 lines
1.9 KiB
JSON
56 lines
1.9 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":15,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":15}},
|
|
"errors": [
|
|
"SyntaxError: setter must have exactly one formal parameter (1:3)"
|
|
],
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":15,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":15}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":0,"end":15,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":15}},
|
|
"expression": {
|
|
"type": "ObjectExpression",
|
|
"start":1,"end":14,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":14}},
|
|
"properties": [
|
|
{
|
|
"type": "Property",
|
|
"start":3,"end":12,"loc":{"start":{"line":1,"column":3},"end":{"line":1,"column":12}},
|
|
"method": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start":7,"end":8,"loc":{"start":{"line":1,"column":7},"end":{"line":1,"column":8},"identifierName":"x"},
|
|
"name": "x"
|
|
},
|
|
"computed": false,
|
|
"kind": "set",
|
|
"value": {
|
|
"type": "FunctionExpression",
|
|
"start":8,"end":12,"loc":{"start":{"line":1,"column":8},"end":{"line":1,"column":12}},
|
|
"id": null,
|
|
"generator": false,
|
|
"async": false,
|
|
"expression": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":10,"end":12,"loc":{"start":{"line":1,"column":10},"end":{"line":1,"column":12}},
|
|
"body": []
|
|
}
|
|
},
|
|
"shorthand": false
|
|
}
|
|
],
|
|
"extra": {
|
|
"parenthesized": true,
|
|
"parenStart": 0
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
} |