Index: test/cctest/test-object-observe.cc |
diff --git a/test/cctest/test-object-observe.cc b/test/cctest/test-object-observe.cc |
index 76d05db0912094b83f9279504764eb813ad9097e..196636d5b17528c0e89404c7b9d98b962901941a 100644 |
--- a/test/cctest/test-object-observe.cc |
+++ b/test/cctest/test-object-observe.cc |
@@ -444,7 +444,7 @@ TEST(ObservationWeakMap) { |
CHECK_EQ(1, NumberOfElements(callbackInfoMap)); |
CHECK_EQ(1, NumberOfElements(objectInfoMap)); |
CHECK_EQ(1, NumberOfElements(notifierObjectInfoMap)); |
- HEAP->CollectAllGarbage(i::Heap::kAbortIncrementalMarkingMask); |
+ i_isolate->heap()->CollectAllGarbage(i::Heap::kAbortIncrementalMarkingMask); |
CHECK_EQ(0, NumberOfElements(callbackInfoMap)); |
CHECK_EQ(0, NumberOfElements(objectInfoMap)); |
CHECK_EQ(0, NumberOfElements(notifierObjectInfoMap)); |