[Webkit-unassigned] [Bug 83305] toNativeArray should not require a real array

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 5 18:11:22 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=83305





--- Comment #2 from Erik Arvidsson <arv at chromium.org>  2012-04-05 18:11:22 PST ---
(In reply to comment #1)
> Do you mean accepting any object, and not just an Array or platform object with indexed properties or platform array object?

Yes. The following object should work as an argument to a sequence<T>:

{length: 1, 0: someT}

That is how the Array methods works in ES. Look at the spec for Array.prototype.slice for example.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list