[Webkit-unassigned] [Bug 11529] under js1.2, Array object should pop the last element as Number object's argument
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Nov 6 17:24:05 PST 2006
http://bugs.webkit.org/show_bug.cgi?id=11529
------- Comment #6 from digdog at macports.org 2006-11-06 17:24 PDT -------
However, this proposal seems conflict with ECMA-262v3 specs 9.3.1 & 8.6.2.6.
Cause Object should call ToPrimitive first then ToNumber later after, and
ToPrimitive was calling valueOf and toString. However, the Array prototype does
not have valueOf, so it inherits the property from Object prototype.
I am not sure if the valueOf [1,2,3] should be "1,2,3" or [object Array], and
it will be "1,2,3" before this patch, and "3" after the patch applied.
--
Configure bugmail: http://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