{ "type": "Program", "body": [ { "type": "ExpressionStatement", "expression": { "type": "ArrowFunctionExpression", "id": null, "params": [ { "type": "RestElement", "argument": { "type": "Identifier", "name": "x", "range": [ 4, 5 ], "loc": { "start": { "line": 1, "column": 4 }, "end": { "line": 1, "column": 5 } } }, "range": [ 1, 5 ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 5 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "Literal", "value": "use strict", "raw": "\"use strict\"", "range": [ 12, 24 ], "loc": { "start": { "line": 1, "column": 12 }, "end": { "line": 1, "column": 24 } } }, "directive": "use strict", "range": [ 12, 25 ], "loc": { "start": { "line": 1, "column": 12 }, "end": { "line": 1, "column": 25 } } } ], "range": [ 10, 26 ], "loc": { "start": { "line": 1, "column": 10 }, "end": { "line": 1, "column": 26 } } }, "generator": false, "expression": false, "async": false, "range": [ 0, 26 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 26 } } }, "range": [ 0, 26 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 26 } } } ], "sourceType": "script", "range": [ 0, 26 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 26 } }, "tokens": [ { "type": "Punctuator", "value": "(", "range": [ 0, 1 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 1 } } }, { "type": "Punctuator", "value": "...", "range": [ 1, 4 ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 4 } } }, { "type": "Identifier", "value": "x", "range": [ 4, 5 ], "loc": { "start": { "line": 1, "column": 4 }, "end": { "line": 1, "column": 5 } } }, { "type": "Punctuator", "value": ")", "range": [ 5, 6 ], "loc": { "start": { "line": 1, "column": 5 }, "end": { "line": 1, "column": 6 } } }, { "type": "Punctuator", "value": "=>", "range": [ 7, 9 ], "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 9 } } }, { "type": "Punctuator", "value": "{", "range": [ 10, 11 ], "loc": { "start": { "line": 1, "column": 10 }, "end": { "line": 1, "column": 11 } } }, { "type": "String", "value": "\"use strict\"", "range": [ 12, 24 ], "loc": { "start": { "line": 1, "column": 12 }, "end": { "line": 1, "column": 24 } } }, { "type": "Punctuator", "value": "}", "range": [ 25, 26 ], "loc": { "start": { "line": 1, "column": 25 }, "end": { "line": 1, "column": 26 } } } ], "errors": [ { "index": 12, "lineNumber": 1, "column": 13, "message": "Error: Line 1: Illegal 'use strict' directive in function with non-simple parameter list" } ] }