{ "type": "Program", "body": [ { "type": "ExpressionStatement", "expression": { "type": "ArrowFunctionExpression", "id": null, "params": [ { "type": "ObjectPattern", "properties": [ { "type": "Property", "key": { "type": "Identifier", "name": "a", "range": [ 2, 3 ], "loc": { "start": { "line": 1, "column": 2 }, "end": { "line": 1, "column": 3 } } }, "computed": false, "value": { "type": "Identifier", "name": "a", "range": [ 2, 3 ], "loc": { "start": { "line": 1, "column": 2 }, "end": { "line": 1, "column": 3 } } }, "kind": "init", "method": false, "shorthand": true, "range": [ 2, 3 ], "loc": { "start": { "line": 1, "column": 2 }, "end": { "line": 1, "column": 3 } } } ], "range": [ 1, 4 ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 4 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "Literal", "value": "use strict", "raw": "\"use strict\"", "range": [ 11, 23 ], "loc": { "start": { "line": 1, "column": 11 }, "end": { "line": 1, "column": 23 } } }, "directive": "use strict", "range": [ 11, 24 ], "loc": { "start": { "line": 1, "column": 11 }, "end": { "line": 1, "column": 24 } } } ], "range": [ 9, 25 ], "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 25 } } }, "generator": false, "expression": false, "async": false, "range": [ 0, 25 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 25 } } }, "range": [ 0, 25 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 25 } } } ], "sourceType": "script", "range": [ 0, 25 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 25 } }, "tokens": [ { "type": "Punctuator", "value": "(", "range": [ 0, 1 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 1 } } }, { "type": "Punctuator", "value": "{", "range": [ 1, 2 ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 2 } } }, { "type": "Identifier", "value": "a", "range": [ 2, 3 ], "loc": { "start": { "line": 1, "column": 2 }, "end": { "line": 1, "column": 3 } } }, { "type": "Punctuator", "value": "}", "range": [ 3, 4 ], "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 4 } } }, { "type": "Punctuator", "value": ")", "range": [ 4, 5 ], "loc": { "start": { "line": 1, "column": 4 }, "end": { "line": 1, "column": 5 } } }, { "type": "Punctuator", "value": "=>", "range": [ 6, 8 ], "loc": { "start": { "line": 1, "column": 6 }, "end": { "line": 1, "column": 8 } } }, { "type": "Punctuator", "value": "{", "range": [ 9, 10 ], "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 10 } } }, { "type": "String", "value": "\"use strict\"", "range": [ 11, 23 ], "loc": { "start": { "line": 1, "column": 11 }, "end": { "line": 1, "column": 23 } } }, { "type": "Punctuator", "value": "}", "range": [ 24, 25 ], "loc": { "start": { "line": 1, "column": 24 }, "end": { "line": 1, "column": 25 } } } ], "errors": [ { "index": 11, "lineNumber": 1, "column": 12, "message": "Error: Line 1: Illegal 'use strict' directive in function with non-simple parameter list" } ] }