[Webkit-unassigned] [Bug 80619] New: Generated cpp binding code is incorrect for static functions

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Mar 8 11:38:36 PST 2012


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

           Summary: Generated cpp binding code is incorrect for static
                    functions
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebCore JavaScript
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: jonlee at apple.com


In TestObj.idl:

        static void classMethod();
        static long classMethodWithOptional(in [Optional] long arg);

Leads to generated code:

WebDOMTestObj.h:
    void classMethod();
    int classMethodWithOptional(int arg);

WebDOMTestObj.cpp:

void WebDOMTestObj::classMethod()
{
    if (!impl())
        return;

    impl()->classMethod();
}

int WebDOMTestObj::classMethodWithOptional(int arg)
{
    if (!impl())
        return 0;

    return impl()->classMethodWithOptional(arg);
}

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