[Webkit-unassigned] [Bug 142512] New: Bindings generator should create C++ a constant for each WebIDL constant

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Mar 9 16:00:08 PDT 2015


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

            Bug ID: 142512
           Summary: Bindings generator should create C++ a constant for
                    each WebIDL constant
    Classification: Unclassified
           Product: WebKit
           Version: 528+ (Nightly build)
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Enhancement
          Priority: P2
         Component: Bindings
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: aestes at apple.com

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150309/45020ad6/attachment-0002.html>


More information about the webkit-unassigned mailing list