[Webkit-unassigned] [Bug 133914] New: IDL Constructor does not allow too many arguments

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Jun 14 14:06:40 PDT 2014


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

           Summary: IDL Constructor does not allow too many arguments
           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: krit at webkit.org


[
    Conditional=GEOMETRY,
    Constructor,
    Constructor(Dictionary point),
    Constructor(unrestricted double x, unrestricted double y),
    Constructor(unrestricted double x, unrestricted double y, unrestricted double z),
    Constructor(unrestricted double x, unrestricted double y, unrestricted double z, unrestricted double w)
] interface DOMPoint : DOMPointReadOnly {

Code generator makes every check equal check. Last check should be >=:

    size_t argsCount = exec->argumentCount();
    if (argsCount == 0)
        return JSDOMPointConstructor::constructJSDOMPoint1(exec);
    if (argsCount == 1)
        return JSDOMPointConstructor::constructJSDOMPoint2(exec);
    if (argsCount == 2)
        return JSDOMPointConstructor::constructJSDOMPoint3(exec);
    if (argsCount == 3)
        return JSDOMPointConstructor::constructJSDOMPoint4(exec);
    if (argsCount == 4)
        return JSDOMPointConstructor::constructJSDOMPoint5(exec);
    return throwVMTypeError(exec);

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