68 lines
2.5 KiB
JSON
68 lines
2.5 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":22,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":22}},
|
|
"errors": [
|
|
"SyntaxError: setter function argument must not be a rest parameter (1:6)"
|
|
],
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":22,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":22}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":0,"end":22,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":22}},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"start":0,"end":22,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":22}},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"start":0,"end":1,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":1},"identifierName":"x"},
|
|
"name": "x"
|
|
},
|
|
"right": {
|
|
"type": "ObjectExpression",
|
|
"start":4,"end":22,"loc":{"start":{"line":1,"column":4},"end":{"line":1,"column":22}},
|
|
"properties": [
|
|
{
|
|
"type": "ObjectMethod",
|
|
"start":6,"end":20,"loc":{"start":{"line":1,"column":6},"end":{"line":1,"column":20}},
|
|
"method": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start":10,"end":11,"loc":{"start":{"line":1,"column":10},"end":{"line":1,"column":11},"identifierName":"f"},
|
|
"name": "f"
|
|
},
|
|
"computed": false,
|
|
"kind": "set",
|
|
"id": null,
|
|
"generator": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "RestElement",
|
|
"start":12,"end":16,"loc":{"start":{"line":1,"column":12},"end":{"line":1,"column":16}},
|
|
"argument": {
|
|
"type": "Identifier",
|
|
"start":15,"end":16,"loc":{"start":{"line":1,"column":15},"end":{"line":1,"column":16},"identifierName":"y"},
|
|
"name": "y"
|
|
}
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":18,"end":20,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":20}},
|
|
"body": [],
|
|
"directives": []
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
} |