Index: src/full-codegen/full-codegen.cc |
diff --git a/src/full-codegen/full-codegen.cc b/src/full-codegen/full-codegen.cc |
index 9b90fb684470331a0a27e696b17e41c37fff2825..008be18e363ecb52a8e36716f25c62c9484543a9 100644 |
--- a/src/full-codegen/full-codegen.cc |
+++ b/src/full-codegen/full-codegen.cc |
@@ -1363,9 +1363,9 @@ void FullCodeGenerator::VisitNativeFunctionLiteral( |
DCHECK(!fun_template.IsEmpty()); |
// Instantiate the function and create a shared function info from it. |
- Handle<JSFunction> fun = Utils::OpenHandle( |
+ Handle<JSFunction> fun = Handle<JSFunction>::cast(Utils::OpenHandle( |
*fun_template->GetFunction(v8_isolate->GetCurrentContext()) |
- .ToLocalChecked()); |
+ .ToLocalChecked())); |
const int literals = fun->NumberOfLiterals(); |
Handle<Code> code = Handle<Code>(fun->shared()->code()); |
Handle<Code> construct_stub = Handle<Code>(fun->shared()->construct_stub()); |