script::dom::bindings::utils

Function get_property_on_prototype

Source
pub(crate) unsafe fn get_property_on_prototype(
    cx: *mut JSContext,
    proxy: Handle<'_, *mut JSObject>,
    receiver: Handle<'_, Value>,
    id: Handle<'_, PropertyKey>,
    found: *mut bool,
    vp: MutableHandle<'_, Value>,
) -> bool
Expand description

Gets the property id on proxy’s prototype. If it exists, *found is set to true and *vp to the value, otherwise *found is set to false.

Returns false on JSAPI failure.

§Safety

cx must point to a valid, non-null JSContext. found must point to a valid, non-null bool.