Files

114 lines
4.7 KiB
JSON

{
"type": "File",
"start":0,"end":63,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":63,"index":63}},
"errors": [
"SyntaxError: Binding 'eval' in strict mode. (1:48)"
],
"program": {
"type": "Program",
"start":0,"end":63,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":63,"index":63}},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "FunctionDeclaration",
"start":0,"end":63,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":63,"index":63}},
"id": {
"type": "Identifier",
"start":9,"end":14,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":14,"index":14},"identifierName":"hello"},
"name": "hello"
},
"generator": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start":17,"end":63,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":63,"index":63}},
"body": [
{
"type": "ExpressionStatement",
"start":32,"end":61,"loc":{"start":{"line":1,"column":32,"index":32},"end":{"line":1,"column":61,"index":61}},
"expression": {
"type": "ObjectExpression",
"start":33,"end":59,"loc":{"start":{"line":1,"column":33,"index":33},"end":{"line":1,"column":59,"index":59}},
"properties": [
{
"type": "ObjectProperty",
"start":35,"end":40,"loc":{"start":{"line":1,"column":35,"index":35},"end":{"line":1,"column":40,"index":40}},
"method": false,
"key": {
"type": "Identifier",
"start":35,"end":36,"loc":{"start":{"line":1,"column":35,"index":35},"end":{"line":1,"column":36,"index":36},"identifierName":"i"},
"name": "i"
},
"computed": false,
"shorthand": false,
"value": {
"type": "NumericLiteral",
"start":38,"end":40,"loc":{"start":{"line":1,"column":38,"index":38},"end":{"line":1,"column":40,"index":40}},
"extra": {
"rawValue": 10,
"raw": "10"
},
"value": 10
}
},
{
"type": "ObjectMethod",
"start":42,"end":57,"loc":{"start":{"line":1,"column":42,"index":42},"end":{"line":1,"column":57,"index":57}},
"method": false,
"key": {
"type": "Identifier",
"start":46,"end":47,"loc":{"start":{"line":1,"column":46,"index":46},"end":{"line":1,"column":47,"index":47},"identifierName":"s"},
"name": "s"
},
"computed": false,
"kind": "set",
"id": null,
"generator": false,
"async": false,
"params": [
{
"type": "Identifier",
"start":48,"end":52,"loc":{"start":{"line":1,"column":48,"index":48},"end":{"line":1,"column":52,"index":52},"identifierName":"eval"},
"name": "eval"
}
],
"body": {
"type": "BlockStatement",
"start":54,"end":57,"loc":{"start":{"line":1,"column":54,"index":54},"end":{"line":1,"column":57,"index":57}},
"body": [],
"directives": []
}
}
],
"extra": {
"parenthesized": true,
"parenStart": 32
}
}
}
],
"directives": [
{
"type": "Directive",
"start":18,"end":31,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":31,"index":31}},
"value": {
"type": "DirectiveLiteral",
"start":18,"end":30,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":30,"index":30}},
"extra": {
"rawValue": "use strict",
"raw": "'use strict'",
"expressionValue": "use strict"
},
"value": "use strict"
}
}
]
}
}
],
"directives": []
}
}