Skip to content

Commit c45df83

Browse files
committedJul 5, 2017
src: --abort-on-uncaught-exception in NODE_OPTIONS
Allow --abort-on-uncaught-exception in NODE_OPTIONS, its useful to enable for post-mortem debugging. PR-URL: #13932 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 46d7cb8 commit c45df83

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed
 

‎doc/api/cli.md

+1
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,7 @@ Node options that are allowed are:
457457
- `--zero-fill-buffers`
458458

459459
V8 options that are allowed are:
460+
- `--abort-on-uncaught-exception`
460461
- `--max_old_space_size`
461462

462463
### `NODE_PENDING_DEPRECATION=1`

‎src/node.cc

+1
Original file line numberDiff line numberDiff line change
@@ -3766,6 +3766,7 @@ static void CheckIfAllowedInEnv(const char* exe, bool is_env,
37663766
"--icu-data-dir",
37673767

37683768
// V8 options
3769+
"--abort-on-uncaught-exception",
37693770
"--max_old_space_size",
37703771
};
37713772

‎test/parallel/test-cli-node-options.js

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ function disallow(opt) {
4040

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

43+
expect('--abort-on-uncaught-exception', 'B\n');
4344
expect(`-r ${printA}`, 'A\nB\n');
4445
expect('--no-deprecation', 'B\n');
4546
expect('--no-warnings', 'B\n');

0 commit comments

Comments
 (0)
Please sign in to comment.