Index: test/cctest/test-heap.cc |
diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc |
index f3dfeca9fbb5be46b8a315f3e4b2d7f97083cdec..ac121e059fe9a313e921d656918281da96d105eb 100644 |
--- a/test/cctest/test-heap.cc |
+++ b/test/cctest/test-heap.cc |
@@ -4310,8 +4310,8 @@ TEST(WeakCell) { |
CHECK(weak_cell1->value()->IsFixedArray()); |
CHECK_EQ(*survivor, weak_cell2->value()); |
heap->CollectAllAvailableGarbage(); |
+ CHECK(weak_cell1->cleared()); |
CHECK_EQ(*survivor, weak_cell2->value()); |
- CHECK(weak_cell2->value()->IsFixedArray()); |
} |
@@ -4342,7 +4342,7 @@ TEST(WeakCellsWithIncrementalMarking) { |
heap->CollectAllGarbage(Heap::kNoGCFlags); |
CHECK_EQ(*survivor, weak_cells[0]->value()); |
for (int i = 1; i < N; i++) { |
- CHECK(weak_cells[i]->value()->IsUndefined()); |
+ CHECK(weak_cells[i]->cleared()); |
} |
} |