src: simplify exit code accesses#45125
Merged
nodejs-github-bot merged 8 commits intonodejs:mainfrom Nov 10, 2022
Merged
Conversation
Collaborator
|
Review requested:
|
Member
Author
|
/cc @addaleax @nodejs/cpp-reviewers |
bd891da to
a107886
Compare
This simplifies getting the exit code which is set through `process.exitCode` by removing manually reading the JS property from the native side. Signed-off-by: Daeyeon Jeong <daeyeon.dev@gmail.com>
a107886 to
eef1c86
Compare
RaisinTen
reviewed
Oct 22, 2022
Signed-off-by: Daeyeon Jeong <daeyeon.dev@gmail.com>
Member
Author
|
Changed the previous commit to use a typed array. PTAL. |
This comment was marked as outdated.
This comment was marked as outdated.
joyeecheung
reviewed
Oct 31, 2022
204ca1e to
3a854d1
Compare
Member
Author
|
Updated by removing the new struct in the previous commit and extending the |
Signed-off-by: Daeyeon Jeong <daeyeon.dev@gmail.com>
3a854d1 to
62819b1
Compare
daeyeon
commented
Nov 4, 2022
joyeecheung
reviewed
Nov 4, 2022
Signed-off-by: Daeyeon Jeong <daeyeon.dev@gmail.com>
Signed-off-by: Daeyeon Jeong <daeyeon.dev@gmail.com>
Member
Author
|
Applied the suggestions. PTAL. |
RaisinTen
reviewed
Nov 5, 2022
Signed-off-by: Daeyeon Jeong <daeyeon.dev@gmail.com>
joyeecheung
approved these changes
Nov 7, 2022
Member
joyeecheung
left a comment
There was a problem hiding this comment.
Thanks for. the patience!
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Collaborator
Member
Author
|
Fixed the CI failure. PTAL again. Thanks! |
Collaborator
Collaborator
20 tasks
Collaborator
|
Landed in 7b1e153 |
Member
|
Hi @daeyeon. I tried to include this commit to the v19.1.0 proposal, but I got some conflicts. Could you please open a backport PR? |
19 tasks
Member
Author
|
Hi @RafaelGSS. Sure, I will open it. |
Member
Author
|
@RafaelGSS Come to think of it, this requires 2d0d997. Since it's a |
This was referenced Nov 12, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This simplifies getting the exit code which is set through
process.exitCodeby removingmanually reading the JS property from the native side.
Addresses this TODO:
node/src/api/hooks.cc
Lines 72 to 75 in 5815e3e
Signed-off-by: Daeyeon Jeong daeyeon.dev@gmail.com