Function

JSGlobalContextRetain(_:)

Retains a global JavaScript execution context.

Declaration

func JSGlobalContextRetain(_ ctx: JSGlobalContextRef!) -> JSGlobalContextRef!

Parameters

ctx

The JSGlobalContext to retain.

Return Value

A JSGlobalContext that is the same as ctx.

See Also

Miscellaneous

func JSContextGetGlobalObject(JSContextRef!) -> JSObjectRef!

Gets the global object of a JavaScript execution context.

func JSContextGetGroup(JSContextRef!) -> JSContextGroupRef!

Gets the context group to which a JavaScript execution context belongs.

func JSContextGroupCreate() -> JSContextGroupRef!

Creates a JavaScript context group.

func JSContextGroupRelease(JSContextGroupRef!)

Releases a JavaScript context group.

func JSGlobalContextCreate(JSClassRef!) -> JSGlobalContextRef!

Creates a global JavaScript execution context.

func JSGlobalContextCreateInGroup(JSContextGroupRef!, JSClassRef!) -> JSGlobalContextRef!

Creates a global JavaScript execution context in the context group provided.

func JSGlobalContextRelease(JSGlobalContextRef!)

Releases a global JavaScript execution context.