{ "type": "Program", "body": [ { "type": "ExpressionStatement", "expression": { "type": "FunctionExpression", "id": null, "params": [ { "type": "ArrayPattern", "elements": [], "range": [ 10, 12 ], "loc": { "start": { "line": 1, "column": 10 }, "end": { "line": 1, "column": 12 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "Literal", "value": "use strict", "raw": "\"use strict\"", "range": [ 15, 27 ], "loc": { "start": { "line": 1, "column": 15 }, "end": { "line": 1, "column": 27 } } }, "directive": "use strict", "range": [ 15, 28 ], "loc": { "start": { "line": 1, "column": 15 }, "end": { "line": 1, "column": 28 } } } ], "range": [ 13, 30 ], "loc": { "start": { "line": 1, "column": 13 }, "end": { "line": 1, "column": 30 } } }, "generator": false, "expression": false, "async": false, "range": [ 1, 30 ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 30 } } }, "range": [ 0, 31 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 31 } } } ], "sourceType": "script", "range": [ 0, 31 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 31 } }, "tokens": [ { "type": "Punctuator", "value": "(", "range": [ 0, 1 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 1 } } }, { "type": "Keyword", "value": "function", "range": [ 1, 9 ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 9 } } }, { "type": "Punctuator", "value": "(", "range": [ 9, 10 ], "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 10 } } }, { "type": "Punctuator", "value": "[", "range": [ 10, 11 ], "loc": { "start": { "line": 1, "column": 10 }, "end": { "line": 1, "column": 11 } } }, { "type": "Punctuator", "value": "]", "range": [ 11, 12 ], "loc": { "start": { "line": 1, "column": 11 }, "end": { "line": 1, "column": 12 } } }, { "type": "Punctuator", "value": ")", "range": [ 12, 13 ], "loc": { "start": { "line": 1, "column": 12 }, "end": { "line": 1, "column": 13 } } }, { "type": "Punctuator", "value": "{", "range": [ 13, 14 ], "loc": { "start": { "line": 1, "column": 13 }, "end": { "line": 1, "column": 14 } } }, { "type": "String", "value": "\"use strict\"", "range": [ 15, 27 ], "loc": { "start": { "line": 1, "column": 15 }, "end": { "line": 1, "column": 27 } } }, { "type": "Punctuator", "value": ";", "range": [ 27, 28 ], "loc": { "start": { "line": 1, "column": 27 }, "end": { "line": 1, "column": 28 } } }, { "type": "Punctuator", "value": "}", "range": [ 29, 30 ], "loc": { "start": { "line": 1, "column": 29 }, "end": { "line": 1, "column": 30 } } }, { "type": "Punctuator", "value": ")", "range": [ 30, 31 ], "loc": { "start": { "line": 1, "column": 30 }, "end": { "line": 1, "column": 31 } } } ], "errors": [ { "index": 15, "lineNumber": 1, "column": 16, "message": "Error: Line 1: Illegal 'use strict' directive in function with non-simple parameter list" } ] }