{ "type": "File", "start":0,"end":33,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":33}}, "errors": [ "SyntaxError: 'await' is only allowed within async functions and at the top levels of modules. (2:9)" ], "program": { "type": "Program", "start":0,"end":33,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":33}}, "sourceType": "script", "interpreter": null, "body": [ { "type": "FunctionDeclaration", "start":0,"end":33,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":33}}, "id": { "type": "Identifier", "start":9,"end":10,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":10,"index":10},"identifierName":"a"}, "name": "a" }, "generator": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start":13,"end":33,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":3,"column":1,"index":33}}, "body": [ { "type": "ReturnStatement", "start":17,"end":31,"loc":{"start":{"line":2,"column":2,"index":17},"end":{"line":2,"column":16,"index":31}}, "argument": { "type": "AwaitExpression", "start":24,"end":31,"loc":{"start":{"line":2,"column":9,"index":24},"end":{"line":2,"column":16,"index":31}}, "argument": { "type": "NumericLiteral", "start":30,"end":31,"loc":{"start":{"line":2,"column":15,"index":30},"end":{"line":2,"column":16,"index":31}}, "extra": { "rawValue": 1, "raw": "1" }, "value": 1 } } } ], "directives": [] } } ], "directives": [] } }