Index: runtime/vm/longjump.cc |
=================================================================== |
--- runtime/vm/longjump.cc (revision 33332) |
+++ runtime/vm/longjump.cc (working copy) |
@@ -44,6 +44,13 @@ |
Isolate* isolate = Isolate::Current(); |
+#if defined(DEBUG) |
+#define CHECK_REUSABLE_HANDLE(name) \ |
+ ASSERT(!isolate->reusable_##name##_handle_scope_active()); |
+REUSABLE_HANDLE_LIST(CHECK_REUSABLE_HANDLE) |
+#undef CHECK_REUSABLE_HANDLE |
+#endif // defined(DEBUG) |
+ |
// Remember the error in the sticky error of this isolate. |
isolate->object_store()->set_sticky_error(error); |