Skip to content

Commit a7c0cb8

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 82732ef commit a7c0cb8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/node_contextify.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -1102,8 +1102,8 @@ void ContextifyContext::CompileFunction(
11021102
}
11031103

11041104
if (produce_cached_data) {
1105-
const std::unique_ptr<ScriptCompiler::CachedData>
1106-
cached_data(ScriptCompiler::CreateCodeCacheForFunction(fun, code));
1105+
const std::unique_ptr<ScriptCompiler::CachedData> cached_data(
1106+
ScriptCompiler::CreateCodeCacheForFunction(fun));
11071107
bool cached_data_produced = cached_data != nullptr;
11081108
if (cached_data_produced) {
11091109
MaybeLocal<Object> buf = Buffer::Copy(

0 commit comments

Comments
 (0)