Index: test/cctest/test-random.cc |
diff --git a/test/cctest/test-random.cc b/test/cctest/test-random.cc |
index 32b626e8564975d16d593201ab5f94e836e99e5f..9394fc95135c92e6107daf6f7f9e5da8ddf8f3c2 100644 |
--- a/test/cctest/test-random.cc |
+++ b/test/cctest/test-random.cc |
@@ -73,7 +73,7 @@ TEST(CrankshaftRandom) { |
if (env.IsEmpty()) env = v8::Context::New(); |
// Skip test if crankshaft is disabled. |
if (!V8::UseCrankshaft()) return; |
- v8::HandleScope scope; |
+ v8::HandleScope scope(env->GetIsolate()); |
env->Enter(); |
Handle<Context> context(Isolate::Current()->context()); |