[Wasm] Improve string constructor in stdlib
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user