v8 10.2.154 (node 18.16.0)
V8 is Google's open source JavaScript engine
|
#include <v8-primitive.h>
Static Public Member Functions | |
static Local< Symbol > | New (Isolate *isolate, Local< String > description=Local< String >()) |
static Local< Symbol > | For (Isolate *isolate, Local< String > description) |
static Local< Symbol > | ForApi (Isolate *isolate, Local< String > description) |
static Local< Symbol > | GetAsyncIterator (Isolate *isolate) |
static Local< Symbol > | GetHasInstance (Isolate *isolate) |
static Local< Symbol > | GetIsConcatSpreadable (Isolate *isolate) |
static Local< Symbol > | GetIterator (Isolate *isolate) |
static Local< Symbol > | GetMatch (Isolate *isolate) |
static Local< Symbol > | GetReplace (Isolate *isolate) |
static Local< Symbol > | GetSearch (Isolate *isolate) |
static Local< Symbol > | GetSplit (Isolate *isolate) |
static Local< Symbol > | GetToPrimitive (Isolate *isolate) |
static Local< Symbol > | GetToStringTag (Isolate *isolate) |
static Local< Symbol > | GetUnscopables (Isolate *isolate) |
static V8_INLINE Symbol * | Cast (Data *data) |
Static Public Member Functions inherited from Name | |
static V8_INLINE Name * | Cast (Data *data) |
Static Public Member Functions inherited from Value | |
template<class T > | |
static V8_INLINE Value * | Cast (T *value) |
A JavaScript symbol (ECMA-262 edition 6)
Definition at line 583 of file v8-primitive.h.
Definition at line 626 of file v8-primitive.h.
Returns the description string of the symbol, or undefined if none.
Access global symbol registry. Note that 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 descriptions used as keys. To minimize the potential for clashes, use qualified names as keys.
Retrieve a global symbol. Similar to |For|, but using a separate registry that is not accessible by (and cannot clash with) JavaScript code.
|
static |
Create a symbol. If description is not empty, it will be used as the description.