v8
3.11.10 (node 0.8.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.