mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Correct the generated code for NamedSetter calls.
This commit is contained in:
parent
ade0b7be8e
commit
e0bab08754
1 changed files with 8 additions and 1 deletions
|
@ -2279,8 +2279,15 @@ class CGPerSignatureCall(CGThing):
|
||||||
invalidEnumValueFatal=not setter) for
|
invalidEnumValueFatal=not setter) for
|
||||||
i in range(argConversionStartsAt, self.argCount)])
|
i in range(argConversionStartsAt, self.argCount)])
|
||||||
|
|
||||||
|
errorResult = None
|
||||||
|
if self.isFallible():
|
||||||
|
if nativeMethodName == "NamedSetter":
|
||||||
|
errorResult = " false"
|
||||||
|
else:
|
||||||
|
errorResult = " false as JSBool"
|
||||||
|
|
||||||
cgThings.append(CGCallGenerator(
|
cgThings.append(CGCallGenerator(
|
||||||
' false as JSBool' if self.isFallible() else None,
|
errorResult,
|
||||||
self.getArguments(), self.argsPre, returnType,
|
self.getArguments(), self.argsPre, returnType,
|
||||||
self.extendedAttributes, descriptor, nativeMethodName,
|
self.extendedAttributes, descriptor, nativeMethodName,
|
||||||
static))
|
static))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue