mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Rename GetProtoOrIfaceArray to get_proto_or_iface_array.
This commit is contained in:
parent
bfddd1ec53
commit
b4b59df5e4
2 changed files with 3 additions and 3 deletions
|
@ -154,7 +154,7 @@ unsafe impl Sync for DOMJSClass {}
|
|||
|
||||
/// Returns the ProtoOrIfaceArray for the given global object.
|
||||
/// Fails if `global` is not a DOM global object.
|
||||
pub fn GetProtoOrIfaceArray(global: *mut JSObject) -> *mut *mut JSObject {
|
||||
pub fn get_proto_or_iface_array(global: *mut JSObject) -> *mut *mut JSObject {
|
||||
unsafe {
|
||||
assert!(((*JS_GetClass(global)).flags & JSCLASS_DOM_GLOBAL) != 0);
|
||||
JS_GetReservedSlot(global, DOM_PROTOTYPE_SLOT).to_private() as *mut *mut JSObject
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue