Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update lib/internal/modules/esm/handle_process_exit.js
Co-authored-by: Richard Lau <rlau@redhat.com>
  • Loading branch information
aduh95 and richardlau authored Jan 14, 2022
commit 15e2f48d67152cb097b56a10f71610d1a016f199
2 changes: 1 addition & 1 deletion lib/internal/modules/esm/handle_process_exit.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// In that case, it makes sense to set the exit code to a specific non-zero
// value if the main code never finishes running.
function handleProcessExit() {
process.exitCode ??= 13;
if (process.exitCode == null) process.exitCode = 13;
}

module.exports = {
Expand Down