mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
43 lines
1.5 KiB
JSON
43 lines
1.5 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":28,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":28,"index":28}},
|
|
"errors": [
|
|
"SyntaxError: Can not use 'await' as identifier inside an async function. (1:16)"
|
|
],
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":28,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":28,"index":28}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":0,"end":28,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":28,"index":28}},
|
|
"expression": {
|
|
"type": "FunctionExpression",
|
|
"start":1,"end":26,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":26,"index":26}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":16,"end":21,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":21,"index":21},"identifierName":"await"},
|
|
"name": "await"
|
|
},
|
|
"generator": false,
|
|
"async": true,
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":24,"end":26,"loc":{"start":{"line":1,"column":24,"index":24},"end":{"line":1,"column":26,"index":26}},
|
|
"body": [],
|
|
"directives": []
|
|
},
|
|
"extra": {
|
|
"parenthesized": true,
|
|
"parenStart": 0
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|