Skip to main content

JS_SetPropertyStr

Function JS_SetPropertyStr 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn JS_SetPropertyStr( ctx: *mut JsContext, this_obj: JsValue, name: *const c_char, value: JsValue, ) -> c_int
Expand description

JS_SetPropertyStr: write a property by name, answering -1 on failure.

ยงSafety

ctx must be a live context, this_obj a live JSValue, name a NUL-terminated string, and value a live JSValue whose reference this call consumes.