mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Fix codejen as JSVal changed 64 -> {64}
This commit is contained in:
parent
755975eacf
commit
c6b3c2d927
1 changed files with 1 additions and 1 deletions
|
@ -1454,7 +1454,7 @@ def getWrapTemplateForType(type, descriptorProvider, result, successCode,
|
|||
"""
|
||||
if failureCode is None:
|
||||
if not haveSuccessCode:
|
||||
return wrapCall + ";\n" + "return if *vp != 0 { 1 } else { 0 };"
|
||||
return wrapCall + ";\n" + "return if (*vp).v != 0 { 1 } else { 0 };"
|
||||
failureCode = "return 0;"
|
||||
str = ("if !%s {\n" +
|
||||
CGIndenter(CGGeneric(failureCode)).define() + "\n" +
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue