Skip to main content

JS_DefinePropertyValue

Function JS_DefinePropertyValue 

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

JS_DefinePropertyValue: define a data property, consuming val.

§Safety

this_obj must be a live JSValue; val’s reference is consumed.