Given this code:
val value = "something"
println(value.toUpperCase().toLowerCase() == value) // prints true
println(value.toUpperCase().toLowerCase() === value) // prints false
On Kotlin/JVM 1.3.40, I get:
true
false
On Kotlin/JS 1.3.40, I get:
true
true
I would expect the same results on both, and I would expect the Kotlin/JVM results overall (as I should have different String objects).
Why am I getting different results based on runtime environment?