[WASM] Wasm string.plus optimisations

This commit is contained in:
Igor Yakovlev
2022-07-11 15:49:58 +02:00
committed by teamcity
parent fe187b609f
commit fff6b16483
6 changed files with 65 additions and 35 deletions
@@ -103,7 +103,7 @@ public class Char private constructor(public val value: Char) : Comparable<Char>
this.toInt().toDouble()
override fun toString(): String =
String.unsafeFromCharArray(WasmCharArray(1).also { it.set(0, this) })
String(WasmCharArray(1).also { it.set(0, this) })
override fun hashCode(): Int =
this.toInt().hashCode()