Skip to content

Commit

Permalink
process: make exitCode configurable again
Browse files Browse the repository at this point in the history
This change was done in nodejs#44711, and it's not clear it was intentional. It caused nodejs#45683, and also makes it impossible to mock out the exitCode in tests.

Filing this PR per nodejs#44711 (comment)

Fixes nodejs#45683.
  • Loading branch information
ljharb committed Sep 9, 2023
1 parent b500037 commit 6bff7d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/bootstrap/node.js
Expand Up @@ -129,7 +129,7 @@ process.domain = null;
exitCode = code;
},
enumerable: true,
configurable: false,
configurable: true,
});
}
process._exiting = false;
Expand Down

0 comments on commit 6bff7d9

Please sign in to comment.