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