diff --git a/source-map-support.js b/source-map-support.js index 2942b5e..d28bea7 100644 --- a/source-map-support.js +++ b/source-map-support.js @@ -497,7 +497,7 @@ function printErrorAndExit (error) { } console.error(error.stack); - globalProcessExit(1); + globalProcessExit(process.exitCode || 1); } function shimEmitUncaughtException () {