mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
src: --abort-on-uncaught-exception in NODE_OPTIONS
Allow --abort-on-uncaught-exception in NODE_OPTIONS, its useful to enable for post-mortem debugging. Backport-PR-URL: https://github.com/nodejs/node/pull/12677 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:
1 parent
dd946c3c2a
commit
cccf5a6edf
3 files changed
+5
-2
No files matched your search
@@ -367,6 +367,7 @@ Node options that are allowed are:
|
||||
- `--zero-fill-buffers`
|
||||
|
||||
V8 options that are allowed are:
|
||||
- `--abort-on-uncaught-exception`
|
||||
- `--max_old_space_size`
|
||||
|
||||
|
||||
|
||||
@@ -3811,6 +3811,7 @@ static void CheckIfAllowedInEnv(const char* exe, bool is_env,
|
||||
"--icu-data-dir",
|
||||
|
||||
// V8 options
|
||||
"--abort-on-uncaught-exception",
|
||||
"--max_old_space_size",
|
||||
};
|
||||
|
||||
|
||||
@@ -41,7 +41,8 @@ function disallow(opt) {
|
||||
|
||||
const printA = require.resolve('../fixtures/printA.js');
|
||||
|
||||
expect('-r ' + printA, 'A\nB\n');
|
||||
expect(`-r ${printA}`, 'A\nB\n');
|
||||
expect('--abort-on-uncaught-exception', 'B\n');
|
||||
expect('--no-deprecation', 'B\n');
|
||||
expect('--no-warnings', 'B\n');
|
||||
expect('--trace-warnings', 'B\n');
|
||||
@@ -58,7 +59,7 @@ if (common.hasCrypto) {
|
||||
}
|
||||
expect('--icu-data-dir=_d', 'B\n');
|
||||
|
||||
// V8 options
|
||||
// V8 options
|
||||
expect('--max_old_space_size=0', 'B\n');
|
||||
|
||||
function expect(opt, want) {
|
||||
|
||||
Reference in new issue
Block a user