diff --git a/src/node_contextify.cc b/src/node_contextify.cc index 8ea5eab35b173a..8d7ca43837d01f 100644 --- a/src/node_contextify.cc +++ b/src/node_contextify.cc @@ -1102,8 +1102,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(