57 lines
1.9 KiB
JSON
57 lines
1.9 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":33,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":33}},
|
|
"errors": [
|
|
"SyntaxError: await is not allowed in async function parameters (1:22)"
|
|
],
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":33,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":33}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "FunctionDeclaration",
|
|
"start":0,"end":33,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":33}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":15,"end":17,"loc":{"start":{"line":1,"column":15},"end":{"line":1,"column":17},"identifierName":"fn"},
|
|
"name": "fn"
|
|
},
|
|
"generator": false,
|
|
"async": true,
|
|
"params": [
|
|
{
|
|
"type": "AssignmentPattern",
|
|
"start":18,"end":29,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":29}},
|
|
"left": {
|
|
"type": "Identifier",
|
|
"start":18,"end":19,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":19},"identifierName":"x"},
|
|
"name": "x"
|
|
},
|
|
"right": {
|
|
"type": "AwaitExpression",
|
|
"start":22,"end":29,"loc":{"start":{"line":1,"column":22},"end":{"line":1,"column":29}},
|
|
"argument": {
|
|
"type": "NumericLiteral",
|
|
"start":28,"end":29,"loc":{"start":{"line":1,"column":28},"end":{"line":1,"column":29}},
|
|
"extra": {
|
|
"rawValue": 2,
|
|
"raw": "2"
|
|
},
|
|
"value": 2
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":31,"end":33,"loc":{"start":{"line":1,"column":31},"end":{"line":1,"column":33}},
|
|
"body": [],
|
|
"directives": []
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
} |