Skip to main content

JS_DefinePropertyValueValue

Function JS_DefinePropertyValueValue 

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

JS_DefinePropertyValueValue: the same, keyed by a value (ToPropertyKey on it).

§Safety

Both values must be live; prop’s and val’s references are consumed.