Skip to main content

JS_SetPropertyInternal

Function JS_SetPropertyInternal 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn JS_SetPropertyInternal( ctx: *mut JsContext, obj: JsValue, atom: Atom, val: JsValue, this_obj: JsValue, flags: c_int, ) -> c_int
Expand description

JS_SetPropertyInternal: the general store.

flags carries JS_PROP_THROW when a refusal should be a TypeError; this_obj is the receiver an inherited setter sees, and is obj in every ordinary call.

§Safety

obj and this_obj must be live JSValues; val’s reference is consumed.