Index: src/isolate.h |
diff --git a/src/isolate.h b/src/isolate.h |
index c044e1f5789b5a8ee01bf9749736301c490c7d65..4e5c7dbf51329605d5403453e9ace850216a1431 100644 |
--- a/src/isolate.h |
+++ b/src/isolate.h |
@@ -122,6 +122,13 @@ typedef ZoneList<Handle<Object> > ZoneObjectList; |
} \ |
} while (false) |
+#define CHECK_NOT_EMPTY_HANDLE(isolate, call) \ |
+ do { \ |
+ ASSERT(!(isolate)->has_pending_exception()); \ |
+ CHECK(!(call).is_null()); \ |
+ CHECK(!(isolate)->has_pending_exception()); \ |
+ } while (false) |
+ |
#define RETURN_IF_EMPTY_HANDLE(isolate, call) \ |
RETURN_IF_EMPTY_HANDLE_VALUE(isolate, call, Failure::Exception()) |