Index: test/cctest/test-cpu-profiler.cc |
diff --git a/test/cctest/test-cpu-profiler.cc b/test/cctest/test-cpu-profiler.cc |
index 114a8e725f19e46e38f7f90f9eb83763a4e77e0e..2236f307e376ee7deea6245289a376c445788902 100644 |
--- a/test/cctest/test-cpu-profiler.cc |
+++ b/test/cctest/test-cpu-profiler.cc |
@@ -55,7 +55,7 @@ static v8::Persistent<v8::Context> env; |
static void InitializeVM() { |
if (env.IsEmpty()) env = v8::Context::New(); |
- v8::HandleScope scope; |
+ v8::HandleScope scope(env->GetIsolate()); |
env->Enter(); |
} |
@@ -326,8 +326,8 @@ TEST(DeleteAllCpuProfiles) { |
TEST(DeleteCpuProfile) { |
- v8::HandleScope scope; |
LocalContext env; |
+ v8::HandleScope scope(env->GetIsolate()); |
CHECK_EQ(0, v8::CpuProfiler::GetProfilesCount()); |
v8::Local<v8::String> name1 = v8::String::New("1"); |
@@ -372,8 +372,8 @@ TEST(DeleteCpuProfile) { |
TEST(DeleteCpuProfileDifferentTokens) { |
- v8::HandleScope scope; |
LocalContext env; |
+ v8::HandleScope scope(env->GetIsolate()); |
CHECK_EQ(0, v8::CpuProfiler::GetProfilesCount()); |
v8::Local<v8::String> name1 = v8::String::New("1"); |