[JS IR] Adapt stepping tests for Kotlin/JS
This commit is contained in:
+13
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user