From 50913b168d4f828f350a22d108149fa275dd1dc2 Mon Sep 17 00:00:00 2001 From: Sam Roberts Date: Wed, 5 Jul 2017 14:25:55 -0700 Subject: [PATCH] src: whitelist v8 options with '_' or '-' V8 options allow either '_' or '-' to be used in options as a seperator, such as "--abort-on_uncaught-exception". Allow these case variations when used with NODE_OPTIONS. PR-URL: https://github.com/nodejs/node/pull/14093 Reviewed-By: Richard Lau Reviewed-By: Refael Ackermann Reviewed-By: James M Snell --- doc/api/cli.md | 2 +- src/node.cc | 33 ++++++++++++++++++++------ test/parallel/test-cli-node-options.js | 9 +++++-- 3 files changed, 34 insertions(+), 10 deletions(-) diff --git a/doc/api/cli.md b/doc/api/cli.md index 9339c372e049eb..a1976dbecf5739 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -466,7 +466,7 @@ Node options that are allowed are: V8 options that are allowed are: - `--abort-on-uncaught-exception` -- `--max_old_space_size` +- `--max-old-space-size` ### `NODE_PENDING_DEPRECATION=1`