Instance Property


The JavaScript global object associated with the context.


@property(readonly, strong) JSValue *globalObject;


In a web browser, the global object of a JavaScript context is the browser window (the window object in JavaScript). Outside of web-browser use, a context’s global object serves a similar role, separating the JavaScript namespaces of different contexts. Global variables within a script appear as fields or subscripts in the global object—you can access them either through this JSValue object or through the methods listed in Accessing JavaScript Global State with Subscripts.

See Also

Working with JavaScript Global State


A JavaScript exception to be thrown in evaluation of the script.


A block to be invoked should evaluating a script result in a JavaScript exception being thrown.


The JavaScript virtual machine to which the context belongs.


A descriptive name for the context.