Function script::dom::bindings::import::module::jsapi::JS_ForwardSetPropertyTo

source ·
pub unsafe extern "C" fn JS_ForwardSetPropertyTo(
    cx: *mut JSContext,
    obj: Handle<*mut JSObject>,
    id: Handle<PropertyKey>,
    v: Handle<Value>,
    receiver: Handle<Value>,
    result: *mut ObjectOpResult,
) -> bool
Expand description

Perform the same property assignment as Reflect.set(obj, id, v, receiver).

This function has a receiver argument that most callers don’t need. Consider using JS_SetProperty instead.

Implements: ES6 [[Set]] internal method.