js_sys::Reflect

Function set_prototype_of

Source
pub fn set_prototype_of(
    target: &Object,
    prototype: &JsValue,
) -> Result<bool, JsValue>
Expand description

The static Reflect.setPrototypeOf() method is the same method as Object.setPrototypeOf(). It sets the prototype (i.e., the internal [[Prototype]] property) of a specified object to another object or to null.

MDN documentation