Bug 142512
Summary: | Bindings generator should create a C++ constant for each WebIDL constant | ||
---|---|---|---|
Product: | WebKit | Reporter: | Andy Estes <aestes> |
Component: | Bindings | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Enhancement | CC: | kling, sam, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | 528+ (Nightly build) | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Andy Estes
If I create a constant in IDL, such as:
interface MyInterface {
const unsigned short myConstant = 0;
}
The generated bindings will add these to the prototype like this:
{ "myConstant", DontDelete | ReadOnly | ConstantInteger, NoIntrinsic, (intptr_t)(0), (intptr_t) (0) },
But the JSMyInterface class will not have a myConstant, meaning that I might need to define my own in parallel with the IDL definition. It would be nice if C++ constants were generated automatically.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/20097938>