Function js_sys::Reflect::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.