Skip to content

Commit 1304ff2

Browse files
committed
test: correct conditional secure heap flags test
xref: nodejs/node#60385
1 parent 6a4e4e3 commit 1304ff2

2 files changed

Lines changed: 34 additions & 0 deletions

File tree

patches/node/.patches

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,4 @@ fix_ensure_traverseparent_bails_on_resource_path_exit.patch
5656
src_handle_der_decoding_errors_from_system_certificates.patch
5757
remove_obsolete_noarraybufferzerofillscope.patch
5858
src_prepare_for_v8_sandboxing.patch
59+
test_correct_conditional_secure_heap_flags_test.patch
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2+
From: Shelley Vohr <[email protected]>
3+
Date: Tue, 4 Nov 2025 21:20:26 +0100
4+
Subject: test: correct conditional secure heap flags test
5+
6+
PR-URL: https://github.com/nodejs/node/pull/60385
7+
Reviewed-By: Colin Ihrig <[email protected]>
8+
Reviewed-By: Luigi Pinca <[email protected]>
9+
(cherry picked from commit 53c4a39fec941e04150554fdd3e654b48f2e1b31)
10+
11+
diff --git a/test/parallel/test-process-env-allowed-flags-are-documented.js b/test/parallel/test-process-env-allowed-flags-are-documented.js
12+
index afd43cfffe638f4f084f1c36949068e7239eadc3..c70e073bab888c349e8f5c691f5679a3796c896c 100644
13+
--- a/test/parallel/test-process-env-allowed-flags-are-documented.js
14+
+++ b/test/parallel/test-process-env-allowed-flags-are-documented.js
15+
@@ -49,6 +49,8 @@ if (!hasOpenSSL3) {
16+
documented.delete('--openssl-shared-config');
17+
}
18+
19+
+const isV8Sandboxed = process.config.variables.v8_enable_sandbox;
20+
+
21+
// Filter out options that are conditionally present.
22+
const conditionalOpts = [
23+
{
24+
@@ -74,6 +76,9 @@ const conditionalOpts = [
25+
}, {
26+
include: process.features.inspector,
27+
filter: (opt) => opt.startsWith('--inspect') || opt === '--debug-port'
28+
+ }, {
29+
+ include: !isV8Sandboxed,
30+
+ filter: (opt) => ['--secure-heap', '--secure-heap-min'].includes(opt)
31+
},
32+
];
33+
documented.forEach((opt) => {

0 commit comments

Comments
 (0)