Files
kotlin-fork/js/js.translator/testData/box/standardClasses/throwableCtor.kt
T
Roman Artemev ff093d363a [JS IR BE] Fix Throwable ancestor transformation
Make sure that `message` and `cause` are properly configured

 - synchronize IR BE and Legacy behaviour
 - fix corresponding IR lowering
 - fix JS IR core runtime
 - add test
 - fix KT-39964
2020-10-12 15:22:43 +03:00

10 lines
186 B
Kotlin
Vendored

// EXPECTED_REACHABLE_NODES: 1237
// KT-39964
fun box(): String {
val e = Throwable(null, IllegalStateException("fail"))
if (e.message != null) return "FAIL"
return "OK"
}