mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
58 lines
2.1 KiB
JSON
58 lines
2.1 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":37,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":37,"index":37}},
|
|
"errors": [
|
|
"SyntaxError: Unexpected reserved word 'yield'. (1:28)"
|
|
],
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":37,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":37,"index":37}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "TryStatement",
|
|
"start":14,"end":37,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":37,"index":37}},
|
|
"block": {
|
|
"type": "BlockStatement",
|
|
"start":18,"end":20,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":20,"index":20}},
|
|
"body": [],
|
|
"directives": []
|
|
},
|
|
"handler": {
|
|
"type": "CatchClause",
|
|
"start":21,"end":37,"loc":{"start":{"line":1,"column":21,"index":21},"end":{"line":1,"column":37,"index":37}},
|
|
"param": {
|
|
"type": "Identifier",
|
|
"start":28,"end":33,"loc":{"start":{"line":1,"column":28,"index":28},"end":{"line":1,"column":33,"index":33},"identifierName":"yield"},
|
|
"name": "yield"
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":35,"end":37,"loc":{"start":{"line":1,"column":35,"index":35},"end":{"line":1,"column":37,"index":37}},
|
|
"body": [],
|
|
"directives": []
|
|
}
|
|
},
|
|
"finalizer": null
|
|
}
|
|
],
|
|
"directives": [
|
|
{
|
|
"type": "Directive",
|
|
"start":0,"end":13,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":13,"index":13}},
|
|
"value": {
|
|
"type": "DirectiveLiteral",
|
|
"start":0,"end":12,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":12,"index":12}},
|
|
"extra": {
|
|
"rawValue": "use strict",
|
|
"raw": "\"use strict\"",
|
|
"expressionValue": "use strict"
|
|
},
|
|
"value": "use strict"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|