[JS BE] Merge Legacy and IR BE exceptions-related test data

- regenerate tests
 - add consistency test
This commit is contained in:
Roman Artemev
2020-10-06 16:24:13 +03:00
parent c16b11a124
commit f824bb6987
5 changed files with 72 additions and 2 deletions
@@ -25,10 +25,10 @@ class MyException2(i1: String, i2: String, m: String? = null, t: Throwable? = nu
fun box(): String {
check(MyException1("1", "2"), "MyException1")
check(MyException1("3", "4", "aaa"), "MyException1: aaa")
check(MyException1("5", "6", t = Throwable("bbb")), "MyException1: Throwable: bbb")
check(MyException1("5", "6", t = Throwable("bbb")), "MyException1")
check(MyException2("7", "8"), "MyException2")
check(MyException2("9", "0", "ccc"), "MyException2: ccc")
check(MyException2("A", "B", t = Throwable("ddd")), "MyException2: Throwable: ddd")
check(MyException2("A", "B", t = Throwable("ddd")), "MyException2")
if (storage != "1234567890AB") return "FAIL $storage"