Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: nodejs/node
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 4abad0763efe0863aa9e643035471330c7a089a2
Choose a base ref
...
head repository: nodejs/node
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 657f81853253a16ed9557d67d17372498a419a9f
Choose a head ref
  • 2 commits
  • 3 files changed
  • 1 contributor

Commits on Apr 2, 2025

  1. assert,util: improve array comparison

    Sparse arrays and arrays containing undefined are now compared faster
    using assert.deepStrictEqual() or util.isDeepStrictEqual().
    
    PR-URL: #57619
    Reviewed-By: Jordan Harband <ljharb@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Edy Silva <edigleyssonsilva@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    BridgeAR authored and nodejs-github-bot committed Apr 2, 2025
    Configuration menu
    Copy the full SHA
    b9c9bf4 View commit details
    Browse the repository at this point in the history
  2. assert,util: improve unequal number comparison performance

    This improves the performance to compare unequal numbers while doing
    a deep equal comparison. Comparing for NaN is faster by checking
    `variable !== variable` than by using `Number.isNaN()`.
    
    PR-URL: #57619
    Reviewed-By: Jordan Harband <ljharb@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Edy Silva <edigleyssonsilva@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    BridgeAR authored and nodejs-github-bot committed Apr 2, 2025
    Configuration menu
    Copy the full SHA
    657f818 View commit details
    Browse the repository at this point in the history
Loading