[JS IR] Add tests for JS IR IC + PL

^KT-57347 related
This commit is contained in:
Alexander Korepanov
2023-05-08 16:54:30 +02:00
committed by Space Team
parent 97620030c6
commit 82a1242f22
96 changed files with 710 additions and 3 deletions
@@ -0,0 +1,5 @@
fun box(stepId: Int): String {
val x = test()
if (stepId != x) return "Fail; got $x"
return "OK"
}
@@ -0,0 +1,8 @@
STEP 0:
dependencies: lib1
modifications:
added file: m.kt, test.kt
STEP 1..3:
dependencies: lib1
rebuild klib: false
updated imports: test.kt
@@ -0,0 +1,13 @@
internal fun doTest() : Int {
foo()
val y = baz()
return y + fooX - 10
}
fun test(): Int {
try {
return doTest()
} catch (e: Error) {
return 1
}
}