[Webkit-unassigned] [Bug 11529] New: 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 09:22:46 PST 2006


http://bugs.webkit.org/show_bug.cgi?id=11529

           Summary: under js1.2, Array object should pop the last element as
                    Number object's argument
           Product: WebKit
           Version: 420+ (nightly)
          Platform: Macintosh
        OS/Version: Mac OS X 10.4
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at opendarwin.org
        ReportedBy: digdog at macports.org


Currently, the result will be correct if Number object uses Array object as
argument, and the Array object has only one element.

If array length is larger than one, the argument will become NaN. This is due
to Array object will be first converted into ValueOf and later ToString, e.g.
"element1, element2".

The correct way based on js1.2 is to pop the last element if Array elements if
more than one.

Reference:
/WebKit/JavaScriptCore/tests/mozilla/js1_2/function/Number.js Ln65


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