Skip to content

Commit 21ee4b1

Browse files
sam-githubaddaleax
authored andcommitted
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 7d7da98 commit 21ee4b1

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
@@ -3763,6 +3763,7 @@ static void CheckIfAllowedInEnv(const char* exe, bool is_env,
37633763
"--icu-data-dir",
37643764

37653765
// V8 options
3766+
"--abort-on-uncaught-exception",
37663767
"--max_old_space_size",
37673768
};
37683769

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)