Remove await* from babel-generator, add parsing error to babylon - (fixes T6688)
This commit is contained in:
3
test/fixtures/experimental/await/illegal-await-star/actual.js
vendored
Normal file
3
test/fixtures/experimental/await/illegal-await-star/actual.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
async function bar() {
|
||||
await* foo();
|
||||
}
|
||||
4
test/fixtures/experimental/await/illegal-await-star/options.json
vendored
Normal file
4
test/fixtures/experimental/await/illegal-await-star/options.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"plugins": ["asyncFunctions"],
|
||||
"throws": "await* has been removed from the async functions proposal. Use Promise.all() instead. (2:2)"
|
||||
}
|
||||
Reference in New Issue
Block a user