ADC Home > Reference Library > Reference > Carbon > Internet & Web > JavaScriptCore Framework Reference
|
JSContextRef.h |
Includes: |
JSContextGetGlobalObject |
Gets the global object of a JavaScript execution context.
JSObjectRef JSContextGetGlobalObject( JSContextRef ctx);
ctx
ctx's global object.
JSGlobalContextCreate |
Creates a global JavaScript execution context.
JSGlobalContextRef JSGlobalContextCreate( JSClassRef globalObjectClass);
globalObjectClass
A JSGlobalContext with a global object of class globalObjectClass.
JSGlobalContextCreate allocates a global object and populates it with all the built-in JavaScript objects, such as Object, Function, String, and Array.
JSGlobalContextRelease |
Releases a global JavaScript execution context.
void JSGlobalContextRelease( JSGlobalContextRef ctx);
ctx
JSGlobalContextRetain |
Retains a global JavaScript execution context.
JSGlobalContextRef JSGlobalContextRetain( JSGlobalContextRef ctx);
ctx
A JSGlobalContext that is the same as ctx.
|