deps: patch V8 to fix Windows build

Signed-off-by: Joyee Cheung <joyeec9h3@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/65161
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Richard Lau <richard.lau@ibm.com>
This commit is contained in:
StefanStojanovic authored and Antoine du Hamel committed 2026-10-04 22:37:46 +02:00
1 parent a4c868738f
commit 38b9b32a3b
3 files changed
+6 -2

No files matched your search

+1 -1
View File
@@ -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.5',
'v8_embedder_string': '-node.6',
##### V8 defaults for Node.js #####
+4
View File
@@ -526,7 +526,11 @@ struct TagRange {
constexpr TagRange(Tag first, Tag last) : first(first), last(last) {
#ifdef V8_ENABLE_CHECKS
// This would typically be a DCHECK, but that's not available here.
#if V8_HAS_BUILTIN_UNREACHABLE
if (first > last) __builtin_unreachable(); // Invalid tag range.
#elif defined(_MSC_VER)
if (first > last) __assume(0); // Invalid tag range.
#endif
#endif
}
+1 -1
View File
@@ -323,7 +323,7 @@ std::unique_ptr<BackingStore> BackingStore::TryAllocateAndPartiallyCommitMemory(
// For accounting purposes, whether a GC was necessary.
bool did_retry = false;
auto gc_retry = [&](const std::function<bool()>& fn) {
auto gc_retry = [&](const auto& fn) {
if (fn()) return true;
// Collect garbage and retry.
did_retry = true;