v8 10.2.154 (node 18.16.0)
V8 is Google's open source JavaScript engine
Loading...
Searching...
No Matches
EscapableHandleScope Class Reference

#include <v8-local-handle.h>

Inheritance diagram for EscapableHandleScope:
Collaboration diagram for EscapableHandleScope:

Public Member Functions

 EscapableHandleScope (Isolate *isolate)
 
V8_INLINE ~EscapableHandleScope ()=default
 
template<class T >
V8_INLINE Local< T > Escape (Local< T > value)
 
template<class T >
V8_INLINE MaybeLocal< T > EscapeMaybe (MaybeLocal< T > value)
 
 EscapableHandleScope (const EscapableHandleScope &)=delete
 
void operator= (const EscapableHandleScope &)=delete
 
- Public Member Functions inherited from HandleScope
 HandleScope (Isolate *isolate)
 
 ~HandleScope ()
 
V8_INLINE IsolateGetIsolate () const
 
 HandleScope (const HandleScope &)=delete
 
void operator= (const HandleScope &)=delete
 

Additional Inherited Members

- Static Public Member Functions inherited from HandleScope
static int NumberOfHandles (Isolate *isolate)
 
- Protected Member Functions inherited from HandleScope
V8_INLINE HandleScope ()=default
 
void Initialize (Isolate *isolate)
 
- Static Protected Member Functions inherited from HandleScope
static internal::AddressCreateHandle (internal::Isolate *isolate, internal::Address value)
 

Detailed Description

A HandleScope which first allocates a handle in the current scope which will be later filled with the escape value.

Definition at line 391 of file v8-local-handle.h.

Constructor & Destructor Documentation

◆ EscapableHandleScope() [1/2]

EscapableHandleScope ( Isolate isolate)
explicit

◆ ~EscapableHandleScope()

◆ EscapableHandleScope() [2/2]

Member Function Documentation

◆ Escape()

template<class T >
V8_INLINE Local< T > Escape ( Local< T >  value)
inline

Pushes the value into the previous scope and returns a handle to it. Cannot be called twice.

Definition at line 401 of file v8-local-handle.h.

◆ EscapeMaybe()

template<class T >
V8_INLINE MaybeLocal< T > EscapeMaybe ( MaybeLocal< T >  value)
inline

Definition at line 408 of file v8-local-handle.h.

References MaybeLocal< T >::FromMaybe().

◆ operator=()

void operator= ( const EscapableHandleScope )
delete

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