Function quickjs_runtime::quickjs_utils::maps::set

source ·
pub unsafe fn set(
    ctx: *mut JSContext,
    map: &QuickJsValueAdapter,
    key: QuickJsValueAdapter,
    val: QuickJsValueAdapter,
) -> Result<QuickJsValueAdapter, JsError>
Expand description

set a key/value pair in a Map

§Safety

please ensure the passed JSContext is still valid