Uh oh!
There was an error while loading. Please reload this page.
path: remove StringPrototypeCharCodeAt from some methods of posix - #54668
path: remove StringPrototypeCharCodeAt from some methods of posix#54668HBSPS wants to merge 1 commit into
StringPrototypeCharCodeAt from some methods of posix#54668Conversation
avivkeller
left a comment
There was a problem hiding this comment.
IMO the commit message / title is a bit misleading, as this isn't removing the primordial everywhere, maybe reword?
| @@ -1543,8 +1540,8 @@ const posix = { | |||
| // Get non-dir info | |||
| for (; i >= start; --i) { | |||
| const code = StringPrototypeCharCodeAt(path, i); | |||
| if (code === CHAR_FORWARD_SLASH) { | |||
| const code = path[i]; | |||
There was a problem hiding this comment.
Maybe rename this variable to char?
StringPrototypeCharCodeAt from lib/pathStringPrototypeCharCodeAt from some methods of posixCodecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@## main #54668 +/- ##
==========================================
+ Coverage 88.53% 88.54% +0.01%
==========================================
Files 703 703 Lines 208598 208595 -3 Branches 40227 40235 +8 ==========================================
+ Hits 184674 184700 +26 + Misses 15951 15908 -43 - Partials 7973 7987 +14
🚀 New features to boost your workflow:
|
CI: https://ci.nodejs.org/job/node-test-pull-request/61752/ Benchmark CI ( Results |
ljharb
left a comment
There was a problem hiding this comment.
not sure why we have the constants if we're not going to use them, but the primordial conversion is good
Remove `StringPrototypeCharCodeAt` from `posix.resolve`, `posix.normalize`, `posix.parse`
nodejs-github-bot
commented
Dec 27, 2025
nodejs-github-bot
commented
Mar 2, 2026
Failed to start CI- Validating Jenkins credentials ✔ Jenkins credentials valid - Querying data for job/node-test-pull-request/71535/ [SyntaxError: Unexpected token '<', ..." https://github.com/nodejs/node/actions/runs/24979596986 |
1 similar comment
Failed to start CI- Validating Jenkins credentials ✔ Jenkins credentials valid - Querying data for job/node-test-pull-request/71535/ [SyntaxError: Unexpected token '<', ..." https://github.com/nodejs/node/actions/runs/24979596986 |
CI: https://ci.nodejs.org/job/node-test-pull-request/72955/ Benchmark results |
nodejs-github-bot
commented
May 27, 2026
nodejs-github-bot
commented
Jun 22, 2026
Benchmarks run in #54668 (comment) show a performance decline. |
Benchmark GHA (path / posix): https://github.com/nodejs/node/actions/runs/31022757214 Results
Benchmark results:
|
Refs: #54546