aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/codegen/parser/undo-dictionary-optional.patch
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/bindings/codegen/parser/undo-dictionary-optional.patch')
-rw-r--r--components/script/dom/bindings/codegen/parser/undo-dictionary-optional.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/components/script/dom/bindings/codegen/parser/undo-dictionary-optional.patch b/components/script/dom/bindings/codegen/parser/undo-dictionary-optional.patch
new file mode 100644
index 00000000000..b414a536415
--- /dev/null
+++ b/components/script/dom/bindings/codegen/parser/undo-dictionary-optional.patch
@@ -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)