{ "type": "Program", "body": [ { "type": "FunctionDeclaration", "id": { "type": "Identifier", "name": "f", "range": [ 9, 10 ], "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 10 } } }, "params": [ { "type": "ArrayPattern", "elements": [], "range": [ 11, 13 ], "loc": { "start": { "line": 1, "column": 11 }, "end": { "line": 1, "column": 13 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "Literal", "value": "use strict", "raw": "\"use strict\"", "range": [ 16, 28 ], "loc": { "start": { "line": 1, "column": 16 }, "end": { "line": 1, "column": 28 } } }, "directive": "use strict", "range": [ 16, 29 ], "loc": { "start": { "line": 1, "column": 16 }, "end": { "line": 1, "column": 29 } } } ], "range": [ 14, 31 ], "loc": { "start": { "line": 1, "column": 14 }, "end": { "line": 1, "column": 31 } } }, "generator": false, "expression": false, "async": false, "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": "Keyword", "value": "function", "range": [ 0, 8 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 8 } } }, { "type": "Identifier", "value": "f", "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": "Punctuator", "value": "{", "range": [ 14, 15 ], "loc": { "start": { "line": 1, "column": 14 }, "end": { "line": 1, "column": 15 } } }, { "type": "String", "value": "\"use strict\"", "range": [ 16, 28 ], "loc": { "start": { "line": 1, "column": 16 }, "end": { "line": 1, "column": 28 } } }, { "type": "Punctuator", "value": ";", "range": [ 28, 29 ], "loc": { "start": { "line": 1, "column": 28 }, "end": { "line": 1, "column": 29 } } }, { "type": "Punctuator", "value": "}", "range": [ 30, 31 ], "loc": { "start": { "line": 1, "column": 30 }, "end": { "line": 1, "column": 31 } } } ], "errors": [ { "index": 16, "lineNumber": 1, "column": 17, "message": "Error: Line 1: Illegal 'use strict' directive in function with non-simple parameter list" } ] }