diff --git a/src/node_contextify.cc b/src/node_contextify.cc index 070c6bab604319..92e2ed9429d59a 100644 --- a/src/node_contextify.cc +++ b/src/node_contextify.cc @@ -1103,8 +1103,8 @@ void ContextifyContext::CompileFunction( } if (produce_cached_data) { - const std::unique_ptr - cached_data(ScriptCompiler::CreateCodeCacheForFunction(fun, code)); + const std::unique_ptr cached_data( + ScriptCompiler::CreateCodeCacheForFunction(fun)); bool cached_data_produced = cached_data != nullptr; if (cached_data_produced) { MaybeLocal buf = Buffer::Copy(