Instance Property

virtualMachine

The JavaScript virtual machine to which the context belongs.

Declaration

@property(readonly, strong) JSVirtualMachine *virtualMachine;

Discussion

To create a context associated with a specific virtual machine, allowing JavaScript values to be passed between contexts that share the same virtual machine, use the initWithVirtualMachine: initializer.

See Also

Working with JavaScript Global State

globalObject

The JavaScript global object associated with the context.

exception

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

exceptionHandler

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

name

A descriptive name for the context.