mirror of
https://github.com/servo/servo
synced 2026-04-28 02:19:14 +02:00
auto merge of #4452 : Ms2ger/servo/_obj_toString, r=jdm
This commit is contained in:
@@ -3901,8 +3901,7 @@ class CGDOMJSProxyHandler_obj_toString(CGAbstractExternMethod):
|
||||
JSString* jsresult;
|
||||
return xpc_qsStringToJsstring(cx, result, &jsresult) ? jsresult : NULL;"""
|
||||
|
||||
return """let s = "%s".to_c_str();
|
||||
_obj_toString(cx, s.as_ptr())""" % self.descriptor.name
|
||||
return """_obj_toString(cx, "%s")""" % self.descriptor.name
|
||||
|
||||
def definition_body(self):
|
||||
return CGGeneric(self.getBody())
|
||||
|
||||
Reference in New Issue
Block a user