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.
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.