Index: test/cctest/test-random.cc |
diff --git a/test/cctest/test-random.cc b/test/cctest/test-random.cc |
index 0a8594c04e1c72da47d37df64c9f306d69bf55b0..2f7ab7dd344ef954a1847f2e20d647655a70f417 100644 |
--- a/test/cctest/test-random.cc |
+++ b/test/cctest/test-random.cc |
@@ -69,7 +69,7 @@ void TestSeeds(Handle<JSFunction> fun, |
TEST(CrankshaftRandom) { |
v8::V8::Initialize(); |
// Skip test if crankshaft is disabled. |
- if (!V8::UseCrankshaft()) return; |
+ if (!Isolate::Current()->use_crankshaft()) return; |
v8::Isolate* isolate = v8::Isolate::GetCurrent(); |
v8::HandleScope scope(isolate); |
v8::Context::Scope context_scope(v8::Context::New(isolate)); |