mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +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
|
@ -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