mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Rename EnsureExpandoObject to ensure_expando_object.
This commit is contained in:
parent
0b9549746b
commit
2592045ed4
1 changed files with 3 additions and 2 deletions
|
@ -71,7 +71,7 @@ pub unsafe extern fn define_property(cx: *mut JSContext, proxy: *mut JSObject,
|
|||
JSMSG_GETTER_ONLY) != 0;
|
||||
}
|
||||
|
||||
let expando = EnsureExpandoObject(cx, proxy);
|
||||
let expando = ensure_expando_object(cx, proxy);
|
||||
return JS_DefinePropertyById(cx, expando, id, (*desc).value, (*desc).getter,
|
||||
(*desc).setter, (*desc).attrs) != 0;
|
||||
}
|
||||
|
@ -117,7 +117,8 @@ pub fn get_expando_object(obj: *mut JSObject) -> *mut JSObject {
|
|||
|
||||
/// Get the expando object, or create it if it doesn't exist yet.
|
||||
/// Fails on JSAPI failure.
|
||||
pub fn EnsureExpandoObject(cx: *mut JSContext, obj: *mut JSObject) -> *mut JSObject {
|
||||
pub fn ensure_expando_object(cx: *mut JSContext, obj: *mut JSObject)
|
||||
-> *mut JSObject {
|
||||
unsafe {
|
||||
assert!(is_dom_proxy(obj));
|
||||
let mut expando = get_expando_object(obj);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue