mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
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:
@@ -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",
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user