From c0bcbf7068e186c326d70fd63acf0e71518e5dd3 Mon Sep 17 00:00:00 2001 From: Boris Zbarsky Date: Fri, 27 Jul 2012 00:09:09 -0400 Subject: [PATCH] Bug 775845. Fail codegen for variadic arguments until we add support for them. r=peterv --- dom/bindings/Codegen.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dom/bindings/Codegen.py b/dom/bindings/Codegen.py index a00491614da1..1c004a853430 100644 --- a/dom/bindings/Codegen.py +++ b/dom/bindings/Codegen.py @@ -2230,6 +2230,9 @@ class CGArgumentConverter(CGThing): invalidEnumValueFatal=True): CGThing.__init__(self) self.argument = argument + if argument.variadic: + raise TypeError("We don't support variadic arguments yet " + + str(argument.location)) # XXXbz should optional jsval args get JSVAL_VOID? What about # others? replacer = { @@ -3043,6 +3046,7 @@ class FakeArgument(): def __init__(self, type): self.type = type self.optional = False + self.variadic = False class CGSetterCall(CGGetterSetterCall): """