[Webkit-unassigned] [Bug 232656] [WebIDL] A default value = {} in a dictionary is not supported

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Mar 3 22:07:31 PST 2022


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

Dan Glastonbury <djg at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |djg at apple.com

--- Comment #4 from Dan Glastonbury <djg at apple.com> ---
(In reply to Sam Weinig from comment #3)
> In most cases, we do the right thing if just remove the "= { }" because most
> interfaces treat `nullopt` and default constructed inner type the same.
> 
> That said, this would certainly be nice to fix.

I implemented this by adding the parsing for = {} and returning the "default" value as "{}".  Do I need to update the generator if "we do the right thing..."? (I saw we handle $default == "[]")

-- 
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/20220304/bf2fad24/attachment.htm>


More information about the webkit-unassigned mailing list