tc39 / proposal-joint-iteration

a TC39 proposal to synchronise the advancement of multiple iterators
https://tc39.es/proposal-joint-iteration
66 stars 2 forks source link

only get properties in named variant once #10

Closed michaelficarra closed 10 months ago

michaelficarra commented 10 months ago

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.