69 lines
2.6 KiB
JSON
69 lines
2.6 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":35,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}},
|
|
"errors": [
|
|
"SyntaxError: 'await' is only allowed within async functions (2:2)"
|
|
],
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":35,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "FunctionDeclaration",
|
|
"start":0,"end":35,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":9,"end":12,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":12},"identifierName":"foo"},
|
|
"name": "foo"
|
|
},
|
|
"generator": false,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":15,"end":35,"loc":{"start":{"line":1,"column":15},"end":{"line":3,"column":1}},
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":19,"end":33,"loc":{"start":{"line":2,"column":2},"end":{"line":2,"column":16}},
|
|
"expression": {
|
|
"type": "AwaitExpression",
|
|
"start":19,"end":32,"loc":{"start":{"line":2,"column":2},"end":{"line":2,"column":15}},
|
|
"argument": {
|
|
"type": "ObjectExpression",
|
|
"start":25,"end":32,"loc":{"start":{"line":2,"column":8},"end":{"line":2,"column":15}},
|
|
"properties": [
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start":27,"end":30,"loc":{"start":{"line":2,"column":10},"end":{"line":2,"column":13}},
|
|
"extra": {
|
|
"shorthand": true
|
|
},
|
|
"method": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start":27,"end":30,"loc":{"start":{"line":2,"column":10},"end":{"line":2,"column":13},"identifierName":"foo"},
|
|
"name": "foo"
|
|
},
|
|
"computed": false,
|
|
"shorthand": true,
|
|
"value": {
|
|
"type": "Identifier",
|
|
"start":27,"end":30,"loc":{"start":{"line":2,"column":10},"end":{"line":2,"column":13},"identifierName":"foo"},
|
|
"name": "foo"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
} |