Skip to main content

JS_DefinePropertyValueStr

Function JS_DefinePropertyValueStr 

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

JS_DefinePropertyValueStr: the same, keyed by a string.

§Safety

this_obj a live JSValue, name NUL-terminated; val’s reference is consumed.