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

only get properties in named variant once #10

Merged
merged 1 commit into from
Jan 4, 2024
Merged

only get properties in named variant once #10

merged 1 commit into from
Jan 4, 2024

Conversation

michaelficarra
Copy link
Member

Fixes #7. Now we only get the descriptor once. Unfortunately this forces me to also have to handle calling a getter manually. Additionally, I have changed the behaviour for when the property has the value undefined. Previously it would throw trying to iterate it, but instead it is now skipped. I think that probably matches JS programmer intuition better.

Copy link
Collaborator

@bakkot bakkot left a comment

Choose a reason for hiding this comment

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

Neutral on accepting undefined vs throwing. Otherwise LGTM.

@michaelficarra michaelficarra merged commit 5605997 into main Jan 4, 2024
1 check passed
@michaelficarra michaelficarra deleted the GH-7 branch January 4, 2024 19:15
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.

Iterator.zip reads properties of the "bag of iterables" overload twice
2 participants