Rename _obj_toString to object_to_string.

This commit is contained in:
Ms2ger 2015-01-29 17:16:55 +01:00
parent 6920aa970d
commit f84cbd4025
2 changed files with 2 additions and 3 deletions

View file

@ -3946,7 +3946,7 @@ class CGDOMJSProxyHandler_obj_toString(CGAbstractExternMethod):
JSString* jsresult; JSString* jsresult;
return xpc_qsStringToJsstring(cx, result, &jsresult) ? jsresult : NULL;""" return xpc_qsStringToJsstring(cx, result, &jsresult) ? jsresult : NULL;"""
return """_obj_toString(cx, "%s")""" % self.descriptor.name return """proxyhandler::object_to_string(cx, "%s")""" % self.descriptor.name
def definition_body(self): def definition_body(self):
return CGGeneric(self.getBody()) return CGGeneric(self.getBody())
@ -4580,7 +4580,6 @@ class CGBindingRoot(CGThing):
'dom::bindings::error::throw_dom_exception', 'dom::bindings::error::throw_dom_exception',
'dom::bindings::error::throw_type_error', 'dom::bindings::error::throw_type_error',
'dom::bindings::proxyhandler', 'dom::bindings::proxyhandler',
'dom::bindings::proxyhandler::{_obj_toString}',
'dom::bindings::proxyhandler::{FillPropertyDescriptor, GetExpandoObject}', 'dom::bindings::proxyhandler::{FillPropertyDescriptor, GetExpandoObject}',
'dom::bindings::proxyhandler::{get_property_descriptor}', 'dom::bindings::proxyhandler::{get_property_descriptor}',
'dom::bindings::proxyhandler::{getOwnPropertyNames_, enumerate_}', 'dom::bindings::proxyhandler::{getOwnPropertyNames_, enumerate_}',

View file

@ -89,7 +89,7 @@ pub unsafe extern fn delete(cx: *mut JSContext, proxy: *mut JSObject, id: jsid,
} }
/// Returns the stringification of an object with class `name`. /// Returns the stringification of an object with class `name`.
pub fn _obj_toString(cx: *mut JSContext, name: &str) -> *mut JSString { pub fn object_to_string(cx: *mut JSContext, name: &str) -> *mut JSString {
unsafe { unsafe {
let result = format!("[object {}]", name); let result = format!("[object {}]", name);