[Webkit-unassigned] [Bug 193328] New: Bindings generator emits incorrect code when using VoidCallback as an IDL dictionary attribute

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jan 10 11:21:57 PST 2019


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

            Bug ID: 193328
           Summary: Bindings generator emits incorrect code when using
                    VoidCallback as an IDL dictionary attribute
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Bindings
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: wenson_hsieh at apple.com
                CC: cdumez at apple.com

For instance, this IDL:

    dictionary Foo {
        required VoidCallback bar;
    };

...generates this code in the corresponding implementation of convertDictionary:

    if (!barValue.isUndefined()) {
        result.bar = convert<IDLCallbackFunction<JSVoidCallback>>(state, barValue, );
        RETURN_IF_EXCEPTION(throwScope, { });
    } else {
        throwRequiredMemberTypeError(state, throwScope, "bar", "FooInit", "VoidCallback");
        return { };
    }

...which (of course) fails to compile.

-- 
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/20190110/65e736da/attachment-0001.html>


More information about the webkit-unassigned mailing list