58 lines
2.1 KiB
JSON
58 lines
2.1 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":50,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":50}},
|
|
"errors": [
|
|
"SyntaxError: Missing semicolon. (1:25)",
|
|
"SyntaxError: 'await' is only allowed within async functions and at the top levels of modules. (1:41)"
|
|
],
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":50,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":50}},
|
|
"sourceType": "module",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "ExportDefaultDeclaration",
|
|
"start":0,"end":25,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":25}},
|
|
"declaration": {
|
|
"type": "Identifier",
|
|
"start":15,"end":25,"loc":{"start":{"line":1,"column":15},"end":{"line":1,"column":25},"identifierName":"async"},
|
|
"name": "async"
|
|
}
|
|
},
|
|
{
|
|
"type": "FunctionDeclaration",
|
|
"start":26,"end":50,"loc":{"start":{"line":1,"column":26},"end":{"line":1,"column":50}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":35,"end":36,"loc":{"start":{"line":1,"column":35},"end":{"line":1,"column":36},"identifierName":"y"},
|
|
"name": "y"
|
|
},
|
|
"generator": false,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":39,"end":50,"loc":{"start":{"line":1,"column":39},"end":{"line":1,"column":50}},
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":41,"end":48,"loc":{"start":{"line":1,"column":41},"end":{"line":1,"column":48}},
|
|
"expression": {
|
|
"type": "AwaitExpression",
|
|
"start":41,"end":48,"loc":{"start":{"line":1,"column":41},"end":{"line":1,"column":48}},
|
|
"argument": {
|
|
"type": "Identifier",
|
|
"start":47,"end":48,"loc":{"start":{"line":1,"column":47},"end":{"line":1,"column":48},"identifierName":"x"},
|
|
"name": "x"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
} |