[Wasm] Improve string constructor in stdlib

This commit is contained in:
Igor Laevsky
2021-10-22 21:16:04 +03:00
parent 8dc81b6c57
commit 46b56c7642
6 changed files with 32 additions and 11 deletions
@@ -93,7 +93,7 @@ public class Char private constructor(public val value: Char) : Comparable<Char>
this.toInt().toDouble()
override fun toString(): String =
String(charArrayOf(this))
String.unsafeFromCharArray(charArrayOf(this))
override fun hashCode(): Int =
this.toInt().hashCode()