src: add cli option to preserve env vars on dr

PR-URL: https://github.com/nodejs/node/pull/55697
Backport-PR-URL: https://github.com/nodejs/node/pull/56055
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
This commit is contained in:
Rafael Gonzaga authored and Ruy Adorno committed 2025-01-05 12:57:19 -05:00
1 parent 552a1823c3
commit 2e3ca1bbdd
12 files changed
+199 -14

No files matched your search

+7
View File
@@ -105,6 +105,13 @@ const report = {
nr.setReportOnUncaughtException(trigger);
},
get excludeEnv() {
return nr.getExcludeEnv();
},
set excludeEnv(b) {
validateBoolean(b, 'excludeEnv');
nr.setExcludeEnv(b);
},
};
function addSignalHandler(sig) {