mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +00:00
61 lines
2.3 KiB
JSON
61 lines
2.3 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":33,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":33}},
|
|
"errors": [
|
|
"SyntaxError: 'let' is disallowed as a lexically bound name. (2:6)"
|
|
],
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":33,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":33}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "TryStatement",
|
|
"start":0,"end":33,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":33}},
|
|
"block": {
|
|
"type": "BlockStatement",
|
|
"start":4,"end":6,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":6,"index":6}},
|
|
"body": [],
|
|
"directives": []
|
|
},
|
|
"handler": {
|
|
"type": "CatchClause",
|
|
"start":7,"end":33,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":3,"column":1,"index":33}},
|
|
"param": {
|
|
"type": "Identifier",
|
|
"start":14,"end":17,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":17,"index":17},"identifierName":"err"},
|
|
"name": "err"
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":19,"end":33,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":3,"column":1,"index":33}},
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start":23,"end":31,"loc":{"start":{"line":2,"column":2,"index":23},"end":{"line":2,"column":10,"index":31}},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start":27,"end":30,"loc":{"start":{"line":2,"column":6,"index":27},"end":{"line":2,"column":9,"index":30}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":27,"end":30,"loc":{"start":{"line":2,"column":6,"index":27},"end":{"line":2,"column":9,"index":30},"identifierName":"let"},
|
|
"name": "let"
|
|
},
|
|
"init": null
|
|
}
|
|
],
|
|
"kind": "let"
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
},
|
|
"finalizer": null
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|