diff --git a/common.gypi b/common.gypi index 73f2702bbebc..9cc324610fdd 100644 --- a/common.gypi +++ b/common.gypi @@ -44,7 +44,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.22', + 'v8_embedder_string': '-node.23', ##### V8 defaults for Node.js ##### diff --git a/deps/v8/src/profiler/sampling-heap-profiler.cc b/deps/v8/src/profiler/sampling-heap-profiler.cc index 7ea26d4064f8..7842066780ec 100644 --- a/deps/v8/src/profiler/sampling-heap-profiler.cc +++ b/deps/v8/src/profiler/sampling-heap-profiler.cc @@ -243,7 +243,7 @@ v8::AllocationProfile::Node* SamplingHeapProfiler::TranslateAllocationNode( // a GC kicks in during the tree retrieval. node->pinned_ = true; Local script_name = - ToApiHandle(isolate_->factory()->InternalizeUtf8String("")); + ToApiHandle(isolate_->factory()->empty_string()); int line = v8::AllocationProfile::kNoLineNumberInfo; int column = v8::AllocationProfile::kNoColumnNumberInfo; std::vector allocations; @@ -252,10 +252,15 @@ v8::AllocationProfile::Node* SamplingHeapProfiler::TranslateAllocationNode( auto script_iterator = scripts.find(node->script_id_); if (script_iterator != scripts.end()) { DirectHandle