Function

JSObjectSetPrototype(_:_:_:)

Sets an object’s prototype.

Declaration

func JSObjectSetPrototype(_ ctx: JSContextRef!, _ object: JSObjectRef!, _ value: JSValueRef!)

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.