[JS IR] Hack IC invalidation test so it works with ES6 classes

Hack the IC invaliadtion test so the cross module references
 are invalidated in the same way as with ES6 classes and without.
This commit is contained in:
Alexander Korepanov
2023-01-23 15:43:27 +01:00
committed by Space Team
parent 0785b45426
commit edbd05ba47
2 changed files with 7 additions and 5 deletions
@@ -1,4 +1,8 @@
inline fun foo() : Int {
throw NumberFormatException()
return 5
try {
val x = listOf(1)
return x[2]
} catch(e: Exception) {
throw NumberFormatException()
}
}
@@ -1,5 +1,3 @@
MUTED
MODULES: lib1, lib2, main
STEP 0:
@@ -19,7 +17,7 @@ STEP 4:
dirty js: lib2, main
STEP 5..6:
libs: lib1, lib2, main
dirty js: lib1, lib2
dirty js: lib1, lib2, main
STEP 7:
libs: lib1, lib2, main
dirty js: lib2