Function

JSContextGetGlobalObject(_:)

Gets the global object of a JavaScript execution context.

Declaration

func JSContextGetGlobalObject(_ ctx: JSContextRef!) -> JSObjectRef!

Parameters

ctx

The JSContext whose global object you want to get.

Return Value

ctx's global object.

See Also

Miscellaneous

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.