mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Rename HasPropertyOnPrototype to has_property_on_prototype.
This commit is contained in:
parent
59909efff1
commit
69c4c8223c
2 changed files with 5 additions and 4 deletions
|
@ -552,7 +552,8 @@ pub fn get_dictionary_property(cx: *mut JSContext,
|
|||
}
|
||||
|
||||
/// Returns whether `proxy` has a property `id` on its prototype.
|
||||
pub fn HasPropertyOnPrototype(cx: *mut JSContext, proxy: *mut JSObject, id: jsid) -> bool {
|
||||
pub fn has_property_on_prototype(cx: *mut JSContext, proxy: *mut JSObject,
|
||||
id: jsid) -> bool {
|
||||
// MOZ_ASSERT(js::IsProxy(proxy) && js::GetProxyHandler(proxy) == handler);
|
||||
let mut found = false;
|
||||
return !get_property_on_prototype(cx, proxy, id, &mut found, ptr::null_mut()) || found;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue