JSObjectSetPrototype

Function JSObjectSetPrototype 

Source
pub unsafe extern "C-unwind" fn JSObjectSetPrototype(
    ctx: JSContextRef,
    object: JSObjectRef,
    value: JSValueRef,
)
Available on crate features JSBase and JSObjectRef only.
Expand description

Sets an object’s prototype.

Parameter ctx: The execution context to use.

Parameter object: The JSObject whose prototype you want to set.

Parameter value: A JSValue to set as the object’s prototype.

§Safety

  • ctx must be a valid pointer.
  • object must be a valid pointer.
  • value must be a valid pointer.