You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,13 +9,19 @@ Breaking Changes
9
9
10
10
*`stdweb` support is removed. The feature flag `stdweb` is also removed. Use `wasm-bindgen` instead.
11
11
12
+
Bug fixes
13
+
---------
14
+
15
+
* (Fuzzing) Fixed panic when using `sort` on an array with a comparer function that does not implement a [total order](https://en.wikipedia.org/wiki/Total_order).
12
16
13
17
Enhancements
14
18
------------
15
19
16
20
* The optimizer now optimizes constant object map property accesses (thanks [`@phsym`](https://github.com/phsym)[#1050](https://github.com/rhaiscript/rhai/pull/1050)).
21
+
* Optimization is added to turn `if cond1 { if cond2 { ... } }` into `if cond1 && cond2 { ... }`.
17
22
* The method `sort` for arrays is also aliased to `sort_by`.
18
23
* The methods `sort_desc`, `order`, `order_by` and `order_desc` are added to arrays.
24
+
* An exception is now thrown when attempting to use `sort` on an array containing unsupported element types.
0 commit comments