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:
parent
3840893b48
commit
b0fe6bdbc3
1
packages/babel-parser/test/fixtures/es2017/async-call/with-optional-operator/input.js
vendored
Normal file
1
packages/babel-parser/test/fixtures/es2017/async-call/with-optional-operator/input.js
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
async(x?)
|
||||||
3
packages/babel-parser/test/fixtures/es2017/async-call/with-optional-operator/options.json
vendored
Normal file
3
packages/babel-parser/test/fixtures/es2017/async-call/with-optional-operator/options.json
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"throws": "Unexpected token (1:8)"
|
||||||
|
}
|
||||||
1
packages/babel-parser/test/fixtures/flow/async-call/with-optional-parameter/input.js
vendored
Normal file
1
packages/babel-parser/test/fixtures/flow/async-call/with-optional-parameter/input.js
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
async(x?)
|
||||||
8
packages/babel-parser/test/fixtures/flow/async-call/with-optional-parameter/options.json
vendored
Normal file
8
packages/babel-parser/test/fixtures/flow/async-call/with-optional-parameter/options.json
vendored
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"sourceType": "module",
|
||||||
|
"plugins": [
|
||||||
|
"jsx",
|
||||||
|
"flow"
|
||||||
|
],
|
||||||
|
"throws": "Unexpected token (1:8)"
|
||||||
|
}
|
||||||
1
packages/babel-parser/test/fixtures/typescript/async-call/with-optional-parameter/input.ts
vendored
Normal file
1
packages/babel-parser/test/fixtures/typescript/async-call/with-optional-parameter/input.ts
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
async(x?)
|
||||||
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"sourceType": "module",
|
||||||
|
"plugins": [
|
||||||
|
"typescript"
|
||||||
|
],
|
||||||
|
"throws": "Unexpected token (1:8)"
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user