[Webkit-unassigned] [Bug 177686] New: [IDL] Parameters of dictionary type cannot be optional unless they have required members
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Sep 29 14:59:28 PDT 2017
https://bugs.webkit.org/show_bug.cgi?id=177686
Bug ID: 177686
Summary: [IDL] Parameters of dictionary type cannot be optional
unless they have required members
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: cdumez at apple.com
CC: cdumez at apple.com, darin at apple.com, sam at webkit.org
Parameters of dictionary type cannot be optional unless they have required members as per the Web IDL specification:
"""
If the type of an argument is a dictionary type or a union type that has a dictionary as one of its flattened member types, and that dictionary type and its ancestors have no required members, and the argument is either the final argument or is followed only by optional arguments, then the argument must be specified as optional. Such arguments are always considered to have a default value of an empty dictionary, unless otherwise specified.
"""
Our bindings generator should assert that this is always the case.
--
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/20170929/11cbceac/attachment.html>
More information about the webkit-unassigned
mailing list