[Webkit-unassigned] [Bug 101783] New: WebIDL: number type conversions should throw TypeError for Infinity and NaN

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Nov 9 12:49:57 PST 2012


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

           Summary: WebIDL: number type conversions should throw TypeError
                    for Infinity and NaN
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: arv at chromium.org
                CC: abarth at webkit.org, jsbell at chromium.org,
                    haraken at chromium.org


When a JS value is supposed to be converted to one of the following IDL types

byte
octet
short
unsigned short
long
unsigned long
long long
unsigned long long
float
double

we should throw a TypeError if the value is NaN or Infinity.

The only ones that accept NaN are the "restricted float" and "restricted double" (which we are not using anywhere)

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