[Webkit-unassigned] [Bug 25490] New: ToNumber should ignore NBSP (\u00a0)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 30 13:14:05 PDT 2009


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

           Summary: ToNumber should ignore NBSP (\u00a0)
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh
               URL: http://hexmen.com/tests/pushpop.html
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: ash.searle at gmail.com


This bug in ToNumber is the only reason WebKit fails a couple of array push/pop
tests at the given URL. 

For a minimal test-case - do an unsigned right-shift as below.  Every case
should result in 3, but we get an answer of 0 when there's a non-breaking
space:
'\u0009 3' >>> 0; /* tab */
'\u0020 3' >>> 0; /* space */ 
'\u00a0 3' >>> 0; /* nbsp - fail! */

(see Section 9.3.1 of the EcmaScript 3rd edition spec for full list of
white-space characters)


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