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
ctxmust be a valid pointer.objectmust be a valid pointer.valuemust be a valid pointer.