v8.h | v8.h | |||
---|---|---|---|---|
skipping to change at line 4020 | skipping to change at line 4020 | |||
Scope& operator=(const Scope&); | Scope& operator=(const Scope&); | |||
}; | }; | |||
/** | /** | |||
* Assert that no Javascript code is invoked. | * Assert that no Javascript code is invoked. | |||
*/ | */ | |||
class DisallowJavascriptExecutionScope { | class DisallowJavascriptExecutionScope { | |||
public: | public: | |||
enum OnFailure { CRASH_ON_FAILURE, THROW_ON_FAILURE }; | enum OnFailure { CRASH_ON_FAILURE, THROW_ON_FAILURE }; | |||
explicit DisallowJavascriptExecutionScope(Isolate* isolate, | DisallowJavascriptExecutionScope(Isolate* isolate, OnFailure on_failure | |||
OnFailure on_failure); | ); | |||
~DisallowJavascriptExecutionScope(); | ~DisallowJavascriptExecutionScope(); | |||
private: | private: | |||
bool on_failure_; | bool on_failure_; | |||
void* internal_; | void* internal_; | |||
// Prevent copying of Scope objects. | // Prevent copying of Scope objects. | |||
DisallowJavascriptExecutionScope(const DisallowJavascriptExecutionScope &); | DisallowJavascriptExecutionScope(const DisallowJavascriptExecutionScope &); | |||
DisallowJavascriptExecutionScope& operator=( | DisallowJavascriptExecutionScope& operator=( | |||
const DisallowJavascriptExecutionScope&); | const DisallowJavascriptExecutionScope&); | |||
End of changes. 1 change blocks. | ||||
2 lines changed or deleted | 2 lines changed or added | |||