mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
82 lines
3.2 KiB
JSON
82 lines
3.2 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":57,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":57,"index":57}},
|
|
"errors": [
|
|
"SyntaxError: Binding 'eval' in strict mode. (1:42)"
|
|
],
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":57,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":57,"index":57}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "FunctionDeclaration",
|
|
"start":0,"end":57,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":57,"index":57}},
|
|
"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":57,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":57,"index":57}},
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":32,"end":55,"loc":{"start":{"line":1,"column":32,"index":32},"end":{"line":1,"column":55,"index":55}},
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"start":33,"end":54,"loc":{"start":{"line":1,"column":33,"index":33},"end":{"line":1,"column":54,"index":54}},
|
|
"callee": {
|
|
"type": "FunctionExpression",
|
|
"start":33,"end":52,"loc":{"start":{"line":1,"column":33,"index":33},"end":{"line":1,"column":52,"index":52}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":42,"end":46,"loc":{"start":{"line":1,"column":42,"index":42},"end":{"line":1,"column":46,"index":46},"identifierName":"eval"},
|
|
"name": "eval"
|
|
},
|
|
"generator": false,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":49,"end":52,"loc":{"start":{"line":1,"column":49,"index":49},"end":{"line":1,"column":52,"index":52}},
|
|
"body": [],
|
|
"directives": []
|
|
}
|
|
},
|
|
"arguments": [],
|
|
"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": []
|
|
}
|
|
}
|