JS_DefinePropertyValue

Function JS_DefinePropertyValue 

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

ยงSafety

The caller must ensure that ctx and this_obj are valid pointers, and that the runtime is properly initialized.