andylamax
12/23/2023, 9:13 AMval res = try {
10 / 0
} catch (_: Throwable) {
0
}
res==0 // true
Fails in wasmJs
and wasmWasi
but passes in all other platforms (tested on jvm,js,linux).
Funny thing is, changing it to
val res = try {
throw ArithmeticException("No can't do")
} catch (_: Throwable) {
0
}
res==0 // true
Works on all.
Should I file a ticker??Robert Jaros
12/23/2023, 9:30 AMThrowable
.Robert Jaros
12/23/2023, 9:34 AMarrayOf(1)[3]
failsandylamax
12/23/2023, 10:02 AMRobert Jaros
12/23/2023, 10:03 AMRobert Jaros
12/23/2023, 10:04 AMRobert Jaros
12/23/2023, 10:05 AMSvyatoslav Kuzmich [JB]
12/23/2023, 1:45 PMandylamax
12/23/2023, 1:46 PMSvyatoslav Kuzmich [JB]
12/23/2023, 1:47 PM