node icon indicating copy to clipboard operation
node copied to clipboard

http, readline: replace sort with toSorted

Open benjamingr opened this issue 1 year ago • 1 comments

Just a minor chore, Richard's set.difference PR reminded me our V8 is new enough to support toSorted and we can avoid .slice().sort(...).

benjamingr avatar Jun 28 '24 12:06 benjamingr

Review requested:

  • [ ] @nodejs/http
  • [ ] @nodejs/net

nodejs-github-bot avatar Jun 28 '24 12:06 nodejs-github-bot

CI: https://ci.nodejs.org/job/node-test-pull-request/60041/

nodejs-github-bot avatar Jul 03 '24 22:07 nodejs-github-bot

CI: https://ci.nodejs.org/job/node-test-pull-request/60116/

nodejs-github-bot avatar Jul 06 '24 16:07 nodejs-github-bot

CI: https://ci.nodejs.org/job/node-test-pull-request/60125/

nodejs-github-bot avatar Jul 06 '24 21:07 nodejs-github-bot

@benjamingr this now conflicts

mcollina avatar Jul 08 '24 17:07 mcollina

CI: https://ci.nodejs.org/job/node-test-pull-request/60185/

nodejs-github-bot avatar Jul 08 '24 21:07 nodejs-github-bot

CI: https://ci.nodejs.org/job/node-test-pull-request/60194/

nodejs-github-bot avatar Jul 09 '24 13:07 nodejs-github-bot

This failed in the Jenkins CI because of the merge commit.

richardlau avatar Jul 09 '24 18:07 richardlau

Sorry, new job, new gitconfig, pushing a fix

benjamingr avatar Jul 09 '24 18:07 benjamingr

Failed to start CI
   ⚠  Something was pushed to the Pull Request branch since the last approving review.
   ✘  Refusing to run CI on potentially unsafe PR
https://github.com/nodejs/node/actions/runs/9862771244

github-actions[bot] avatar Jul 09 '24 19:07 github-actions[bot]

CI: https://ci.nodejs.org/job/node-test-pull-request/60202/

nodejs-github-bot avatar Jul 09 '24 19:07 nodejs-github-bot

CI: https://ci.nodejs.org/job/node-test-pull-request/60208/

nodejs-github-bot avatar Jul 09 '24 23:07 nodejs-github-bot

Commit Queue failed
- Loading data for nodejs/node/pull/53623
✔  Done loading data for nodejs/node/pull/53623
----------------------------------- PR info ------------------------------------
Title      http, readline: replace sort with toSorted (#53623)
Author     Benjamin Gruenbaum <[email protected]> (@benjamingr)
Branch     benjamingr:replace-with-tosorted -> nodejs:main
Labels     http, readline, needs-ci, typings, dont-land-on-v18.x, dont-land-on-v20.x
Commits    1
 - http, readline: replace sort with toSorted
Committers 1
 - Benjamin Gruenbaum <[email protected]>
PR-URL: https://github.com/nodejs/node/pull/53623
Reviewed-By: Yagiz Nizipli <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Tim Perry <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Moshe Atlow <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: James M Snell <[email protected]>
------------------------------ Generated metadata ------------------------------
PR-URL: https://github.com/nodejs/node/pull/53623
Reviewed-By: Yagiz Nizipli <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Tim Perry <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Moshe Atlow <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: James M Snell <[email protected]>
--------------------------------------------------------------------------------
   ⚠  Commits were pushed since the last approving review:
   ⚠  - http, readline: replace sort with toSorted
   ℹ  This PR was created on Fri, 28 Jun 2024 12:38:56 GMT
   ✔  Approvals: 8
   ✔  - Yagiz Nizipli (@anonrig): https://github.com/nodejs/node/pull/53623#pullrequestreview-2148102817
   ✔  - Richard Lau (@richardlau) (TSC): https://github.com/nodejs/node/pull/53623#pullrequestreview-2148120155
   ✔  - Tim Perry (@pimterry): https://github.com/nodejs/node/pull/53623#pullrequestreview-2148213278
   ✔  - Luigi Pinca (@lpinca): https://github.com/nodejs/node/pull/53623#pullrequestreview-2148271807
   ✔  - Moshe Atlow (@MoLow) (TSC): https://github.com/nodejs/node/pull/53623#pullrequestreview-2149963447
   ✔  - Matteo Collina (@mcollina) (TSC): https://github.com/nodejs/node/pull/53623#pullrequestreview-2149970876
   ✔  - Trivikram Kamat (@trivikr): https://github.com/nodejs/node/pull/53623#pullrequestreview-2150175739
   ✔  - James M Snell (@jasnell) (TSC): https://github.com/nodejs/node/pull/53623#pullrequestreview-2151991049
   ✔  Last GitHub CI successful
   ℹ  Last Full PR CI on 2024-07-09T23:43:34Z: https://ci.nodejs.org/job/node-test-pull-request/60208/
- Querying data for job/node-test-pull-request/60208/
   ✔  Last Jenkins CI successful
--------------------------------------------------------------------------------
   ✔  Aborted `git node land` session in /home/runner/work/node/node/.ncu
https://github.com/nodejs/node/actions/runs/9877917825

nodejs-github-bot avatar Jul 10 '24 16:07 nodejs-github-bot

Landed in fd21dd45d56ed8f3e202dc0aef92378519551b64

nodejs-github-bot avatar Jul 10 '24 16:07 nodejs-github-bot