v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::Isolate::DisallowJavascriptExecutionScope Class Reference

#include <v8-isolate.h>

Collaboration diagram for v8::Isolate::DisallowJavascriptExecutionScope:

Public Types

enum  OnFailure { CRASH_ON_FAILURE , THROW_ON_FAILURE , DUMP_ON_FAILURE }
 

Public Member Functions

 DisallowJavascriptExecutionScope (Isolate *isolate, OnFailure on_failure)
 
 ~DisallowJavascriptExecutionScope ()
 
 DisallowJavascriptExecutionScope (const DisallowJavascriptExecutionScope &)=delete
 
DisallowJavascriptExecutionScopeoperator= (const DisallowJavascriptExecutionScope &)=delete
 

Private Attributes

v8::Isolate *const v8_isolate_
 
const OnFailure on_failure_
 
bool was_execution_allowed_
 

Detailed Description

Assert that no Javascript code is invoked.

Definition at line 387 of file v8-isolate.h.

Member Enumeration Documentation

◆ OnFailure

Enumerator
CRASH_ON_FAILURE 
THROW_ON_FAILURE 
DUMP_ON_FAILURE 

Definition at line 389 of file v8-isolate.h.

Constructor & Destructor Documentation

◆ DisallowJavascriptExecutionScope() [1/2]

v8::Isolate::DisallowJavascriptExecutionScope::DisallowJavascriptExecutionScope ( Isolate * isolate,
OnFailure on_failure )

Definition at line 10173 of file api.cc.

◆ ~DisallowJavascriptExecutionScope()

v8::Isolate::DisallowJavascriptExecutionScope::~DisallowJavascriptExecutionScope ( )

Definition at line 10191 of file api.cc.

◆ DisallowJavascriptExecutionScope() [2/2]

v8::Isolate::DisallowJavascriptExecutionScope::DisallowJavascriptExecutionScope ( const DisallowJavascriptExecutionScope & )
delete

Member Function Documentation

◆ operator=()

DisallowJavascriptExecutionScope & v8::Isolate::DisallowJavascriptExecutionScope::operator= ( const DisallowJavascriptExecutionScope & )
delete

Member Data Documentation

◆ on_failure_

const OnFailure v8::Isolate::DisallowJavascriptExecutionScope::on_failure_
private

Definition at line 402 of file v8-isolate.h.

◆ v8_isolate_

v8::Isolate* const v8::Isolate::DisallowJavascriptExecutionScope::v8_isolate_
private

Definition at line 401 of file v8-isolate.h.

◆ was_execution_allowed_

bool v8::Isolate::DisallowJavascriptExecutionScope::was_execution_allowed_
private

Definition at line 403 of file v8-isolate.h.


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