init(JSGlobalContextRef:)
Creates a JavaScript context object from the equivalent C representation.
Declaration
init!(JSGlobalContextRef jsGlobalContextRef: JSGlobalContextRef!)Parameters
- jsGlobalContextRef:
A C JavaScript context reference.
Return Value
A JavaScript context object representing the same context.
Discussion
See JSContextRef for the C JavaScriptCore API.