Function

JSObjectGetPrototype(_:_:)

Gets an object’s prototype.

Declaration

func JSObjectGetPrototype(_ ctx: JSContextRef!, _ object: JSObjectRef!) -> JSValueRef!

Parameters

ctx

The execution context to use.

object

A JSObject whose prototype you want to get.

Return Value

A JSValue that is the object's prototype.