Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index cf940c6e00bfaf4911ed377d728f234dcd668e40..5560cf49a18b80ea717260012af6c8c802de5637 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -58,11 +58,10 @@ |
namespace v8 { |
- |
-#define ON_BAILOUT(location, code) \ |
- if (IsDeadCheck(location)) { \ |
- code; \ |
- UNREACHABLE(); \ |
+#define ON_BAILOUT(location, code) \ |
+ if (IsDeadCheck(location) || v8::V8::IsExecutionTerminating()) { \ |
+ code; \ |
+ UNREACHABLE(); \ |
} |