Type Method

contextWithJSGlobalContextRef:

Creates a JavaScript context object from the equivalent C representation.

Declaration

+ (JSContext *)contextWithJSGlobalContextRef:(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

JSGlobalContextRef

Returns the C representation of the JavaScript context.