Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index f6bee090816cc2e40677bba6665f0e33d9882d51..8a25432a68a88c1197baadefa430f8a585b8b30c 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -11861,9 +11861,10 @@ THREADED_TEST(ExternalAllocatedMemory) { |
v8::Persistent<Context> env(Context::New()); |
CHECK(!env.IsEmpty()); |
const intptr_t kSize = 1024*1024; |
- CHECK_EQ(cast(v8::V8::AdjustAmountOfExternalAllocatedMemory(kSize)), |
+ v8::Isolate* isolate = env->GetIsolate(); |
+ CHECK_EQ(cast(isolate->AdjustAmountOfExternalAllocatedMemory(kSize)), |
cast(kSize)); |
- CHECK_EQ(cast(v8::V8::AdjustAmountOfExternalAllocatedMemory(-kSize)), |
+ CHECK_EQ(cast(isolate->AdjustAmountOfExternalAllocatedMemory(-kSize)), |
cast(0)); |
} |