{ "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": "ObjectPattern", "properties": [ { "type": "Property", "key": { "type": "Identifier", "name": "x", "range": [ 12, 13 ], "loc": { "start": { "line": 1, "column": 12 }, "end": { "line": 1, "column": 13 } } }, "computed": false, "value": { "type": "Identifier", "name": "x", "range": [ 12, 13 ], "loc": { "start": { "line": 1, "column": 12 }, "end": { "line": 1, "column": 13 } } }, "kind": "init", "method": false, "shorthand": true, "range": [ 12, 13 ], "loc": { "start": { "line": 1, "column": 12 }, "end": { "line": 1, "column": 13 } } }, { "type": "Property", "key": { "type": "Identifier", "name": "y", "range": [ 15, 16 ], "loc": { "start": { "line": 1, "column": 15 }, "end": { "line": 1, "column": 16 } } }, "computed": false, "value": { "type": "Identifier", "name": "y", "range": [ 15, 16 ], "loc": { "start": { "line": 1, "column": 15 }, "end": { "line": 1, "column": 16 } } }, "kind": "init", "method": false, "shorthand": true, "range": [ 15, 16 ], "loc": { "start": { "line": 1, "column": 15 }, "end": { "line": 1, "column": 16 } } } ], "range": [ 11, 17 ], "loc": { "start": { "line": 1, "column": 11 }, "end": { "line": 1, "column": 17 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "Literal", "value": "use strict", "raw": "\"use strict\"", "range": [ 21, 33 ], "loc": { "start": { "line": 1, "column": 21 }, "end": { "line": 1, "column": 33 } } }, "directive": "use strict", "range": [ 21, 34 ], "loc": { "start": { "line": 1, "column": 21 }, "end": { "line": 1, "column": 34 } } } ], "range": [ 19, 36 ], "loc": { "start": { "line": 1, "column": 19 }, "end": { "line": 1, "column": 36 } } }, "generator": false, "expression": false, "async": false, "range": [ 0, 36 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 36 } } } ], "sourceType": "script", "range": [ 0, 36 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 36 } }, "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": "Identifier", "value": "x", "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": "Identifier", "value": "y", "range": [ 15, 16 ], "loc": { "start": { "line": 1, "column": 15 }, "end": { "line": 1, "column": 16 } } }, { "type": "Punctuator", "value": "}", "range": [ 16, 17 ], "loc": { "start": { "line": 1, "column": 16 }, "end": { "line": 1, "column": 17 } } }, { "type": "Punctuator", "value": ")", "range": [ 17, 18 ], "loc": { "start": { "line": 1, "column": 17 }, "end": { "line": 1, "column": 18 } } }, { "type": "Punctuator", "value": "{", "range": [ 19, 20 ], "loc": { "start": { "line": 1, "column": 19 }, "end": { "line": 1, "column": 20 } } }, { "type": "String", "value": "\"use strict\"", "range": [ 21, 33 ], "loc": { "start": { "line": 1, "column": 21 }, "end": { "line": 1, "column": 33 } } }, { "type": "Punctuator", "value": ";", "range": [ 33, 34 ], "loc": { "start": { "line": 1, "column": 33 }, "end": { "line": 1, "column": 34 } } }, { "type": "Punctuator", "value": "}", "range": [ 35, 36 ], "loc": { "start": { "line": 1, "column": 35 }, "end": { "line": 1, "column": 36 } } } ], "errors": [ { "index": 21, "lineNumber": 1, "column": 22, "message": "Error: Line 1: Illegal 'use strict' directive in function with non-simple parameter list" } ] }