Skip to content

Commit 1218263

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.
1 parent 1f5ee33 commit 1218263

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
@@ -3634,7 +3634,7 @@ static void CheckIfAllowedInEnv(const char* exe, bool is_env,
36343634
"--trace-sync-io",
36353635
"--no-force-async-hooks-checks",
36363636
"--trace-events-enabled",
3637-
"--trace-events-categories",
3637+
"--trace-event-categories",
36383638
"--track-heap-objects",
36393639
"--zero-fill-buffers",
36403640
"--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)