diff --git a/common.gypi b/common.gypi index c56785cbadfa2d..04852d81103ef8 100644 --- a/common.gypi +++ b/common.gypi @@ -36,7 +36,7 @@ # Reset this number to 0 on major V8 upgrades. # Increment by one for each non-official patch applied to deps/v8. - 'v8_embedder_string': '-node.24', + 'v8_embedder_string': '-node.25', ##### V8 defaults for Node.js ##### diff --git a/deps/v8/src/api/api.cc b/deps/v8/src/api/api.cc index a06394e6c1cd09..d10da486e9c4df 100644 --- a/deps/v8/src/api/api.cc +++ b/deps/v8/src/api/api.cc @@ -2861,6 +2861,7 @@ MaybeLocal ScriptCompiler::CompileFunctionInternal( i_isolate, source->resource_name, source->resource_line_offset, source->resource_column_offset, source->source_map_url, source->host_defined_options, source->resource_options); + script_details.wrapped_arguments = arguments_list; std::unique_ptr cached_data; if (options == kConsumeCodeCache) { @@ -2873,8 +2874,8 @@ MaybeLocal ScriptCompiler::CompileFunctionInternal( i::Handle scoped_result; has_pending_exception = !i::Compiler::GetWrappedFunction( - Utils::OpenHandle(*source->source_string), arguments_list, context, - script_details, cached_data.get(), options, no_cache_reason) + Utils::OpenHandle(*source->source_string), context, script_details, + cached_data.get(), options, no_cache_reason) .ToHandle(&scoped_result); if (options == kConsumeCodeCache) { source->cached_data->rejected = cached_data->rejected(); diff --git a/deps/v8/src/codegen/compilation-cache.cc b/deps/v8/src/codegen/compilation-cache.cc index 72b36071b82406..6f6eabfc1342ae 100644 --- a/deps/v8/src/codegen/compilation-cache.cc +++ b/deps/v8/src/codegen/compilation-cache.cc @@ -190,8 +190,8 @@ void CompilationCacheScript::Put(Handle source, Handle function_info) { HandleScope scope(isolate()); Handle table = GetTable(); - table_ = *CompilationCacheTable::PutScript(table, source, function_info, - isolate()); + table_ = *CompilationCacheTable::PutScript(table, source, kNullMaybeHandle, + function_info, isolate()); } InfoCellPair CompilationCacheEval::Lookup(Handle source, diff --git a/deps/v8/src/codegen/compiler.cc b/deps/v8/src/codegen/compiler.cc index 31c5acceebc4f1..840b9f77f6d333 100644 --- a/deps/v8/src/codegen/compiler.cc +++ b/deps/v8/src/codegen/compiler.cc @@ -3255,14 +3255,13 @@ struct ScriptCompileTimerScope { } }; -Handle