From c5725f84cb0b5b5f04159da5d3801a894ae73459 Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Wed, 25 Oct 2017 19:51:58 +0200 Subject: [PATCH] cli: add --stack-trace-limit to NODE_OPTIONS I decided that it would make a lot of sense for me to set `NODE_OPTIONS=--stack-trace-limit=100` on my development machine. This code allows me to do that. :) --- doc/api/cli.md | 1 + src/node.cc | 1 + test/parallel/test-cli-node-options.js | 20 +++++++++++++++----- 3 files changed, 17 insertions(+), 5 deletions(-) diff --git a/doc/api/cli.md b/doc/api/cli.md index b6d778f5ac484d..b5c52ebfd304be 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -471,6 +471,7 @@ Node options that are allowed are: V8 options that are allowed are: - `--abort-on-uncaught-exception` - `--max-old-space-size` +- `--stack-trace-limit` ### `NODE_PENDING_DEPRECATION=1`