Skip to content

Commit 98b5d66

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 8e18979 commit 98b5d66

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
@@ -1103,8 +1103,8 @@ void ContextifyContext::CompileFunction(
11031103
}
11041104

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

0 commit comments

Comments
 (0)