| 1 |
{ |
| 2 |
"type": "File", |
| 3 |
"start":0,"end":36,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":36,"index":36}}, |
| 4 |
"errors": [ |
| 5 |
"SyntaxError: In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement. (1:20)" |
| 6 |
], |
| 7 |
"program": { |
| 8 |
"type": "Program", |
| 9 |
"start":0,"end":36,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":36,"index":36}}, |
| 10 |
"sourceType": "script", |
| 11 |
"interpreter": null, |
| 12 |
"body": [ |
| 13 |
{ |
| 14 |
"type": "WhileStatement", |
| 15 |
"start":0,"end":36,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":36,"index":36}}, |
| 16 |
"test": { |
| 17 |
"type": "NumericLiteral", |
| 18 |
"start":7,"end":8,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":8,"index":8}}, |
| 19 |
"extra": { |
| 20 |
"rawValue": 1, |
| 21 |
"raw": "1" |
| 22 |
}, |
| 23 |
"value": 1 |
| 24 |
}, |
| 25 |
"body": { |
| 26 |
"type": "LabeledStatement", |
| 27 |
"start":10,"end":36,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":36,"index":36}}, |
| 28 |
"body": { |
| 29 |
"type": "LabeledStatement", |
| 30 |
"start":15,"end":36,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":36,"index":36}}, |
| 31 |
"body": { |
| 32 |
"type": "FunctionDeclaration", |
| 33 |
"start":20,"end":36,"loc":{"start":{"line":1,"column":20,"index":20},"end":{"line":1,"column":36,"index":36}}, |
| 34 |
"id": { |
| 35 |
"type": "Identifier", |
| 36 |
"start":29,"end":32,"loc":{"start":{"line":1,"column":29,"index":29},"end":{"line":1,"column":32,"index":32},"identifierName":"foo"}, |
| 37 |
"name": "foo" |
| 38 |
}, |
| 39 |
"generator": false, |
| 40 |
"async": false, |
| 41 |
"params": [], |
| 42 |
"body": { |
| 43 |
"type": "BlockStatement", |
| 44 |
"start":34,"end":36,"loc":{"start":{"line":1,"column":34,"index":34},"end":{"line":1,"column":36,"index":36}}, |
| 45 |
"body": [], |
| 46 |
"directives": [] |
| 47 |
} |
| 48 |
}, |
| 49 |
"label": { |
| 50 |
"type": "Identifier", |
| 51 |
"start":15,"end":18,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":18,"index":18},"identifierName":"bar"}, |
| 52 |
"name": "bar" |
| 53 |
} |
| 54 |
}, |
| 55 |
"label": { |
| 56 |
"type": "Identifier", |
| 57 |
"start":10,"end":13,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":13,"index":13},"identifierName":"foo"}, |
| 58 |
"name": "foo" |
| 59 |
} |
| 60 |
} |
| 61 |
} |
| 62 |
], |
| 63 |
"directives": [] |
| 64 |
} |
| 65 |
} |