Files
kotlin-fork/js/js.translator/testData/lineNumbers/whileWithComplexCondition.kt
T
Sergej Jaskiewicz a939f9ccd0 [JS IR] Improve debug info precision for blocks
Namely:
- Generate debug info for closing braces, which allows the breakpoints
  set on closing braces to be hit
- Generate debug info for 'if' and 'try/catch' statements.

KT-46276
2022-10-18 14:31:14 +00:00

17 lines
328 B
Kotlin
Vendored

fun box() {
var i = 0
while(
try {
i++
}
finally {
println("finally: $i")
} < i
) {
println("body: $i")
}
}
// LINES(JS): 1 13 5 5 4 2 2 3 5 5 8 8 * 3 4 9 3 11 11
// LINES(JS_IR): 1 1 2 2 * 3 * 5 5 5 5 5 8 8 * 4 9 * 11 11