Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disallow await in function parameters
- Loading branch information
1 parent
dca2631
commit 6ebdcf6
Showing
23 changed files
with
693 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
...lon/test/fixtures/es2015/yield/parameter-default-inside-arrow-inside-generator-6/input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
function* fn() { | ||
(x = (yield)) => {}; | ||
} |
3 changes: 3 additions & 0 deletions
3
...test/fixtures/es2015/yield/parameter-default-inside-arrow-inside-generator-6/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"throws": "yield is not allowed in the parameters of an arrow function inside a generator (2:8)" | ||
} |
3 changes: 3 additions & 0 deletions
3
...res/es2017/async-functions/await-identifier-inside-parameters-of-nested-function/input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
async function fn() { | ||
function g(x = await) {} | ||
} |
Oops, something went wrong.