Function mozjs::jsapi::JS_AssignObject

source ·
pub unsafe extern "C" fn JS_AssignObject(
    cx: *mut JSContext,
    target: Handle<*mut JSObject>,
    src: Handle<*mut JSObject>
) -> bool
Expand description

Equivalent to Object.assign(target, src): Copies the properties from the src object (which must not be null) to target (which also must not be null).