Repository navigation
1.0.3
Five fixes for wrong results, each present in 1.0.0 to 1.0.2.
Fixed
- An assignment used as a value read as a number where it stored a Boolean (
t = x === 3 || x & 1), at every level:if (t = …)took the false arm and(t = …) + 10was NaN. - A variable captured by a closure, holding an integer and then assigned a comparison, read
falsefortrueat every level:let t = 7; const g = () => t; t = x === 3. - At the default level and
'speed', a vectorized store into a Uint8ClampedArray wrote 0 for every byte past 127:b[i] = a[i] & c[i]. (u / k) | 0divided a uint32 as a signed value at the default level,'size'and'speed'(((x >>> 0) / 3) | 0gave -715827882 at x = 2^31), and(u[i] % s) | 0read a Uint32Array element signed at every level.- At the default level and
'speed', a typed-array loop bounded by a uint32 past 2^31 in its test (i < (b >>> 0)) read memory past the array's end where JS reads undefined.
Full Changelog: v1.0.2...v1.0.3