mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update webidl.py from upstream
This commit is contained in:
parent
427003210b
commit
8f5db8a7e1
12 changed files with 201 additions and 76 deletions
|
@ -0,0 +1,12 @@
|
|||
--- WebIDL.py
|
||||
+++ WebIDL.py
|
||||
@@ -4570,8 +4570,7 @@ 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 and
|
||||
- not self.dictionaryMember):
|
||||
+ self.optional and not self.defaultValue and not self.variadic):
|
||||
# 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)
|
Loading…
Add table
Add a link
Reference in a new issue