[Webkit-unassigned] [Bug 171150] Custom iterator on an array instance is ignored when doing conversion to sequence<>

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Apr 21 20:13:17 PDT 2017


--- Comment #3 from Saam Barati <sbarati at apple.com> ---
(In reply to Sam Weinig from comment #2)
> Saam, I'm using the isArrayIteratorProtocolFastAndNonObservable() function
> to determine if the there is an overriden iterator, but that only checks the
> prototype. Is there a good way to check the instance as well?

Just read the code for spread and it also looks to suffer from this problem as well. I think there are a few ways to fix this, that I'll think about more. We could check if it's an original array structure, and we can also check if the object itself has the property. Perhaps we should do both, but the second check requires a hashtable lookup. Maybe it's worth it. I'll work to fix this when I'm at a computer (typing this from my phone).

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/20170422/c8311c1a/attachment.html>

More information about the webkit-unassigned mailing list