Content-Length: 343347 | pFad | http://github.com/nodejs/node/pull/57096

B8 src: replace NewFromUtf8 with OneByteString where appropriate by jasnell · Pull Request #57096 · nodejs/node · GitHub
Skip to content
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: replace NewFromUtf8 with OneByteString where appropriate #57096

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jasnell
Copy link
Member

@jasnell jasnell commented Feb 16, 2025

No description provided.

@jasnell jasnell requested review from anonrig and aduh95 February 16, 2025 19:09
@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/net

@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. lib / src Issues and PRs related to general changes in the lib or src directory. needs-ci PRs that need a full CI run. labels Feb 16, 2025
src/node_binding.cc Outdated Show resolved Hide resolved
String::NewFromUtf8(env()->isolate(),
signo_string(term_signal_))
.ToLocalChecked())
OneByteString(env()->isolate(), signo_string(term_signal_)))
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 cache this signo_string() result in the future?

Copy link
Member Author

Choose a reason for hiding this comment

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

I wouldn't think that is necessary.

Copy link

codecov bot commented Feb 16, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.06%. Comparing base (11e7535) to head (84e19d1).
Report is 9 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #57096   +/-   ##
=======================================
  Coverage   89.05%   89.06%           
=======================================
  Files         665      665           
  Lines      193299   193292    -7     
  Branches    37257    37254    -3     
=======================================
+ Hits       172152   172155    +3     
+ Misses      13841    13834    -7     
+ Partials     7306     7303    -3     
Files with missing lines Coverage Δ
src/cares_wrap.cc 65.01% <100.00%> (-0.03%) ⬇️
src/node_binding.cc 83.66% <100.00%> (ø)
src/node_buffer.cc 68.08% <100.00%> (-0.10%) ⬇️
src/node_i18n.cc 72.70% <100.00%> (+0.05%) ⬆️
src/spawn_sync.cc 77.46% <100.00%> (ø)

... and 34 files with indirect coverage changes

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

lgtm

@nodejs-github-bot

This comment was marked as outdated.

@jasnell jasnell added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Feb 17, 2025
@jasnell jasnell force-pushed the jasnell/use-onebytestring-where-appropriate branch from ccf154e to 84e19d1 Compare February 17, 2025 21:37
@nodejs-github-bot

This comment was marked as outdated.

@nodejs-github-bot

This comment was marked as outdated.

@nodejs-github-bot

This comment was marked as outdated.

@nodejs-github-bot
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in 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++. lib / src Issues and PRs related to general changes in the lib or src directory. needs-ci PRs that need a full CI run.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/nodejs/node/pull/57096

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy