Skip to content

Commit ecb78e6

Browse files
evanlucasgibfahn
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 dc24a78 commit ecb78e6

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
@@ -3989,7 +3989,7 @@ static void CheckIfAllowedInEnv(const char* exe, bool is_env,
39893989
"--trace-sync-io",
39903990
"--force-async-hooks-checks",
39913991
"--trace-events-enabled",
3992-
"--trace-events-categories",
3992+
"--trace-event-categories",
39933993
"--track-heap-objects",
39943994
"--zero-fill-buffers",
39953995
"--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)