Chromium Code Reviews| Index: test/cctest/test-cpu-profiler.cc |
| diff --git a/test/cctest/test-cpu-profiler.cc b/test/cctest/test-cpu-profiler.cc |
| index 2184122717770be2eb0203fd9933394828e7f0e5..38e90623ddca418e9885ed129b85236892db01e1 100644 |
| --- a/test/cctest/test-cpu-profiler.cc |
| +++ b/test/cctest/test-cpu-profiler.cc |
| @@ -521,7 +521,9 @@ TEST(CollectCpuProfile) { |
| LocalContext env; |
| v8::HandleScope scope(env->GetIsolate()); |
| - v8::Script::Compile(v8::String::New(cpu_profiler_test_source))->Run(); |
| + v8::Handle<v8::Script> script = |
|
yurys
2013/06/26 09:34:47
Revert this?
|
| + v8::Script::Compile(v8::String::New(cpu_profiler_test_source)); |
| + script->Run(); |
| v8::Local<v8::Function> function = v8::Local<v8::Function>::Cast( |
| env->Global()->Get(v8::String::New("start"))); |