-
-
Notifications
You must be signed in to change notification settings - Fork 411
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Merged by Bors] - Add early error for yield
in GeneratorExpression
parameters
#2413
Conversation
Test262 conformance changes
Fixed tests (2):
|
Codecov Report
@@ Coverage Diff @@
## main #2413 +/- ##
==========================================
- Coverage 38.74% 38.69% -0.06%
==========================================
Files 313 314 +1
Lines 23856 23887 +31
==========================================
Hits 9244 9244
- Misses 14612 14643 +31
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch!
@@ -130,6 +130,14 @@ where | |||
params_start_position, | |||
)?; | |||
|
|||
// It is a Syntax Error if FormalParameters Contains YieldExpression is true. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// https://tc39.es/ecma262/#sec-generator-function-definitions-static-semantics-early-errors
I think the above comment is also pointing to function definitions not generator function definitions which is slightly different.
bors r+ |
This Pull Request changes the following: - Add early error for `yield` in `GeneratorExpression` parameters
Pull request successfully merged into main. Build succeeded: |
yield
in GeneratorExpression
parametersyield
in GeneratorExpression
parameters
This Pull Request changes the following:
yield
inGeneratorExpression
parameters