mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +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
|
||||
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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue