v8
3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
|
#include <v8.h>
Static Public Member Functions | |
static V8EXPORT Local< Value > | Wrap (void *data) |
static void * | Unwrap (Handle< Value > obj) |
static V8EXPORT Local< External > | New (void *value) |
static External * | Cast (Value *obj) |
A JavaScript value that wraps a C++ void*. This type of value is mainly used to associate C++ data structures with JavaScript objects.
The Wrap function V8 will return the most optimal Value object wrapping the C++ void*. The type of the value is not guaranteed to be an External object and no assumptions about its type should be made. To access the wrapped value Unwrap should be used, all other operations on that object will lead to unpredictable results.
Definition at line 4752 of file api.cc.
References ENTER_V8, LOG_API, and STATIC_ASSERT.
Referenced by THREADED_TEST().
Definition at line 4382 of file v8.h.
Referenced by THREADED_TEST().
void * Value | ( | ) | const |
Definition at line 4762 of file api.cc.
Referenced by THREADED_TEST().
Definition at line 4707 of file api.cc.
References ASSERT_EQ, ENTER_V8, LOG_API, STATIC_ASSERT, and Utils::ToLocal().
Referenced by THREADED_TEST().