Initializer

init(jsGlobalContextRef:)

Creates a JavaScript context object from the equivalent C representation.

Declaration

init!(jsGlobalContextRef: JSGlobalContextRef!)

Parameters

jsGlobalContextRef

A C JavaScript context reference.

Return Value

A JavaScript context object representing the same context.

Discussion

See JSContextRef.h for the C JavaScriptCore API.

See Also

Working with the C JavaScriptCore API

var jsGlobalContextRef: JSGlobalContextRef!

Returns the C representation of the JavaScript context.