Class jac::ContextRef
ClassList > jac > ContextRef
A wrapper around JSContext* providing some related functionality.
#include <context.h>
Public Functions
| Type | Name |
|---|---|
| ContextRef (JSContext * ctx) |
|
| JSContext * | get () Get the underlying JSContext*. |
| Exception | getException () Get pending exception thrown in this context. |
| Object | getGlobalObject () Get the global object of this context. |
| operator JSContext * () |
|
| operator JSContext * () const |
|
| operator bool () |
|
| ContextRef & | operator= (JSContext * ctx) |
Public Functions Documentation
function ContextRef
function get
Get the underlying JSContext*.
Returns:
The JSContext*
function getException
Get pending exception thrown in this context.
Note:
If there is no pending exception, new Exception will be thrown
Returns:
The Exception
function getGlobalObject
Get the global object of this context.
Returns:
The global object
function operator JSContext * [1/2]
function operator JSContext * [2/2]
function operator bool
function operator=
The documentation for this class was generated from the following file src/jac/machine/context.h