[Webkit-unassigned] [Bug 130775] New: [Bindings] constants are always typed to 'int'

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Mar 26 08:01:50 PDT 2014


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

           Summary: [Bindings] constants are always typed to 'int'
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Bindings
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: tonikitoo at webkit.org
                CC: darin at apple.com, dchris at gmail.com


that makes the following IDL return -1 (overflow) instead of the actual result.

] interface NodeFilter {
...
    // Constants for whatToShow
    const unsigned long       SHOW_ALL                       = 0xFFFFFFFF;
...
}

Generated code from this IDL looks like:

JSValue jsNodeFilterSHOW_ALL(ExecState* exec, JSValue, PropertyName)
{
    UNUSED_PARAM(exec);
    return jsNumber(static_cast<int>(0xFFFFFFFF)); <--- OVERFLOW
}


Firefox, for instance, returns 4294967295 as expected.

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