GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: correct conditional secure heap flags test · nodejs/node@bc8f7db

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/parallel
    • test-process-env-allowed-flags-are-documented.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/parallel/test-process-env-allowed-flags-are-documented.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-process-env-allowed-flags-are-documented.js
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ if (!hasOpenSSL3) {
4949
documented.delete('--openssl-shared-config');
5050
}
5151

52+
const isV8Sandboxed = process.config.variables.v8_enable_sandbox;
53+
5254
// Filter out options that are conditionally present.
5355
const conditionalOpts = [
5456
{
@@ -74,6 +76,9 @@ const conditionalOpts = [
7476
}, {
7577
include: process.features.inspector,
7678
filter: (opt) => opt.startsWith('--inspect') || opt === '--debug-port'
79+
}, {
80+
include: !isV8Sandboxed,
81+
filter: (opt) => ['--secure-heap', '--secure-heap-min'].includes(opt)
7782
},
7883
];
7984
documented.forEach((opt) => {

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.