[WASM] Any.toString implementation
This commit is contained in:
@@ -49,6 +49,9 @@ public open class Any {
|
|||||||
/**
|
/**
|
||||||
* Returns a string representation of the object.
|
* Returns a string representation of the object.
|
||||||
*/
|
*/
|
||||||
// TODO: Implement
|
public open fun toString(): String {
|
||||||
public open fun toString(): String = "[Object object]"
|
val typeData = getTypeInfoTypeDataByPtr(typeInfo)
|
||||||
|
val qualifiedName = if (typeData.packageName.isEmpty()) typeData.typeName else "${typeData.packageName}.${typeData.typeName}"
|
||||||
|
return "$qualifiedName@${hashCode()}"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user