Index: src/api.cc |
=================================================================== |
--- src/api.cc (revision 4029) |
+++ src/api.cc (working copy) |
@@ -3559,6 +3559,15 @@ |
} |
+bool V8::IsExecutionTerminating() { |
+ if (!i::V8::IsRunning()) return false; |
+ if (i::Top::has_scheduled_exception()) { |
+ return i::Top::scheduled_exception() == i::Heap::termination_exception(); |
+ } |
+ return false; |
+} |
+ |
+ |
String::Utf8Value::Utf8Value(v8::Handle<v8::Value> obj) { |
EnsureInitialized("v8::String::Utf8Value::Utf8Value()"); |
if (obj.IsEmpty()) { |