@grain/stdlib 0.5.6 → 0.5.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # Changelog
2
2
 
3
+ ### [0.5.8](https://github.com/grain-lang/grain/compare/stdlib-v0.5.7...stdlib-v0.5.8) (2022-12-10)
4
+
5
+
6
+ ### Features
7
+
8
+ * **runtime:** Optimize simple number comparison ([f7ceae7](https://github.com/grain-lang/grain/commit/f7ceae729260bc3c5eee017954aa7e242c3f8cb5))
9
+ * **stdlib:** Add `ImmutableArray` module ([#1477](https://github.com/grain-lang/grain/issues/1477)) ([a34d8b9](https://github.com/grain-lang/grain/commit/a34d8b9e8ce629c40d65b99561c0f41fa400542e))
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * **stdlib:** Fix NaN comparisons ([#1543](https://github.com/grain-lang/grain/issues/1543)) ([f7ceae7](https://github.com/grain-lang/grain/commit/f7ceae729260bc3c5eee017954aa7e242c3f8cb5))
15
+
16
+ ### [0.5.7](https://github.com/grain-lang/grain/compare/stdlib-v0.5.6...stdlib-v0.5.7) (2022-12-06)
17
+
18
+
19
+ ### Miscellaneous Chores
20
+
21
+ * **stdlib:** Synchronize Grain versions
22
+
3
23
  ### [0.5.6](https://github.com/grain-lang/grain/compare/stdlib-v0.5.5...stdlib-v0.5.6) (2022-12-05)
4
24
 
5
25
 
package/array.gr CHANGED
@@ -110,8 +110,6 @@ export let init: (Number, Number -> a) -> Array<a> =
110
110
  let array = allocateArray(length)
111
111
  let mut index = 0n
112
112
  for (let mut i = 0n; WasmI32.ltS(i, byteLength); i = WasmI32.add(i, 4n)) {
113
- // [FIXME] This line fails the array/map test suite (#815)
114
- // assert !WasmI32.eqz(WasmI32.and(WasmI32.fromGrain(index), 1n)) // must be a simple int for next line to be correct
115
113
  WasmI32.store(
116
114
  WasmI32.add(array, i),
117
115
  Memory.incRef(WasmI32.fromGrain(fn(tagSimpleNumber(index)))),