Index: src/isolate.h |
diff --git a/src/isolate.h b/src/isolate.h |
index 2ea9b80b69c975046cf797106b7714469cc190cd..24d1bfb9576c55c1368469607f6423ba26f2afd0 100644 |
--- a/src/isolate.h |
+++ b/src/isolate.h |
@@ -116,6 +116,13 @@ typedef ZoneList<Handle<Object> > ZoneObjectList; |
return value; \ |
} |
+#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()) |