Function quickjs_runtime::quickjs_utils::objects::set_property
source · pub unsafe fn set_property(
context: *mut JSContext,
obj_ref: &QuickJsValueAdapter,
prop_name: &str,
prop_ref: &QuickJsValueAdapter,
) -> Result<(), JsError>
Expand description
set a property in an object, like obj[propName] = val;
§Safety
when passing a context ptr please be sure that the corresponding QuickJsContext is still active