Skip to content

Commit 7f55f98

Browse files
evanlucasMylesBorins
authored andcommitted
src: fix typo in NODE_OPTIONS whitelist
The whitelist of allowed cli flags that can be passed in the NODE_OPTIONS environment variable had --trace-events-categories, but the cli flag is actually --trace-event-categories. PR-URL: #17369 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Jon Moss <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent 1cc6df2 commit 7f55f98

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/node.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -3939,7 +3939,7 @@ static void CheckIfAllowedInEnv(const char* exe, bool is_env,
39393939
"--trace-sync-io",
39403940
"--no-force-async-hooks-checks",
39413941
"--trace-events-enabled",
3942-
"--trace-events-categories",
3942+
"--trace-event-categories",
39433943
"--track-heap-objects",
39443944
"--zero-fill-buffers",
39453945
"--v8-pool-size",

test/parallel/test-cli-node-options.js

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ expect('--track-heap-objects', 'B\n');
2323
expect('--throw-deprecation', 'B\n');
2424
expect('--zero-fill-buffers', 'B\n');
2525
expect('--v8-pool-size=10', 'B\n');
26+
expect('--trace-event-categories node', 'B\n');
2627

2728
if (common.hasCrypto) {
2829
expect('--use-openssl-ca', 'B\n');

0 commit comments

Comments
 (0)