[Webkit-unassigned] [Bug 20261] New: Support Top Level Array Generics
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sat Aug 2 00:30:45 PDT 2008
https://bugs.webkit.org/show_bug.cgi?id=20261
Summary: Support Top Level Array Generics
Product: WebKit
Version: 526+ (Nightly build)
Platform: Macintosh
OS/Version: Mac OS X 10.4
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: JavaScriptCore
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: dhtmlkitchen at gmail.com
Array Generics the built-in Array.prototype methods as generic static methods
on the built in Array.
Array Generics accept an Array-like object as the first argument and return the
method of the same name, called in context of the Array-like object.
// Non-generic.
Array.prototype.slice.call(arrayLike);
// Generic.
Array.slice(arrayLike);
The generic approach reduces clutter and property lookups. It is cleaner and
faster.
These methods are implemented in Firefox for quite some time now. For details,
please see:
http://developer.mozilla.org/en/docs/New_in_JavaScript_1.6#Array_and_String_generics
Still unimplemented in:
Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_4_11; en) AppleWebKit/527.3+ (KHTML,
like Gecko) Version/3.1.1 Safari/525.18
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list