Index: test/cctest/test-debug.cc |
=================================================================== |
--- test/cctest/test-debug.cc (revision 3683) |
+++ test/cctest/test-debug.cc (working copy) |
@@ -413,9 +413,7 @@ |
// Iterate the head and check that there are no debugger related objects left. |
HeapIterator iterator; |
- while (iterator.has_next()) { |
- HeapObject* obj = iterator.next(); |
- CHECK(obj != NULL); |
+ for (HeapObject* obj = iterator.next(); obj != NULL; obj = iterator.next()) { |
CHECK(!obj->IsDebugInfo()); |
CHECK(!obj->IsBreakPointInfo()); |