Index: src/api.cc |
=================================================================== |
--- src/api.cc (revision 13939) |
+++ src/api.cc (working copy) |
@@ -1876,7 +1876,8 @@ |
is_verbose_(false), |
can_continue_(true), |
capture_message_(true), |
- rethrow_(false) { |
+ rethrow_(false), |
+ has_terminated_(false) { |
isolate_->RegisterTryCatchHandler(this); |
} |
@@ -1904,6 +1905,11 @@ |
} |
+bool v8::TryCatch::HasTerminated() const { |
+ return has_terminated_; |
+} |
+ |
+ |
v8::Handle<v8::Value> v8::TryCatch::ReThrow() { |
if (!HasCaught()) return v8::Local<v8::Value>(); |
rethrow_ = true; |
@@ -5933,6 +5939,12 @@ |
} |
+void V8::CancelTerminateExecution(Isolate* isolate) { |
+ i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate); |
+ i_isolate->stack_guard()->CancelTerminateExecution(); |
+} |
+ |
+ |
Isolate* Isolate::GetCurrent() { |
i::Isolate* isolate = i::Isolate::UncheckedCurrent(); |
return reinterpret_cast<Isolate*>(isolate); |