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

Multiple items and spreads in array comprehensions #1656

Merged
merged 3 commits into from
Dec 24, 2024
Merged

Conversation

edemaine
Copy link
Collaborator

@edemaine edemaine commented Dec 23, 2024

Fixes #439

Includes optimization for ...for inside for, as suggested by @bbrk24

During self-test, I also found that z = (if x then {y}) was incorrectly compiled to z = ((x?y:void 0)) (note missing braces). That's fixed here too.

@edemaine edemaine merged commit fd1aaa4 into main Dec 24, 2024
4 checks passed
@edemaine edemaine deleted the spread-for branch December 24, 2024 03:31
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.

Object and advanced array comprehensions
2 participants