| Index: test/cctest/test-api.cc
|
| diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc
|
| index 2bfdeabd42cd606a40e8242d120465dc0414a0ab..3ec4e1b10e38bd04742f7976c742ef61100a6c80 100644
|
| --- a/test/cctest/test-api.cc
|
| +++ b/test/cctest/test-api.cc
|
| @@ -11660,7 +11660,8 @@ static int GetGlobalObjectsCount() {
|
| i::HeapIterator it(CcTest::heap());
|
| for (i::HeapObject* object = it.next(); object != NULL; object = it.next())
|
| if (object->IsJSGlobalObject()) count++;
|
| - return count;
|
| + // Subtract one to compensate for the code stub context that is always present
|
| + return count - 1;
|
| }
|
|
|
|
|
|
|