On 7/23/2015 4:16 PM, Boris Zbarsky wrote:
I might be missing something, but why is __iterator__ and the nonstandard iteration protocol needed for this?
It's not.
I don't think anyone on the SpiderMonkey end particularly cares whether Iterator or some replacement is used.
Thanks a lot for the clarification. I was in fact replying to Tom's aside of "Please also try avoid using Iterator" but it's clear that there are use cases for it and we should use it where it makes sense. Iterator() can even be implemented easily internally using the ES6 iterator protocol. Cheers, Paolo _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform