Re-enable disabled flow parser test (#13661)

This commit is contained in:
Nicolò Ribaudo 2021-08-10 20:57:27 +02:00 committed by GitHub
parent 1229336fea
commit 9286cdb072
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 65 additions and 3 deletions

View File

@ -1,3 +0,0 @@
{
"throws": "Unexpected token (1:17)"
}

View File

@ -0,0 +1,65 @@
{
"type": "File",
"start":0,"end":32,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":32}},
"errors": [
"SyntaxError: Invalid parenthesized assignment pattern. (1:12)"
],
"program": {
"type": "Program",
"start":0,"end":32,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":32}},
"sourceType": "module",
"interpreter": null,
"body": [
{
"type": "VariableDeclaration",
"start":0,"end":32,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":32}},
"declarations": [
{
"type": "VariableDeclarator",
"start":4,"end":31,"loc":{"start":{"line":1,"column":4},"end":{"line":1,"column":31}},
"id": {
"type": "Identifier",
"start":4,"end":7,"loc":{"start":{"line":1,"column":4},"end":{"line":1,"column":7},"identifierName":"foo"},
"name": "foo"
},
"init": {
"type": "ArrowFunctionExpression",
"start":10,"end":31,"loc":{"start":{"line":1,"column":10},"end":{"line":1,"column":31}},
"predicate": null,
"returnType": {
"type": "TypeAnnotation",
"start":17,"end":25,"loc":{"start":{"line":1,"column":17},"end":{"line":1,"column":25}},
"typeAnnotation": {
"type": "StringTypeAnnotation",
"start":19,"end":25,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":25}}
}
},
"id": null,
"generator": false,
"async": false,
"params": [
{
"type": "Identifier",
"start":12,"end":15,"loc":{"start":{"line":1,"column":12},"end":{"line":1,"column":15},"identifierName":"foo"},
"name": "foo",
"extra": {
"parenthesized": true,
"parenStart": 11
}
}
],
"body": {
"type": "BlockStatement",
"start":29,"end":31,"loc":{"start":{"line":1,"column":29},"end":{"line":1,"column":31}},
"body": [],
"directives": []
}
}
}
],
"kind": "var"
}
],
"directives": []
}
}