Function

JSContextGetGroup(_:)

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

Declaration

func JSContextGetGroup(_ ctx: JSContextRef!) -> JSContextGroupRef!

Parameters

ctx

The JSContext whose group you want to get.

Return Value

ctx's group.

See Also

Miscellaneous

func JSContextGetGlobalObject(JSContextRef!) -> JSObjectRef!

Gets the global object of a JavaScript execution context.

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.