[Webkit-unassigned] [Bug 20261] Support Array and String generic shorthands

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Dec 4 08:24:11 PST 2009


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


Patrick Mueller <pmuellr at yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pmuellr at yahoo.com




--- Comment #2 from Patrick Mueller <pmuellr at yahoo.com>  2009-12-04 08:24:11 PST ---
(In reply to comment #1)
> Re-titling to (hopefully) better match terminology found in aforementioned
> developer.mozilla.org article. We do support generics, just not the new funny
> syntax for them.

Just to be clear - I had to try it in a console to be sure - you can call the
existing Array methods via Array.prototype.[method].call() and pass Strings.

   > Array.prototype.slice.call("123")
   < ["1", "2", "3"]

-- 
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