{ "type": "Program", "body": [ { "type": "FunctionDeclaration", "id": { "type": "Identifier", "name": "hello", "range": [ 9, 14 ], "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 14 } } }, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "Literal", "value": "octal directive\u0001", "raw": "\"octal directive\\1\"", "range": [ 19, 38 ], "loc": { "start": { "line": 1, "column": 19 }, "end": { "line": 1, "column": 38 } } }, "directive": "octal directive\\1", "range": [ 19, 39 ], "loc": { "start": { "line": 1, "column": 19 }, "end": { "line": 1, "column": 39 } } }, { "type": "ExpressionStatement", "expression": { "type": "Literal", "value": "use strict", "raw": "\"use strict\"", "range": [ 40, 52 ], "loc": { "start": { "line": 1, "column": 40 }, "end": { "line": 1, "column": 52 } } }, "directive": "use strict", "range": [ 40, 53 ], "loc": { "start": { "line": 1, "column": 40 }, "end": { "line": 1, "column": 53 } } } ], "range": [ 17, 55 ], "loc": { "start": { "line": 1, "column": 17 }, "end": { "line": 1, "column": 55 } } }, "generator": false, "expression": false, "async": false, "range": [ 0, 55 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 55 } } } ], "sourceType": "script", "tokens": [ { "type": "Keyword", "value": "function", "range": [ 0, 8 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 8 } } }, { "type": "Identifier", "value": "hello", "range": [ 9, 14 ], "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 14 } } }, { "type": "Punctuator", "value": "(", "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": [ 17, 18 ], "loc": { "start": { "line": 1, "column": 17 }, "end": { "line": 1, "column": 18 } } }, { "type": "String", "value": "\"octal directive\\1\"", "range": [ 19, 38 ], "loc": { "start": { "line": 1, "column": 19 }, "end": { "line": 1, "column": 38 } } }, { "type": "Punctuator", "value": ";", "range": [ 38, 39 ], "loc": { "start": { "line": 1, "column": 38 }, "end": { "line": 1, "column": 39 } } }, { "type": "String", "value": "\"use strict\"", "range": [ 40, 52 ], "loc": { "start": { "line": 1, "column": 40 }, "end": { "line": 1, "column": 52 } } }, { "type": "Punctuator", "value": ";", "range": [ 52, 53 ], "loc": { "start": { "line": 1, "column": 52 }, "end": { "line": 1, "column": 53 } } }, { "type": "Punctuator", "value": "}", "range": [ 54, 55 ], "loc": { "start": { "line": 1, "column": 54 }, "end": { "line": 1, "column": 55 } } } ], "errors": [ { "index": 19, "lineNumber": 1, "column": 20, "message": "Error: Line 1: Octal literals are not allowed in strict mode." } ], "range": [ 0, 55 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 55 } } }