Index: test/cctest/compiler/function-tester.h |
diff --git a/test/cctest/compiler/function-tester.h b/test/cctest/compiler/function-tester.h |
index 48f0b942f6d742e57f964d367a67275317c16382..71a9139db8dae8a3f2b163f97318d8ec9033a0e1 100644 |
--- a/test/cctest/compiler/function-tester.h |
+++ b/test/cctest/compiler/function-tester.h |
@@ -121,8 +121,8 @@ class FunctionTester : public InitializedHandleScope { |
} |
Handle<JSFunction> NewFunction(const char* source) { |
- return v8::Utils::OpenHandle( |
- *v8::Local<v8::Function>::Cast(CompileRun(source))); |
+ return Handle<JSFunction>::cast(v8::Utils::OpenHandle( |
+ *v8::Local<v8::Function>::Cast(CompileRun(source)))); |
} |
Handle<JSObject> NewObject(const char* source) { |