Skip to content

assert,util: correct comparison when both contain same reference

Rodrigo Muino Tomonari requested to merge github/fork/lemire/verify_53423 into main

I would expect that given

const xarray = ['x'];

Then new Set([xarray, ['y']]) and new Set([xarray, ['y']]) are equal as per assert.deepStrictEqual but since Node 20, they are not.

This PR applies the fix proposed by @BridgeAR

Refs: https://github.com/nodejs/node/issues/53423 reported by @chharvey

Merge request reports

Loading