v8.h   v8.h 
skipping to change at line 3999 skipping to change at line 3999
Isolate* const isolate_; Isolate* const isolate_;
// Prevent copying of Scope objects. // Prevent copying of Scope objects.
Scope(const Scope&); Scope(const Scope&);
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 V8_EXPORT DisallowJavascriptExecutionScope {
public: public:
enum OnFailure { CRASH_ON_FAILURE, THROW_ON_FAILURE }; enum OnFailure { CRASH_ON_FAILURE, THROW_ON_FAILURE };
DisallowJavascriptExecutionScope(Isolate* isolate, OnFailure on_failure ); DisallowJavascriptExecutionScope(Isolate* isolate, 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&);
}; };
/** /**
* Introduce exception to DisallowJavascriptExecutionScope. * Introduce exception to DisallowJavascriptExecutionScope.
*/ */
class AllowJavascriptExecutionScope { class V8_EXPORT AllowJavascriptExecutionScope {
public: public:
explicit AllowJavascriptExecutionScope(Isolate* isolate); explicit AllowJavascriptExecutionScope(Isolate* isolate);
~AllowJavascriptExecutionScope(); ~AllowJavascriptExecutionScope();
private: private:
void* internal_throws_; void* internal_throws_;
void* internal_assert_; void* internal_assert_;
// Prevent copying of Scope objects. // Prevent copying of Scope objects.
AllowJavascriptExecutionScope(const AllowJavascriptExecutionScope&); AllowJavascriptExecutionScope(const AllowJavascriptExecutionScope&);
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/