[WASM] Replace String storage type from CharArray to WasmCharArray
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.unsafeFromCharArray(charArrayOf(this))
|
||||
String.unsafeFromCharArray(WasmCharArray(1).also { it.set(0, this) })
|
||||
|
||||
override fun hashCode(): Int =
|
||||
this.toInt().hashCode()
|
||||
|
||||
Reference in New Issue
Block a user