pub(crate) unsafe fn get_dictionary_property(
cx: *mut JSContext,
object: Handle<'_, *mut JSObject>,
property: &str,
rval: MutableHandle<'_, Value>,
_can_gc: CanGc,
) -> Result<bool, ()>
Expand description
Get the property with name property
from object
.
Returns Err(())
on JSAPI failure (there is a pending exception), and
Ok(false)
if there was no property with the given name.
§Safety
cx
must point to a valid, non-null JSContext.