{ "type": "File", "start":0,"end":17,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":17,"index":17}}, "errors": [ "SyntaxError: Rest element must be last element. (1:5)", "SyntaxError: Unexpected trailing comma after rest element. (1:1)" ], "program": { "type": "Program", "start":0,"end":17,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":17,"index":17}}, "sourceType": "script", "interpreter": null, "body": [ { "type": "ExpressionStatement", "start":0,"end":17,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":17,"index":17}}, "expression": { "type": "ArrowFunctionExpression", "start":0,"end":17,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":17,"index":17}}, "id": null, "generator": false, "async": false, "params": [ { "type": "RestElement", "start":1,"end":5,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":5,"index":5}}, "argument": { "type": "Identifier", "start":4,"end":5,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":5,"index":5},"identifierName":"a"}, "name": "a" } }, { "type": "RestElement", "start":7,"end":11,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":11,"index":11}}, "argument": { "type": "Identifier", "start":10,"end":11,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":11,"index":11},"identifierName":"b"}, "name": "b" } } ], "body": { "type": "NumericLiteral", "start":16,"end":17,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":17,"index":17}}, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } } } ], "directives": [] } }