Bug 80619
| Summary: | Generated cpp binding code is incorrect for static functions | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Jon Lee <jonlee> |
| Component: | WebCore JavaScript | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | ||
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | All | ||
| OS: | All | ||
Jon Lee
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);
}
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |