|
| 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