Index: src/isolate.h |
diff --git a/src/isolate.h b/src/isolate.h |
index b3cfb4327db2085b1f0934de8240e9f101de2e5e..8d0575c52d7909063209ed24b37692954092200a 100644 |
--- a/src/isolate.h |
+++ b/src/isolate.h |
@@ -615,7 +615,7 @@ class Isolate { |
bool IsExternallyCaught(); |
bool is_catchable_by_javascript(MaybeObject* exception) { |
- return (exception != Failure::OutOfMemoryException()) && |
+ return (!exception->IsOutOfMemory()) && |
(exception != heap()->termination_exception()); |
} |