{ "type": "File", "start":0,"end":20,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":20,"index":20}}, "errors": [ "SyntaxError: Unexpected trailing comma after rest element. (1:10)" ], "program": { "type": "Program", "start":0,"end":20,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":20,"index":20}}, "sourceType": "script", "interpreter": null, "body": [ { "type": "ForInStatement", "start":0,"end":20,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":20,"index":20}}, "left": { "type": "ArrayPattern", "start":5,"end":12,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":12,"index":12}}, "extra": { "trailingComma": 10 }, "elements": [ { "type": "RestElement", "start":6,"end":10,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":10,"index":10}}, "argument": { "type": "Identifier", "start":9,"end":10,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":10,"index":10},"identifierName":"a"}, "name": "a" } } ] }, "right": { "type": "ArrayExpression", "start":16,"end":18,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":18,"index":18}}, "elements": [] }, "body": { "type": "EmptyStatement", "start":19,"end":20,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":1,"column":20,"index":20}} } } ], "directives": [] } }