-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
src: simplify exit code accesses #45125
src: simplify exit code accesses #45125
Conversation
Review requested:
|
/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
Signed-off-by: Daeyeon Jeong <daeyeon.dev@gmail.com>
Changed the previous commit to use a typed array. PTAL. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
This comment was marked as outdated.
This comment was marked as outdated.
204ca1e
to
3a854d1
Compare
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
Signed-off-by: Daeyeon Jeong <daeyeon.dev@gmail.com>
Signed-off-by: Daeyeon Jeong <daeyeon.dev@gmail.com>
Applied the suggestions. PTAL. |
Signed-off-by: Daeyeon Jeong <daeyeon.dev@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Fixed the CI failure. PTAL again. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still LGTM, thanks
Landed in 7b1e153 |
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? |
Hi @RafaelGSS. Sure, I will open it. |
@RafaelGSS Come to think of it, this requires 2d0d997. Since it's a |
This simplifies getting the exit code which is set through
process.exitCode
by 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