[Webkit-unassigned] [Bug 81588] New: Array.prototype.toString should be generic
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Mar 19 16:26:20 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=81588
Summary: Array.prototype.toString should be generic
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: arv at chromium.org
CC: oliver at apple.com, barraclough at apple.com
The following fails in JSC
Array.prototype.toString.call(document.getElementsByTagName('*'))
with a TypeError.
The spec is pretty clear here that the above should work.
15.4.4.2 Array.prototype.toString ( )
NOTE The toString function is intentionally generic; it does not require that its this value be an Array object. Therefore it can be transferred to other kinds of objects for use as a method. Whether the toString function can be applied successfully to a host object is implementation-dependent.
--
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