mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
Rename _obj_toString to object_to_string.
This commit is contained in:
parent
6920aa970d
commit
f84cbd4025
2 changed files with 2 additions and 3 deletions
|
@ -3946,7 +3946,7 @@ class CGDOMJSProxyHandler_obj_toString(CGAbstractExternMethod):
|
|||
JSString* jsresult;
|
||||
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):
|
||||
return CGGeneric(self.getBody())
|
||||
|
@ -4580,7 +4580,6 @@ class CGBindingRoot(CGThing):
|
|||
'dom::bindings::error::throw_dom_exception',
|
||||
'dom::bindings::error::throw_type_error',
|
||||
'dom::bindings::proxyhandler',
|
||||
'dom::bindings::proxyhandler::{_obj_toString}',
|
||||
'dom::bindings::proxyhandler::{FillPropertyDescriptor, GetExpandoObject}',
|
||||
'dom::bindings::proxyhandler::{get_property_descriptor}',
|
||||
'dom::bindings::proxyhandler::{getOwnPropertyNames_, enumerate_}',
|
||||
|
|
|
@ -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`.
|
||||
pub fn _obj_toString(cx: *mut JSContext, name: &str) -> *mut JSString {
|
||||
pub fn object_to_string(cx: *mut JSContext, name: &str) -> *mut JSString {
|
||||
unsafe {
|
||||
let result = format!("[object {}]", name);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue