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: https://github.com/nodejs/node/pull/13932 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
46d7cb88c7
commit
c45df83b54
@ -457,6 +457,7 @@ Node options that are allowed are:
|
|||||||
- `--zero-fill-buffers`
|
- `--zero-fill-buffers`
|
||||||
|
|
||||||
V8 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`
|
### `NODE_PENDING_DEPRECATION=1`
|
||||||
|
@ -3766,6 +3766,7 @@ static void CheckIfAllowedInEnv(const char* exe, bool is_env,
|
|||||||
"--icu-data-dir",
|
"--icu-data-dir",
|
||||||
|
|
||||||
// V8 options
|
// V8 options
|
||||||
|
"--abort-on-uncaught-exception",
|
||||||
"--max_old_space_size",
|
"--max_old_space_size",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -40,6 +40,7 @@ function disallow(opt) {
|
|||||||
|
|
||||||
const printA = require.resolve('../fixtures/printA.js');
|
const printA = require.resolve('../fixtures/printA.js');
|
||||||
|
|
||||||
|
expect('--abort-on-uncaught-exception', 'B\n');
|
||||||
expect(`-r ${printA}`, 'A\nB\n');
|
expect(`-r ${printA}`, 'A\nB\n');
|
||||||
expect('--no-deprecation', 'B\n');
|
expect('--no-deprecation', 'B\n');
|
||||||
expect('--no-warnings', 'B\n');
|
expect('--no-warnings', 'B\n');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user