V8 API Reference Guide for node.js v9.10.0 - v9.11.1
Public Member Functions | Static Public Member Functions | List of all members
v8::Private Class Reference

#include <v8.h>

Inheritance diagram for v8::Private:
Inheritance graph
[legend]
Collaboration diagram for v8::Private:
Collaboration graph
[legend]

Public Member Functions

Local< ValueName () const
 

Static Public Member Functions

static Local< PrivateNew (Isolate *isolate, Local< String > name=Local< String >())
 
static Local< PrivateForApi (Isolate *isolate, Local< String > name)
 

Detailed Description

A private symbol

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

Member Function Documentation

static Local<Private> v8::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".

Local<Value> v8::Private::Name ( ) const

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

static Local<Private> v8::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: