[Webkit-unassigned] [Bug 131698] Simple ES6 feature: Array.from

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jan 13 15:09:11 PST 2015


--- Comment #6 from Caitlin Potter <caitpotter88 at gmail.com> ---
You're correct, for-of and the spread operator are supported for certain types (although strings appear to not be iterable yet in JSC).

However, iterator methods seem to be attached via private properties / internal slots, rather than using the well-known symbol @@iterator.

The Array.from algorithm uses `GetMethod(items, @@iterator)` to determine whether or not it can use the from-iterable path or the from-array-like path, so an implementation is still sort of blocked on that (or at least blocked on exposing a getter for the private iterator properties to JS builtins, if it is to be implemented in JS).

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150113/119322fc/attachment-0002.html>

More information about the webkit-unassigned mailing list