Skip to content
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

OS#17895855 - Concise-body lambda function followed by in keyword is not handled correctly #5380

Conversation

boingoing
Copy link
Contributor

At the moment we parse this as a postfix operator, it should be part of the lambda body except for when we're parsing a for..in loop header.

Fixes:
https://microsoft.visualstudio.com/OS/_workitems/edit/17895855

…not handled correctly

At the moment we parse this as a postfix operator, it should be part of the lambda body except for when we're parsing a for..in loop header.

Fixes:
https://microsoft.visualstudio.com/OS/_workitems/edit/17895855
@boingoing boingoing requested review from Cellule and pleath June 28, 2018 02:15
Copy link
Contributor

@jackhorton jackhorton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JavaScript is such a good language.

Copy link
Contributor

@MSLaguana MSLaguana left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So much plumbing for a small change! LGTM

@akroshg
Copy link
Contributor

akroshg commented Jun 28, 2018

LGTM

@chakrabot chakrabot merged commit f3dd30d into chakra-core:release/1.10 Jun 28, 2018
chakrabot pushed a commit that referenced this pull request Jun 28, 2018
…ollowed by in keyword is not handled correctly

Merge pull request #5380 from boingoing:lambda_concise_body_in_expression

At the moment we parse this as a postfix operator, it should be part of the lambda body except for when we're parsing a for..in loop header.

Fixes:
https://microsoft.visualstudio.com/OS/_workitems/edit/17895855
@boingoing
Copy link
Contributor Author

Thanks, all

chakrabot pushed a commit that referenced this pull request Jun 28, 2018
…bda function followed by in keyword is not handled correctly

Merge pull request #5380 from boingoing:lambda_concise_body_in_expression

At the moment we parse this as a postfix operator, it should be part of the lambda body except for when we're parsing a for..in loop header.

Fixes:
https://microsoft.visualstudio.com/OS/_workitems/edit/17895855
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants