[JS IR] Adapt stepping tests for Kotlin/JS

This commit is contained in:
Sergej Jaskiewicz
2022-06-08 20:22:09 +03:00
committed by Space
parent ea556ce428
commit 1241565cce
93 changed files with 1250 additions and 299 deletions
+13 -3
View File
@@ -4,7 +4,7 @@ fun box() {
val b = 2
try {
throwIfLess(a, b)
} catch (e: java.lang.Exception) {
} catch (e: Exception) {
throwIfLess(a, b)
}
throwIfLess(b,a)
@@ -12,9 +12,9 @@ fun box() {
fun throwIfLess(a: Int, b: Int) {
if (a<b)
throw java.lang.IllegalStateException()
throw IllegalStateException()
}
// EXPECTATIONS
// EXPECTATIONS JVM JVM_IR
// test.kt:3 box
// test.kt:4 box
// test.kt:5 box
@@ -25,3 +25,13 @@ fun throwIfLess(a: Int, b: Int) {
// test.kt:8 box
// test.kt:14 throwIfLess
// test.kt:15 throwIfLess
// EXPECTATIONS JS_IR
// test.kt:3 box
// test.kt:4 box
// test.kt:6 box
// test.kt:14 throwIfLess
// test.kt:15 throwIfLess
// test.kt:8 box
// test.kt:14 throwIfLess
// test.kt:15 throwIfLess