| Index: test/cctest/test-api.cc
|
| diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc
|
| index 2ff92ea8c4d4d9c5ec9bb6ce477e737e3a7a1dd1..f473f5ccb2b64d4d3be0cad4817077bcf493bd57 100644
|
| --- a/test/cctest/test-api.cc
|
| +++ b/test/cctest/test-api.cc
|
| @@ -737,14 +737,13 @@ TEST(MakingExternalUnalignedAsciiString) {
|
| CcTest::heap()->CollectGarbage(i::NEW_SPACE); // in old gen now
|
|
|
| // Turn into external string with unaligned resource data.
|
| - int dispose_count = 0;
|
| const char* c_cons = "_abcdefghijklmnopqrstuvwxyz";
|
| bool success = cons->MakeExternal(
|
| - new TestAsciiResource(i::StrDup(c_cons), &dispose_count, 1));
|
| + new TestAsciiResource(i::StrDup(c_cons), NULL, 1));
|
| CHECK(success);
|
| const char* c_slice = "_bcdefghijklmnopqrstuvwxyz";
|
| success = slice->MakeExternal(
|
| - new TestAsciiResource(i::StrDup(c_slice), &dispose_count, 1));
|
| + new TestAsciiResource(i::StrDup(c_slice), NULL, 1));
|
| CHECK(success);
|
|
|
| // Trigger GCs and force evacuation.
|
|
|