Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

src: improve error handling in process_wrap #56977

Merged

Conversation

jasnell
Copy link
Member

@jasnell jasnell commented Feb 9, 2025

Replace ToLocalChecked uses.

Replace ToLocalChecked uses.
@jasnell jasnell requested review from anonrig and legendecas February 9, 2025 16:18
@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. child_process Issues and PRs related to the child_process subsystem. needs-ci PRs that need a full CI run. labels Feb 9, 2025
@nodejs-github-bot
Copy link
Collaborator

nodejs-github-bot commented Feb 9, 2025

Copy link

codecov bot commented Feb 9, 2025

Codecov Report

Attention: Patch coverage is 41.25000% with 47 lines in your changes missing coverage. Please review.

Project coverage is 89.10%. Comparing base (b181535) to head (d1e10c1).
Report is 28 commits behind head on main.

Files with missing lines Patch % Lines
src/process_wrap.cc 41.25% 24 Missing and 23 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #56977      +/-   ##
==========================================
- Coverage   89.13%   89.10%   -0.04%     
==========================================
  Files         665      665              
  Lines      193165   193218      +53     
  Branches    37191    37208      +17     
==========================================
- Hits       172181   172169      -12     
- Misses      13729    13754      +25     
- Partials     7255     7295      +40     
Files with missing lines Coverage Δ
src/process_wrap.cc 67.37% <41.25%> (-16.96%) ⬇️

... and 27 files with indirect coverage changes

stdios->Get(context, i).ToLocalChecked().As<Object>();
Local<Value> type =
stdio->Get(context, env->type_string()).ToLocalChecked();
Local<Value> val;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we define this variable outside of the loop? Same goes for 143 and 144.

@jasnell jasnell added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. commit-queue Add this label to land a pull request using GitHub Actions. labels Feb 9, 2025
@nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Feb 11, 2025
@nodejs-github-bot nodejs-github-bot merged commit 888e5eb into nodejs:main Feb 11, 2025
70 checks passed
@nodejs-github-bot
Copy link
Collaborator

Landed in 888e5eb

targos pushed a commit that referenced this pull request Feb 17, 2025
Replace ToLocalChecked uses.

PR-URL: #56977
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
acidiney pushed a commit to acidiney/node that referenced this pull request Feb 23, 2025
Replace ToLocalChecked uses.

PR-URL: nodejs#56977
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. c++ Issues and PRs that require attention from people who are familiar with C++. child_process Issues and PRs related to the child_process subsystem. needs-ci PRs that need a full CI run.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants