dequal
dequal copied to clipboard
fix: prevent comparisons beyond typed array bounds
Reverse iteration over TypedArrays was starting at foo.byteLength - 1, not foo.length - 1. For TypedArrays with .BYTES_PER_ELEMENT greater than 1, that was resulting in up to 7*foo.length needless pairs of out-of-bounds array accesses and undefined === undefined comparisons.