forked from babel/babel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify await and yield tracking in params (babel#9405)
- Loading branch information
1 parent
fe71154
commit 344d35b
Showing
20 changed files
with
90 additions
and
82 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
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
2 changes: 1 addition & 1 deletion
2
...test/fixtures/es2015/yield/parameter-default-inside-arrow-inside-generator-1/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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"throws": "yield is not allowed in the parameters of an arrow function inside a generator (2:7)" | ||
"throws": "Yield cannot be used as name inside a generator function (2:7)" | ||
} |
2 changes: 1 addition & 1 deletion
2
...test/fixtures/es2015/yield/parameter-default-inside-arrow-inside-generator-2/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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"throws": "yield is not allowed in the parameters of an arrow function inside a generator (2:15)" | ||
"throws": "Yield cannot be used as name inside a generator function (2:15)" | ||
} |
2 changes: 1 addition & 1 deletion
2
...test/fixtures/es2015/yield/parameter-default-inside-arrow-inside-generator-3/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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"throws": "yield is not allowed in the parameters of an arrow function inside a generator (2:7)" | ||
"throws": "Yield cannot be used as name inside a generator function (2:7)" | ||
} |
2 changes: 1 addition & 1 deletion
2
...test/fixtures/es2015/yield/parameter-default-inside-arrow-inside-generator-4/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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"throws": "yield is not allowed in the parameters of an arrow function inside a generator (2:17)" | ||
"throws": "Yield cannot be used as name inside a generator function (2:17)" | ||
} |
2 changes: 1 addition & 1 deletion
2
...test/fixtures/es2015/yield/parameter-default-inside-arrow-inside-generator-5/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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"throws": "yield is not allowed in the parameters of an arrow function inside a generator (2:8)" | ||
"throws": "Yield cannot be used as name inside a generator function (2:8)" | ||
} |
2 changes: 1 addition & 1 deletion
2
...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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"throws": "yield is not allowed in the parameters of an arrow function inside a generator (2:8)" | ||
"throws": "Yield cannot be used as name inside a generator function (2:8)" | ||
} |
2 changes: 1 addition & 1 deletion
2
...el-parser/test/fixtures/es2015/yield/parameter-name-arrow-inside-generator-1/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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"throws": "yield is not allowed in the parameters of an arrow function inside a generator (2:3)" | ||
"throws": "Yield cannot be used as name inside a generator function (2:3)" | ||
} |
2 changes: 1 addition & 1 deletion
2
...el-parser/test/fixtures/es2015/yield/parameter-name-arrow-inside-generator-2/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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"throws": "yield is not allowed in the parameters of an arrow function inside a generator (2:3)" | ||
"throws": "Yield cannot be used as name inside a generator function (2:3)" | ||
} |
2 changes: 1 addition & 1 deletion
2
...el-parser/test/fixtures/es2015/yield/parameter-name-arrow-inside-generator-3/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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"throws": "yield is not allowed in the parameters of an arrow function inside a generator (2:9)" | ||
"throws": "Yield cannot be used as name inside a generator function (2:9)" | ||
} |
2 changes: 1 addition & 1 deletion
2
...ait-inside-arguments-of-async-call-inside-parameters-of-async-arrow-function/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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"throws": "await is not allowed in the parameters of an arrow function inside an async function (2:23)" | ||
"throws": "Await cannot be used as name inside an async function (2:23)" | ||
} |
2 changes: 1 addition & 1 deletion
2
...ures/es2017/async-functions/await-inside-parameters-of-nested-arrow-function/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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"throws": "await is not allowed in the parameters of an arrow function inside an async function (2:7)" | ||
"throws": "Await cannot be used as name inside an async function (2:7)" | ||
} |
2 changes: 1 addition & 1 deletion
2
...s2017/async-functions/await-inside-parameters-of-nested-async-arrow-function/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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"throws": "await is not allowed in the parameters of an arrow function inside an async function (2:13)" | ||
"throws": "Await cannot be used as name inside an async function (2:13)" | ||
} |
2 changes: 1 addition & 1 deletion
2
...ser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-arrow-default/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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"throws": "yield is not allowed in the parameters of an arrow function inside a generator (1:21)" | ||
"throws": "Yield cannot be used as name inside a generator function (1:21)" | ||
} |
2 changes: 1 addition & 1 deletion
2
...r/test/fixtures/esprima/es2015-yield/invalid-yield-generator-arrow-parameter/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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"throws": "yield is not allowed in the parameters of an arrow function inside a generator (1:16)" | ||
"throws": "Yield cannot be used as name inside a generator function (1:16)" | ||
} |
2 changes: 1 addition & 1 deletion
2
.../test/fixtures/esprima/es2015-yield/invalid-yield-generator-arrow-parameters/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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"throws": "yield is not allowed in the parameters of an arrow function inside a generator (1:25)" | ||
"throws": "Yield cannot be used as name inside a generator function (1:25)" | ||
} |
2 changes: 1 addition & 1 deletion
2
...abel-parser/test/fixtures/esprima/es2015-yield/yield-generator-arrow-default/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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"throws": "yield is not allowed in the parameters of an arrow function inside a generator (1:21)" | ||
"throws": "Yield cannot be used as name inside a generator function (1:21)" | ||
} |