Skip to content

Commit 4b1685f

Browse files
committed
src: do not pass code to ScriptCompiler::CreateCodeCacheForFunction
This is unnecessary, deprecated, and removed in V8 7.0. PR-URL: #22596 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Anatoli Papirovski <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
1 parent acaa918 commit 4b1685f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/node_contextify.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1064,8 +1064,8 @@ void ContextifyContext::CompileFunction(
10641064
}
10651065

10661066
if (produce_cached_data) {
1067-
const std::unique_ptr<ScriptCompiler::CachedData>
1068-
cached_data(ScriptCompiler::CreateCodeCacheForFunction(fun, code));
1067+
const std::unique_ptr<ScriptCompiler::CachedData> cached_data(
1068+
ScriptCompiler::CreateCodeCacheForFunction(fun));
10691069
bool cached_data_produced = cached_data != nullptr;
10701070
if (cached_data_produced) {
10711071
MaybeLocal<Object> buf = Buffer::Copy(

0 commit comments

Comments
 (0)