diff --git a/patches/node/.patches b/patches/node/.patches index c9c20ec213..6faf048199 100644 --- a/patches/node/.patches +++ b/patches/node/.patches @@ -56,3 +56,4 @@ fix_ensure_traverseparent_bails_on_resource_path_exit.patch src_handle_der_decoding_errors_from_system_certificates.patch remove_obsolete_noarraybufferzerofillscope.patch src_prepare_for_v8_sandboxing.patch +test_correct_conditional_secure_heap_flags_test.patch diff --git a/patches/node/test_correct_conditional_secure_heap_flags_test.patch b/patches/node/test_correct_conditional_secure_heap_flags_test.patch new file mode 100644 index 0000000000..c51092904a --- /dev/null +++ b/patches/node/test_correct_conditional_secure_heap_flags_test.patch @@ -0,0 +1,33 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Shelley Vohr +Date: Tue, 4 Nov 2025 21:20:26 +0100 +Subject: test: correct conditional secure heap flags test + +PR-URL: https://github.com/nodejs/node/pull/60385 +Reviewed-By: Colin Ihrig +Reviewed-By: Luigi Pinca +(cherry picked from commit 53c4a39fec941e04150554fdd3e654b48f2e1b31) + +diff --git a/test/parallel/test-process-env-allowed-flags-are-documented.js b/test/parallel/test-process-env-allowed-flags-are-documented.js +index afd43cfffe638f4f084f1c36949068e7239eadc3..c70e073bab888c349e8f5c691f5679a3796c896c 100644 +--- a/test/parallel/test-process-env-allowed-flags-are-documented.js ++++ b/test/parallel/test-process-env-allowed-flags-are-documented.js +@@ -49,6 +49,8 @@ if (!hasOpenSSL3) { + documented.delete('--openssl-shared-config'); + } + ++const isV8Sandboxed = process.config.variables.v8_enable_sandbox; ++ + // Filter out options that are conditionally present. + const conditionalOpts = [ + { +@@ -74,6 +76,9 @@ const conditionalOpts = [ + }, { + include: process.features.inspector, + filter: (opt) => opt.startsWith('--inspect') || opt === '--debug-port' ++ }, { ++ include: !isV8Sandboxed, ++ filter: (opt) => ['--secure-heap', '--secure-heap-min'].includes(opt) + }, + ]; + documented.forEach((opt) => {