Function mozjs_sys::jsapi::JS_SetPropertyById
source ยท pub unsafe extern "C" fn JS_SetPropertyById(
cx: *mut JSContext,
obj: Handle<*mut JSObject>,
id: Handle<jsid>,
v: Handle<Value>,
) -> bool
Expand description
Perform the assignment obj[id] = v
.
This function performs non-strict assignment, so if the property is read-only, nothing happens and no error is thrown.