chore(parser): add test to handle optional paramteter in async call (#13504)

* chore(parser): add test to handle optional paramteter in async call

* chore(parser): add flow test

* chore(parser): add ts test
This commit is contained in:
Tony Gorez 2021-06-23 17:11:06 +02:00 committed by GitHub
parent 3840893b48
commit b0fe6bdbc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1 @@
async(x?)

View File

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

View File

@ -0,0 +1 @@
async(x?)

View File

@ -0,0 +1,8 @@
{
"sourceType": "module",
"plugins": [
"jsx",
"flow"
],
"throws": "Unexpected token (1:8)"
}

View File

@ -0,0 +1,7 @@
{
"sourceType": "module",
"plugins": [
"typescript"
],
"throws": "Unexpected token (1:8)"
}