Index: test/cctest/test-random.cc |
diff --git a/test/cctest/test-random.cc b/test/cctest/test-random.cc |
index 4227326a92cb275275ce076f558fa2af9f1068c6..44b7b9f86fa36d895aba17d5aa45363e6194e778 100644 |
--- a/test/cctest/test-random.cc |
+++ b/test/cctest/test-random.cc |
@@ -70,7 +70,7 @@ TEST(CrankshaftRandom) { |
v8::V8::Initialize(); |
// Skip test if crankshaft is disabled. |
if (!Isolate::Current()->use_crankshaft()) return; |
- v8::Isolate* v8_isolate = v8::Isolate::GetCurrent(); |
+ v8::Isolate* v8_isolate = CcTest::isolate(); |
v8::HandleScope scope(v8_isolate); |
v8::Context::Scope context_scope(v8::Context::New(v8_isolate)); |