Index: test/cctest/test-deoptimization.cc |
diff --git a/test/cctest/test-deoptimization.cc b/test/cctest/test-deoptimization.cc |
index c9200edf0e49508b7ea53d8c1f77425f41d8912c..4b69612f5f2dca4b54b92bc137a4fb3a9dcc238f 100644 |
--- a/test/cctest/test-deoptimization.cc |
+++ b/test/cctest/test-deoptimization.cc |
@@ -235,8 +235,8 @@ TEST(DeoptimizeRecursive) { |
CHECK_EQ(11, env->Global()->Get(v8_str("calls"))->Int32Value()); |
CHECK_EQ(0, Deoptimizer::GetDeoptimizedCodeCount(CcTest::i_isolate())); |
- v8::Local<v8::Function> fun = |
- v8::Local<v8::Function>::Cast(env->Global()->Get(v8::String::New("f"))); |
+ v8::Local<v8::Function> fun = v8::Local<v8::Function>::Cast( |
+ env->Global()->Get(v8::String::NewFromUtf8(CcTest::isolate(), "f"))); |
CHECK(!fun.IsEmpty()); |
} |