v8toolkit
0.0.1
Utility library for embedding V8 Javascript engine in a c++ program
|
#include <v8toolkit.h>
Public Member Functions | |
V8Exception (v8::Isolate *isolate, v8::Global< v8::Value > &&value) | |
V8Exception (v8::Isolate *isolate, v8::Local< v8::Value > value) | |
V8Exception (v8::Isolate *isolate, std::string reason) | |
virtual const char * | what () const noexcept override |
v8::Local< v8::Value > | get_local_value () |
v8::Isolate * | get_isolate () |
v8::Global< v8::Value > | get_value () |
When the V8 engine itself generates an error (or a user calls isolate->ThrowException manually with a v8::Value for some reason) That exception is re-thrown as a standard C++ exception of this type. The V8 Value thrown is available. get_local_value must be called within a HandleScope get_value returns a new Global handle to the value.
Definition at line 245 of file v8toolkit.h.
|
inline |
Definition at line 252 of file v8toolkit.h.
|
inline |
Definition at line 256 of file v8toolkit.h.
|
inline |
Definition at line 257 of file v8toolkit.h.
|
inlineoverridevirtualnoexcept |
Definition at line 258 of file v8toolkit.h.
|
inline |
Definition at line 261 of file v8toolkit.h.
|
inline |
Definition at line 262 of file v8toolkit.h.
|
inline |
Definition at line 263 of file v8toolkit.h.