Skip to content

v1.0.1

Choose a tag to compare

@dy dy released this 03 Nov 08:46
· 213 commits to main since this release

Two fixes for wrong results in 1.0.0. Upgrade if you build arrays of objects in one function and read them in another, or compile with compactSlack.

Fixed

  • An array of same-shaped objects built in one function and read in another (the module's top level, an export, a callback, a closure, a parameter default) gave wrong lengths and fields at the default level, 'speed' and 'size': const ps = init(4) read 8 items of 2.78e-307,undefined where Node reads 1,2 2,3 3,4 4,5. optimize: false was not affected.
  • A loop that compacts memory and gives each iteration's memory back could free data still in use after its own compaction: wrong results seen under compactSlack: 4096; the default setting has the same window.

Full Changelog: v1.0.0...v1.0.1