From 98b5d66629d55a3e0a1a3c4680dbbeba5922bcf2 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 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(