Discussion:
Should %ArrayIteratorPrototype%[@@iterator] move to %IteratorPrototype%?
Boris Zbarsky
2014-10-06 09:24:16 UTC
Permalink
http://people.mozilla.org/~jorendorff/es6-draft.html#sec-%arrayiteratorprototype%-@@iterator
seems like something that would be useful on all iterators. In
particular,
http://people.mozilla.org/~jorendorff/es6-draft.html#sec-%mapiteratorprototype%-@@iterator
looks identical, as does
http://people.mozilla.org/~jorendorff/es6-draft.html#sec-%setiteratorprototype%-@@iterator
as do methods we're having to add to Web IDL iterators.

It seems like it would be simpler to just put this on
%IteratorPrototype% so all iterators pick it up automatically.

-Boris
Domenic Denicola
2014-10-06 13:42:19 UTC
Permalink
This actually was agreed upon at the last TC39 meeting :)

https://github.com/tc39/tc39-notes/blob/master/es6/2014-09/sept-23.md#41-spec-status-report see especially "Conclusion/Resolution".

Unsure what Allen's progress is on releasing the latest draft, but I anticipate it'll be in there.
Allen Wirfs-Brock
2014-10-06 14:43:34 UTC
Permalink
Yes.? Already in my working draft.

Allen

Loading...