* Recover from "missing semicolon" errors * Update other tests * Fix flow * Fix windows test * Add back deleted test
64 lines
2.3 KiB
JSON
64 lines
2.3 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":27,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":27}},
|
|
"errors": [
|
|
"SyntaxError: Missing semicolon (1:10)",
|
|
"SyntaxError: 'await' is only allowed within async functions (1:18)"
|
|
],
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":27,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":27}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":0,"end":10,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":10}},
|
|
"expression": {
|
|
"type": "Identifier",
|
|
"start":0,"end":10,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":10},"identifierName":"async"},
|
|
"name": "async"
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":11,"end":27,"loc":{"start":{"line":1,"column":11},"end":{"line":1,"column":27}},
|
|
"expression": {
|
|
"type": "ArrowFunctionExpression",
|
|
"start":11,"end":27,"loc":{"start":{"line":1,"column":11},"end":{"line":1,"column":27}},
|
|
"id": null,
|
|
"generator": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start":11,"end":12,"loc":{"start":{"line":1,"column":11},"end":{"line":1,"column":12},"identifierName":"x"},
|
|
"name": "x"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":16,"end":27,"loc":{"start":{"line":1,"column":16},"end":{"line":1,"column":27}},
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":18,"end":25,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":25}},
|
|
"expression": {
|
|
"type": "AwaitExpression",
|
|
"start":18,"end":25,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":25}},
|
|
"argument": {
|
|
"type": "Identifier",
|
|
"start":24,"end":25,"loc":{"start":{"line":1,"column":24},"end":{"line":1,"column":25},"identifierName":"x"},
|
|
"name": "x"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
} |