v8  4.5.103 (node 4.8.7)
V8 is Google's open source JavaScript engine
NativeWeakMap Class Reference

#include <v8.h>

Inheritance diagram for NativeWeakMap:
Collaboration diagram for NativeWeakMap:

Public Member Functions

void Set (Local< Value > key, Local< Value > value)
 
Local< ValueGet (Local< Value > key)
 
bool Has (Local< Value > key)
 
bool Delete (Local< Value > key)
 

Static Public Member Functions

static Local< NativeWeakMapNew (Isolate *isolate)
 

Detailed Description

A map whose keys are referenced weakly. It is similar to JavaScript WeakMap but can be created without entering a v8::Context and hence shouldn't escape to JavaScript.

Definition at line 1670 of file v8.h.

Member Function Documentation

◆ Delete()

bool Delete ( Local< Value key)

◆ Get()

Local<Value> Get ( Local< Value key)

◆ Has()

bool Has ( Local< Value key)

◆ New()

static Local<NativeWeakMap> New ( Isolate isolate)
static

◆ Set()

void Set ( Local< Value key,
Local< Value value 
)

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