V8 API Reference, 7.2.502.16 (for Deno 0.2.4)
|
#include <v8.h>
Public Member Functions | |
Local< Value > | Name () const |
Static Public Member Functions | |
static Local< Private > | New (Isolate *isolate, Local< String > name=Local< String >()) |
static Local< Private > | ForApi (Isolate *isolate, Local< String > name) |
static V8_INLINE Private * | Cast (Data *data) |
A private symbol
This is an experimental feature. Use at your own risk.
Retrieve a global private symbol. If a symbol with this name has not been retrieved in the same isolate before, it is created. Note that private symbols created this way are never collected, so they should only be used for statically fixed properties. Also, there is only one global name space for the names used as keys. To minimize the potential for clashes, use qualified names as keys, e.g., "Class#property".