mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Indent the contents of obj_toString correctly.
This commit is contained in:
parent
eb4213f613
commit
504efb66fb
1 changed files with 4 additions and 4 deletions
|
@ -3706,12 +3706,12 @@ class CGDOMJSProxyHandler_obj_toString(CGAbstractExternMethod):
|
|||
JSString* jsresult;
|
||||
return xpc_qsStringToJsstring(cx, result, &jsresult) ? jsresult : NULL;"""
|
||||
|
||||
return """ "%s".to_c_str().with_ref(|s| {
|
||||
_obj_toString(cx, s)
|
||||
})""" % self.descriptor.name
|
||||
return """"%s".to_c_str().with_ref(|s| {
|
||||
_obj_toString(cx, s)
|
||||
})""" % self.descriptor.name
|
||||
|
||||
def definition_body(self):
|
||||
return CGGeneric(self.getBody())
|
||||
return CGIndenter(CGGeneric(self.getBody()))
|
||||
|
||||
class CGAbstractClassHook(CGAbstractExternMethod):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue