Bug 775845. Fail codegen for variadic arguments until we add support for them. r=peterv

This commit is contained in:
Boris Zbarsky 2012-07-27 00:09:09 -04:00
Родитель cf68660a3b
Коммит c0bcbf7068
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -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):
"""