From 97a6aa9b202df41537c7c4fca1d3332be9046f1c 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 fd2c4d0bd11..d4703c1cf05 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`