Skip to content

Commit 08feb89

Browse files
feat: add v26.4.0 patch (#194)
## Node.js Patch Update to v26.4.0 This PR updates the Node.js patch from v26.3.1 to v26.4.0. ### Resolution ✅ The existing v26.3.1 patch applied cleanly to v26.4.0 — no AI resolution was needed. ℹ️ The patch was updated to match the v26.4.0 source tree. ✅ Generated patch re-applies to a pristine v26.4.0 tree (build still validates semantics). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Daniel Lando <daniel.sorridi@gmail.com>
1 parent 660b2e2 commit 08feb89

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ index 406f1d0ba5..fb8eea420d 100644
1414
static const char* GetVersion();
1515

1616
diff --git node/deps/v8/src/api/api.cc node/deps/v8/src/api/api.cc
17-
index 9ef4e3b4a6..34cabe171c 100644
17+
index bdb9f715de..bed9acd14b 100644
1818
--- node/deps/v8/src/api/api.cc
1919
+++ node/deps/v8/src/api/api.cc
2020
@@ -469,6 +469,28 @@ void V8::SetFlagsFromCommandLine(int* argc, char** argv, bool remove_flags) {
@@ -432,10 +432,10 @@ index 0000000000..a697294fdf
432432
+ }());
433433
+}());
434434
diff --git node/lib/internal/modules/cjs/loader.js node/lib/internal/modules/cjs/loader.js
435-
index 65a35299eb..025eb1c92f 100644
435+
index a97a5f27a2..cf6c9d1a29 100644
436436
--- node/lib/internal/modules/cjs/loader.js
437437
+++ node/lib/internal/modules/cjs/loader.js
438-
@@ -267,12 +267,15 @@ function stat(filename) {
438+
@@ -272,12 +272,15 @@ function stat(filename) {
439439
// Guard against internal bugs where a non-string filename is passed in by mistake.
440440
assert(typeof filename === 'string');
441441

@@ -489,7 +489,7 @@ index 6c6bf0383b..25db3d9f43 100644
489489
__proto__: null,
490490
...result.data,
491491
diff --git node/lib/internal/process/pre_execution.js node/lib/internal/process/pre_execution.js
492-
index 076ae226f4..d3ba7b955c 100644
492+
index a9724f1e6b..943d6998d2 100644
493493
--- node/lib/internal/process/pre_execution.js
494494
+++ node/lib/internal/process/pre_execution.js
495495
@@ -42,7 +42,11 @@ const {
@@ -504,7 +504,7 @@ index 076ae226f4..d3ba7b955c 100644
504504
return prepareExecution({
505505
expandArgv1,
506506
initializeModules,
507-
@@ -281,7 +285,8 @@ function patchProcessObject(expandArgv1) {
507+
@@ -282,7 +286,8 @@ function patchProcessObject(expandArgv1) {
508508
let mainEntry;
509509
// If requested, update process.argv[1] to replace whatever the user provided with the resolved absolute file path of
510510
// the entry point.
@@ -514,7 +514,7 @@ index 076ae226f4..d3ba7b955c 100644
514514
// Expand process.argv[1] into a full path.
515515
const path = require('path');
516516
try {
517-
@@ -756,6 +761,7 @@ function loadPreloadModules() {
517+
@@ -766,6 +771,7 @@ function loadPreloadModules() {
518518
// For user code, we preload modules if `-r` is passed
519519
const preloadModules = getOptionValue('--require');
520520
if (preloadModules && preloadModules.length > 0) {
@@ -523,18 +523,18 @@ index 076ae226f4..d3ba7b955c 100644
523523
Module: {
524524
_preloadModules,
525525
diff --git node/lib/vm.js node/lib/vm.js
526-
index ae71080620..b05638de75 100644
526+
index 2c7446af60..95daf7caa1 100644
527527
--- node/lib/vm.js
528528
+++ node/lib/vm.js
529-
@@ -98,6 +98,7 @@ class Script extends ContextifyScript {
529+
@@ -99,6 +99,7 @@ class Script extends ContextifyScript {
530530
produceCachedData = false,
531531
importModuleDynamically,
532532
[kParsingContext]: parsingContext,
533533
+ sourceless = false,
534534
} = options;
535535

536536
validateString(filename, 'options.filename');
537-
@@ -121,7 +122,8 @@ class Script extends ContextifyScript {
537+
@@ -122,7 +123,8 @@ class Script extends ContextifyScript {
538538
cachedData,
539539
produceCachedData,
540540
parsingContext,
@@ -589,7 +589,7 @@ index 4ba019ddca..b30d716a41 100644
589589
}
590590

591591
diff --git node/src/node_contextify.cc node/src/node_contextify.cc
592-
index f319420ae0..6b38c3b5e9 100644
592+
index 40ed019a73..3b74ea28d5 100644
593593
--- node/src/node_contextify.cc
594594
+++ node/src/node_contextify.cc
595595
@@ -88,6 +88,7 @@ using v8::String;
@@ -783,7 +783,7 @@ index 3295121b87..bfe838b8c1 100644
783783
+ return adjacent(c, nargv);
784784
+}
785785
diff --git node/src/node_options.cc node/src/node_options.cc
786-
index 99c5a7dbe4..b0ae409120 100644
786+
index 769fabbfe8..8007dd3cdd 100644
787787
--- node/src/node_options.cc
788788
+++ node/src/node_options.cc
789789
@@ -466,6 +466,7 @@ void Parse(

patches/patches.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"v26.3.1": ["node.v26.3.1.cpp.patch"],
2+
"v26.4.0": ["node.v26.4.0.cpp.patch"],
33
"v24.18.0": ["node.v24.18.0.cpp.patch"],
44
"v22.23.1": ["node.v22.23.1.cpp.patch"],
55
"v20.20.2": ["node.v20.20.2.cpp.patch"],

0 commit comments

Comments
 (0)