[Webkit-unassigned] [Bug 31349] New: Coercion to number is not spec compliant

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Nov 11 05:29:17 PST 2009


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

           Summary: Coercion to number is not spec compliant
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh Intel
        OS/Version: Mac OS X 10.6
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: kangax at gmail.com


As explained here
(http://thinkweb2.com/projects/prototype/sputniktests-web-runner/#number-u00A0),
`Number('\u00A0')` returns `NaN` in WebKit, but should be `0`. Similarly,
`parseFloat(“\u205F -1.1”)` returns `NaN` but should be `-1.1`. 

See 9.3.1 (ToNumber Applied to the String Type); in particular,
StrWhiteSpaceChar production.

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