From a7c0cb87be85d2b90f1916c08ba2528e2691acbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Thu, 30 Aug 2018 08:46:06 +0200 Subject: [PATCH] src: do not pass code to ScriptCompiler::CreateCodeCacheForFunction This is unnecessary, deprecated, and removed in V8 7.0. PR-URL: https://github.com/nodejs/node/pull/22596 Reviewed-By: Colin Ihrig Reviewed-By: Gus Caplan Reviewed-By: Anatoli Papirovski Reviewed-By: Ruben Bridgewater Reviewed-By: Anna Henningsen --- src/node_contextify.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(