Conversation
6dc1d1e to
f622fff
Compare
To limit how far into the buffer we search without allocating an unnecessary subarray. PR-URL: #62390
f622fff to
b57fa1f
Compare
To limit how far into the buffer we search without allocating an unnecessary subarray. PR-URL: #62390
b57fa1f to
b739413
Compare
To limit how far into the buffer we search without allocating an unnecessary subarray. PR-URL: #62390
b739413 to
5690750
Compare
|
CI does not seem happy |
To limit how far into the buffer we search without allocating an unnecessary subarray. PR-URL: #62390
5690750 to
ddbc9cd
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #62390 +/- ##
==========================================
+ Coverage 89.72% 89.80% +0.08%
==========================================
Files 695 699 +4
Lines 214464 216422 +1958
Branches 41067 41384 +317
==========================================
+ Hits 192420 194360 +1940
- Misses 14106 14146 +40
+ Partials 7938 7916 -22
🚀 New features to boost your workflow:
|
doc/api/buffer.md
Outdated
| ``` | ||
|
|
||
| ### `buf.includes(value[, byteOffset][, encoding])` | ||
| ### `buf.includes(value[, byteOffset[, end]][, encoding])` |
There was a problem hiding this comment.
When we start getting into new optional arguments in the middle like this I think we should consider an alternative signature with an options bag instead...
buf.includes(value, {
byteOffset: 0,
end: 10,
encoding: 'utf8',
});
Failed to start CI⚠ Commits were pushed since the last approving review: ⚠ - buffer: add end parameter ✘ Refusing to run CI on potentially unsafe PRhttps://github.com/nodejs/node/actions/runs/23542726197 |
|
There's a conflict to solve |
To limit how far into the buffer we search without allocating an unnecessary subarray. PR-URL: #62390
ddbc9cd to
c4aecb4
Compare
Commit Queue failed- Loading data for nodejs/node/pull/62390 ✔ Done loading data for nodejs/node/pull/62390 ----------------------------------- PR info ------------------------------------ Title buffer: add end parameter (#62390) Author Robert Nagy <ronagy@icloud.com> (@ronag) Branch ronag:buffer-index-of-end -> nodejs:main Labels buffer, c++, semver-minor, author ready, needs-ci, review wanted Commits 1 - buffer: add end parameter Committers 1 - Robert Nagy <ronagy@icloud.com> PR-URL: https://github.com/nodejs/node/pull/62390 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/62390 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> -------------------------------------------------------------------------------- ℹ This PR was created on Sun, 22 Mar 2026 09:53:58 GMT ✔ Approvals: 1 ✔ - Matteo Collina (@mcollina) (TSC): https://github.com/nodejs/node/pull/62390#pullrequestreview-4067847074 ✔ Last GitHub CI successful ℹ Last Full PR CI on 2026-04-08T05:43:34Z: https://ci.nodejs.org/job/node-test-pull-request/72552/ - Querying data for job/node-test-pull-request/72552/ ✔ Build data downloaded ✔ Last Jenkins CI successful -------------------------------------------------------------------------------- ✔ No git cherry-pick in progress ✔ No git am in progress ✔ No git rebase in progress -------------------------------------------------------------------------------- - Bringing origin/main up to date... From https://github.com/nodejs/node * branch main -> FETCH_HEAD ✔ origin/main is now up-to-date - Downloading patch for 62390 From https://github.com/nodejs/node * branch refs/pull/62390/merge -> FETCH_HEAD ✔ Fetched commits as 70c1d6b7314f..445df3f2a63a -------------------------------------------------------------------------------- [main c26888b5a4] buffer: add end parameter Author: Robert Nagy <ronagy@icloud.com> Date: Sun Mar 22 10:53:00 2026 +0100 5 files changed, 195 insertions(+), 58 deletions(-) ✔ Patches applied -------------------------------------------------------------------------------- ⚠ Found PR-URL: https://github.com/nodejs/node/pull/62390, skipping.. --------------------------------- New Message ---------------------------------- buffer: add end parameterhttps://github.com/nodejs/node/actions/runs/24207909791 |
To limit how far into the buffer we search without allocating an unnecessary subarray. PR-URL: #62390 Signed-off-by: Robert Nagy <ronay@icloud.com>
445df3f to
999b453
Compare
Commit Queue failed- Loading data for nodejs/node/pull/62390 ✔ Done loading data for nodejs/node/pull/62390 ----------------------------------- PR info ------------------------------------ Title buffer: add end parameter (#62390) Author Robert Nagy <ronagy@icloud.com> (@ronag) Branch ronag:buffer-index-of-end -> nodejs:main Labels buffer, c++, semver-minor, author ready, needs-ci, review wanted Commits 1 - buffer: add end parameter Committers 1 - Robert Nagy <ronagy@icloud.com> PR-URL: https://github.com/nodejs/node/pull/62390 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/62390 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> -------------------------------------------------------------------------------- ℹ This PR was created on Sun, 22 Mar 2026 09:53:58 GMT ✔ Approvals: 2 ✔ - Matteo Collina (@mcollina) (TSC): https://github.com/nodejs/node/pull/62390#pullrequestreview-4067847074 ✔ - Antoine du Hamel (@aduh95) (TSC): https://github.com/nodejs/node/pull/62390#pullrequestreview-4092335147 ✔ Last GitHub CI successful ℹ Last Full PR CI on 2026-04-11T08:36:32Z: https://ci.nodejs.org/job/node-test-pull-request/72624/ - Querying data for job/node-test-pull-request/72624/ ✔ Build data downloaded ✔ Last Jenkins CI successful -------------------------------------------------------------------------------- ✔ No git cherry-pick in progress ✔ No git am in progress ✔ No git rebase in progress -------------------------------------------------------------------------------- - Bringing origin/main up to date... From https://github.com/nodejs/node * branch main -> FETCH_HEAD 726b22048a..ef8f8f886c main -> origin/main ✔ origin/main is now up-to-date main is out of sync with origin/main. Mismatched commits: - c8c00cba5e sqlite: use OneByte for ASCII text and internalize col names - ef8f8f886c sqlite: use OneByte for ASCII text and internalize col names -------------------------------------------------------------------------------- HEAD is now at ef8f8f886c sqlite: use OneByte for ASCII text and internalize col names ✔ Reset to origin/main - Downloading patch for 62390 From https://github.com/nodejs/node * branch refs/pull/62390/merge -> FETCH_HEAD ✔ Fetched commits as ef8f8f886c88..999b4533429e -------------------------------------------------------------------------------- [main a1bc4270d1] buffer: add end parameter Author: Robert Nagy <ronagy@icloud.com> Date: Sun Mar 22 10:53:00 2026 +0100 5 files changed, 195 insertions(+), 58 deletions(-) ✔ Patches applied -------------------------------------------------------------------------------- ⚠ Found PR-URL: https://github.com/nodejs/node/pull/62390, skipping.. --------------------------------- New Message ---------------------------------- buffer: add end parameterhttps://github.com/nodejs/node/actions/runs/24280643630 |
To limit how far into the buffer we search without allocating an unnecessary subarray. Signed-off-by: Robert Nagy <ronay@icloud.com>
999b453 to
fd6b746
Compare
Commit Queue failed- Loading data for nodejs/node/pull/62390 ✔ Done loading data for nodejs/node/pull/62390 ----------------------------------- PR info ------------------------------------ Title buffer: add end parameter (#62390) Author Robert Nagy <ronagy@icloud.com> (@ronag) Branch ronag:buffer-index-of-end -> nodejs:main Labels buffer, c++, semver-minor, author ready, needs-ci, review wanted Commits 1 - buffer: add end parameter Committers 1 - Robert Nagy <ronagy@icloud.com> PR-URL: https://github.com/nodejs/node/pull/62390 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/62390 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> -------------------------------------------------------------------------------- ℹ This PR was created on Sun, 22 Mar 2026 09:53:58 GMT ✔ Approvals: 2 ✔ - Matteo Collina (@mcollina) (TSC): https://github.com/nodejs/node/pull/62390#pullrequestreview-4067847074 ✔ - Antoine du Hamel (@aduh95) (TSC): https://github.com/nodejs/node/pull/62390#pullrequestreview-4092335147 ✔ Last GitHub CI successful ℹ Last Full PR CI on 2026-04-11T10:37:41Z: https://ci.nodejs.org/job/node-test-pull-request/72624/ ⚠ Commits were pushed after the last Full PR CI run: ⚠ - buffer: add end parameter - Querying data for job/node-test-pull-request/72624/ ✔ Build data downloaded ✔ Last Jenkins CI successful -------------------------------------------------------------------------------- ✔ Aborted `git node land` session in /home/runner/work/node/node/.ncuhttps://github.com/nodejs/node/actions/runs/24286987028 |
|
Landed in f2fda60 |
To limit how far into the buffer we search without allocating an unnecessary subarray.