Function

JSObjectSetPrototype

Sets an object’s prototype.

Declaration

void JSObjectSetPrototype(JSContextRef ctx, JSObjectRef object, JSValueRef value);

Parameters

ctx

The execution context to use.

object

The JSObject whose prototype you want to set.

value

A JSValue to set as the object's prototype.