JS_SetProperty

Function JS_SetProperty 

Source
pub unsafe fn JS_SetProperty(
    ctx: *mut JSContext,
    this_obj: JSValue,
    prop: u32,
    val: JSValue,
) -> i32
Expand description

ยงSafety

The caller must ensure that ctx is a valid JSContext pointer, this_obj is a valid JSValue, and prop is a valid JSAtom.