v8 12.4.254 (node 22.4.1)
V8 is Google's open source JavaScript engine
Loading...
Searching...
No Matches
Private Class Reference

#include <v8-object.h>

Inheritance diagram for Private:
Collaboration diagram for Private:

Public Member Functions

Local< ValueName () const
 
- Public Member Functions inherited from Data
bool IsValue () const
 
bool IsModule () const
 
bool IsFixedArray () const
 
bool IsPrivate () const
 
bool IsObjectTemplate () const
 
bool IsFunctionTemplate () const
 
bool IsContext () const
 

Static Public Member Functions

static Local< PrivateNew (Isolate *isolate, Local< String > name=Local< String >())
 
static Local< PrivateForApi (Isolate *isolate, Local< String > name)
 
static V8_INLINE PrivateCast (Data *data)
 

Detailed Description

A private symbol

This is an experimental feature. Use at your own risk.

Definition at line 29 of file v8-object.h.

Member Function Documentation

◆ Cast()

Private * Cast ( Data data)
static

Definition at line 808 of file v8-object.h.

◆ ForApi()

static Local< Private > ForApi ( Isolate isolate,
Local< String name 
)
static

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".

◆ Name()

Local< Value > Name ( ) const

Returns the print name string of the private symbol, or undefined if none.

◆ New()

static Local< Private > New ( Isolate isolate,
Local< String name = LocalString >() 
)
static

Create a private symbol. If name is not empty, it will be the description.


The documentation for this class was generated from the following file: