Boris Zbarsky
2014-10-06 09:24:16 UTC
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
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