Skip to content

Commit 701dc9a

Browse files
committed
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 61d46dd commit 701dc9a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/node.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3578,7 +3578,7 @@ static void CheckIfAllowedInEnv(const char* exe, bool is_env,
35783578
"--trace-sync-io",
35793579
"--no-force-async-hooks-checks",
35803580
"--trace-events-enabled",
3581-
"--trace-events-categories",
3581+
"--trace-event-categories",
35823582
"--track-heap-objects",
35833583
"--zero-fill-buffers",
35843584
"--v8-pool-size",

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

Lines changed: 1 addition & 0 deletions
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)