-
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
lib: remove startsWith/endsWith primordials for char checks #55407
Conversation
Review requested:
|
3da1022
to
3706c83
Compare
This is an upstream repository resource, please remove the change. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #55407 +/- ##
==========================================
- Coverage 88.41% 88.40% -0.02%
==========================================
Files 652 653 +1
Lines 186918 187595 +677
Branches 36072 36113 +41
==========================================
+ Hits 165270 165839 +569
- Misses 14891 14975 +84
- Partials 6757 6781 +24
|
@aduh95 can you take a look? congrats on the release btw :) |
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
@aduh95 will this merge? Or is there an issue I got some other changes on the way but they will conflict with this one |
Commit Queue failed- Loading data for nodejs/node/pull/55407 ✔ Done loading data for nodejs/node/pull/55407 ----------------------------------- PR info ------------------------------------ Title lib: remove startsWith/endsWith primordials for char checks (#55407) ⚠ Could not retrieve the email or name of the PR author's from user's GitHub profile! Branch gurgunday:improve-startswith -> nodejs:main Labels lib / src, author ready, needs-ci, commit-queue-squash Commits 5 - lib: remove startsWith/endsWith primordials for char checks - lint: remove unused vars - revert: webidl2 change - use .length to check for empty string - add assert to `addNumericSeparator` Committers 1 - Gürgün Dayıoğlu <hey@gurgun.day> PR-URL: https://github.com/nodejs/node/pull/55407 Reviewed-By: Jacob Smith <jacob@frende.me> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Mattias Buelens <mattias@buelens.com> Reviewed-By: Ethan Arrowood <ethan@arrowood.dev> ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/55407 Reviewed-By: Jacob Smith <jacob@frende.me> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Mattias Buelens <mattias@buelens.com> Reviewed-By: Ethan Arrowood <ethan@arrowood.dev> -------------------------------------------------------------------------------- ⚠ Commits were pushed since the last approving review: ⚠ - add assert to `addNumericSeparator` ℹ This PR was created on Wed, 16 Oct 2024 16:53:41 GMT ✔ Approvals: 5 ✔ - Jacob Smith (@JakobJingleheimer): https://github.com/nodejs/node/pull/55407#pullrequestreview-2373132270 ✔ - Antoine du Hamel (@aduh95) (TSC): https://github.com/nodejs/node/pull/55407#pullrequestreview-2374915750 ✔ - Matteo Collina (@mcollina) (TSC): https://github.com/nodejs/node/pull/55407#pullrequestreview-2375049155 ✔ - Mattias Buelens (@MattiasBuelens): https://github.com/nodejs/node/pull/55407#pullrequestreview-2375222681 ✔ - Ethan Arrowood (@Ethan-Arrowood): https://github.com/nodejs/node/pull/55407#pullrequestreview-2376217715 ✔ Last GitHub CI successful ℹ Last Full PR CI on 2024-10-18T16:16:36Z: https://ci.nodejs.org/job/node-test-pull-request/63185/ - Querying data for job/node-test-pull-request/63185/ ✔ Last Jenkins CI successful -------------------------------------------------------------------------------- ✔ Aborted `git node land` session in /home/runner/work/node/node/.ncuhttps://github.com/nodejs/node/actions/runs/11416653036 |
Landed in 8ed50bc |
PR-URL: #55407 Reviewed-By: Jacob Smith <jacob@frende.me> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Mattias Buelens <mattias@buelens.com> Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
PR-URL: nodejs#55407 Reviewed-By: Jacob Smith <jacob@frende.me> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Mattias Buelens <mattias@buelens.com> Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
Removes primordials when we're only checking for one character and leans on JavaScript syntax as much as possible for performance