mirror of
https://github.com/servo/servo
synced 2026-04-29 19:07:38 +02:00
Improve support for nested dictionaries
This commit is contained in:
@@ -4611,7 +4611,8 @@ class IDLArgument(IDLObjectWithIdentifier):
|
||||
|
||||
if ((self.type.isDictionary() or
|
||||
self.type.isUnion() and self.type.unroll().hasDictionaryType()) and
|
||||
self.optional and not self.defaultValue and not self.variadic):
|
||||
self.optional and not self.defaultValue and not self.variadic and
|
||||
not self.dictionaryMember):
|
||||
# Default optional non-variadic dictionary arguments to null,
|
||||
# for simplicity, so the codegen doesn't have to special-case this.
|
||||
self.defaultValue = IDLNullValue(self.location)
|
||||
|
||||
Reference in New Issue
Block a user