-
Notifications
You must be signed in to change notification settings - Fork 29.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unexpected breaking changes with process.exitCode
/process.exit()
#45683
Labels
confirmed-bug
Issues with confirmed bugs.
Comments
This is a missing use case when the PR landed. |
ljharb
added a commit
to ljharb/node
that referenced
this issue
Sep 9, 2023
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.
ljharb
added a commit
to ljharb/node
that referenced
this issue
Sep 9, 2023
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.
Filed #49579 to fix this. |
ljharb
added a commit
to ljharb/node
that referenced
this issue
Sep 9, 2023
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.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
20.0.0-pre (nightly)
Platform
Darwin dib.lan 22.1.0 Darwin Kernel Version 22.1.0: Sun Oct 9 20:14:30 PDT 2022; root:xnu-8792.41.9~2/RELEASE_ARM64_T8103 arm64
Subsystem
process
What steps will reproduce the bug?
How often does it reproduce? Is there a required condition?
reproduces on all node versions built after landing #44711
What is the expected behavior?
the assertion should pass, and if the two lines marked
REMOVE
are commented out the process should exit with code2
What do you see instead?
the assertion throws, and if the two lines marked
REMOVE
are commented out the process exits with code0
Additional information
No response
The text was updated successfully, but these errors were encountered: