Skip to main content

JS_GetPropertyInternal

Function JS_GetPropertyInternal 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn JS_GetPropertyInternal( ctx: *mut JsContext, obj: JsValue, atom: Atom, receiver: JsValue, throw_ref_error: Bool, ) -> JsValue
Expand description

JS_GetPropertyInternal: the general read, with an explicit receiver.

receiver is what an inherited getter sees as this. The reference passes obj for the ordinary case; a caller that wants a different receiver (a proxy’s own trap does) passes something else, which is why this exists separately from JS_GetPropertyStr.

§Safety

obj and receiver must be live JSValues.