From 6bff7d92b240fc9000a33fe3070059155d082b19 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Sat, 9 Sep 2023 15:28:21 -0700 Subject: [PATCH] process: make `exitCode` configurable again This change was done in #44711, and it's not clear it was intentional. It caused #45683, and also makes it impossible to mock out the exitCode in tests. Filing this PR per https://github.com/nodejs/node/pull/44711#discussion_r1320660607 Fixes #45683. --- lib/internal/bootstrap/node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/bootstrap/node.js b/lib/internal/bootstrap/node.js index 7a773d5208e250..7c202ab0a6d467 100644 --- a/lib/internal/bootstrap/node.js +++ b/lib/internal/bootstrap/node.js @@ -129,7 +129,7 @@ process.domain = null; exitCode = code; }, enumerable: true, - configurable: false, + configurable: true, }); } process._exiting = false;