Skip to main content

JS_SetPropertyUint32

Function JS_SetPropertyUint32 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn JS_SetPropertyUint32( ctx: *mut JsContext, this_obj: JsValue, idx: u32, val: JsValue, ) -> c_int
Expand description

JS_SetPropertyStr lives in crate::objects. The numbered spellings are here.

JS_SetPropertyUint32: this_obj[idx] = val, consuming val’s reference.

§Safety

this_obj must be a live JSValue, and val a live one whose reference this call consumes.