Ultralight C++ API 1.4.0
|
#include <Ultralight/JavaScript.h>
This class wraps a JSContextRef (a JavaScript execution context for use with JavaScriptCore) and locks the context on the current thread for the duration of its lifetime.
Public Member Functions | |
virtual JSContextRef | ctx ()=0 |
Get the underlying JSContextRef for use with JavaScriptCore C API. | |
operator JSContextRef () | |
Typecast to a JSContextRef for use with JavaScriptCore C API. | |
Public Member Functions inherited from RefCounted | |
virtual void | AddRef () const =0 |
virtual void | Release () const =0 |
virtual int | ref_count () const =0 |
Protected Member Functions | |
virtual | ~JSContext () |
Protected Member Functions inherited from RefCounted | |
virtual | ~RefCounted () |
|
protectedvirtual |
|
pure virtual |
Get the underlying JSContextRef for use with JavaScriptCore C API.
operator JSContextRef | ( | ) |
Typecast to a JSContextRef for use with JavaScriptCore C API.