Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index 64a003e049506ef8f54245fe83f72510ff04be89..a12c560a429cdb4b8dd17807d1a72c0523d01e91 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -11283,7 +11283,7 @@ THREADED_TEST(LockUnlockLock) { |
static int GetGlobalObjectsCount() { |
i::Isolate::Current()->heap()->EnsureHeapIsIterable(); |
int count = 0; |
- i::HeapIterator it; |
+ i::HeapIterator it(HEAP); |
for (i::HeapObject* object = it.next(); object != NULL; object = it.next()) |
if (object->IsJSGlobalObject()) count++; |
return count; |