Skip to content

Commit 6bff7d9

Browse files
authored
process: make exitCode configurable again
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.
1 parent b500037 commit 6bff7d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/bootstrap/node.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ process.domain = null;
129129
exitCode = code;
130130
},
131131
enumerable: true,
132-
configurable: false,
132+
configurable: true,
133133
});
134134
}
135135
process._exiting = false;

0 commit comments

Comments
 (0)