V8 Project
v8::Context::Scope Class Reference

Stack-allocated class which sets the execution context for all operations executed within a local scope. More...

#include <v8.h>

+ Collaboration diagram for v8::Context::Scope:

Public Member Functions

 Scope (Handle< Context > context)
 
 ~Scope ()
 

Private Attributes

Handle< Contextcontext_
 

Detailed Description

Stack-allocated class which sets the execution context for all operations executed within a local scope.

Definition at line 5579 of file v8.h.

Constructor & Destructor Documentation

◆ Scope()

v8::Context::Scope::Scope ( Handle< Context context)
inlineexplicit

Definition at line 5581 of file v8.h.

5581  : context_(context) {
5582  context_->Enter();
5583  }
Handle< Context > context_
Definition: v8.h:5587

◆ ~Scope()

v8::Context::Scope::~Scope ( )
inline

Definition at line 5584 of file v8.h.

5584 { context_->Exit(); }

Member Data Documentation

◆ context_

Handle<Context> v8::Context::Scope::context_
private

Definition at line 5587 of file v8.h.


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