Skip to content

Commit

Permalink
src: --abort-on-uncaught-exception in NODE_OPTIONS
Browse files Browse the repository at this point in the history
Allow --abort-on-uncaught-exception in NODE_OPTIONS, its useful to
enable for post-mortem debugging.

PR-URL: #13932
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
sam-github authored and Fishrock123 committed Jul 19, 2017
1 parent 20c7b58 commit a4f67f9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/api/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,7 @@ Node options that are allowed are:
- `--zero-fill-buffers`

V8 options that are allowed are:
- `--abort-on-uncaught-exception`
- `--max_old_space_size`

### `NODE_PENDING_DEPRECATION=1`
Expand Down
1 change: 1 addition & 0 deletions src/node.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3763,6 +3763,7 @@ static void CheckIfAllowedInEnv(const char* exe, bool is_env,
"--icu-data-dir",

// V8 options
"--abort-on-uncaught-exception",
"--max_old_space_size",
};

Expand Down
1 change: 1 addition & 0 deletions test/parallel/test-cli-node-options.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ function disallow(opt) {

const printA = require.resolve('../fixtures/printA.js');

expect('--abort-on-uncaught-exception', 'B\n');
expect(`-r ${printA}`, 'A\nB\n');
expect('--no-deprecation', 'B\n');
expect('--no-warnings', 'B\n');
Expand Down

0 comments on commit a4f67f9

Please sign in to comment.