Repository navigation
v2.10.0 - String compareTo (interpreter + Wasm)
String compareTo (interpreter + Wasm)
Adds String.compareTo(other) to the AST interpreter core (which was missing it) and to the on-the-fly WebAssembly compiler, so it now works on both backends with matching results.
The Wasm implementation is a lexicographic byte comparison over the [len][utf8] layout, returning -1 / 0 / 1 (a shorter string that is a prefix of the other sorts first).
This closes the item deferred from 2.8.0, where the Wasm compareTo was dropped because the interpreter couldn't run it.
Still to come for String in Wasm: split (returns a List) and index [].
Full changelog: https://github.com/ApolloVM/apollovm_dart/blob/v2.10.0/CHANGELOG.md