Skip to content

Commit

Permalink
src: fix typo in NODE_OPTIONS whitelist
Browse files Browse the repository at this point in the history
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 <anna@addaleax.net>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Jon Moss <me@jonathanmoss.me>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information
evanlucas authored and gibfahn committed Dec 19, 2017
1 parent dc24a78 commit ecb78e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/node.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3989,7 +3989,7 @@ static void CheckIfAllowedInEnv(const char* exe, bool is_env,
"--trace-sync-io",
"--force-async-hooks-checks",
"--trace-events-enabled",
"--trace-events-categories",
"--trace-event-categories",
"--track-heap-objects",
"--zero-fill-buffers",
"--v8-pool-size",
Expand Down
1 change: 1 addition & 0 deletions test/parallel/test-cli-node-options.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ expect('--track-heap-objects', 'B\n');
expect('--throw-deprecation', 'B\n');
expect('--zero-fill-buffers', 'B\n');
expect('--v8-pool-size=10', 'B\n');
expect('--trace-event-categories node', 'B\n');

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

0 comments on commit ecb78e6

Please sign in to comment.