Correct the generated code for NamedSetter calls.

This commit is contained in:
Bruno de Oliveira Abinader 2014-12-23 14:07:25 +01:00 committed by Ms2ger
parent ade0b7be8e
commit e0bab08754

View file

@ -2279,8 +2279,15 @@ class CGPerSignatureCall(CGThing):
invalidEnumValueFatal=not setter) for
i in range(argConversionStartsAt, self.argCount)])
errorResult = None
if self.isFallible():
if nativeMethodName == "NamedSetter":
errorResult = " false"
else:
errorResult = " false as JSBool"
cgThings.append(CGCallGenerator(
' false as JSBool' if self.isFallible() else None,
errorResult,
self.getArguments(), self.argsPre, returnType,
self.extendedAttributes, descriptor, nativeMethodName,
static))