Index: test/cctest/compiler/test-run-jscalls.cc |
diff --git a/test/cctest/compiler/test-run-jscalls.cc b/test/cctest/compiler/test-run-jscalls.cc |
index 9c572523bcf512581cac0b619caf47d618b103bc..a7ceccd3e2aecc03fbefd28feb18e84031ef6b2c 100644 |
--- a/test/cctest/compiler/test-run-jscalls.cc |
+++ b/test/cctest/compiler/test-run-jscalls.cc |
@@ -215,7 +215,7 @@ TEST(ContextLoadedFromActivation) { |
i::Handle<i::JSFunction> jsfun = Handle<JSFunction>::cast(ofun); |
jsfun->set_code(T.function->code()); |
jsfun->set_shared(T.function->shared()); |
- context->Global()->Set(v8_str("foo"), v8::Utils::FunctionToLocal(jsfun)); |
+ context->Global()->Set(v8_str("foo"), v8::Utils::CallableToLocal(jsfun)); |
CompileRun("var x = 24;"); |
ExpectInt32("foo();", 24); |
} |
@@ -237,7 +237,7 @@ TEST(BuiltinLoadedFromActivation) { |
i::Handle<i::JSFunction> jsfun = Handle<JSFunction>::cast(ofun); |
jsfun->set_code(T.function->code()); |
jsfun->set_shared(T.function->shared()); |
- context->Global()->Set(v8_str("foo"), v8::Utils::FunctionToLocal(jsfun)); |
+ context->Global()->Set(v8_str("foo"), v8::Utils::CallableToLocal(jsfun)); |
CompileRun("var x = 24;"); |
ExpectObject("foo()", context->Global()); |
} |