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: https://github.com/nodejs/node/pull/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>
This commit is contained in:
Evan Lucas
2017-11-28 05:46:35 -06:00
parent 61d46dd7e0
commit 701dc9a86e
2 changed files with 2 additions and 1 deletions

View File

@@ -3578,7 +3578,7 @@ static void CheckIfAllowedInEnv(const char* exe, bool is_env,
"--trace-sync-io",
"--no-force-async-hooks-checks",
"--trace-events-enabled",
"--trace-events-categories",
"--trace-event-categories",
"--track-heap-objects",
"--zero-fill-buffers",
"--v8-pool-size",

View File

@@ -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');