JS: fix translation of try statements with multiple catches

This commit is contained in:
Alexey Andreev
2016-11-24 14:43:49 +03:00
parent d9e0e9f0b3
commit 8ef72935a8
2 changed files with 21 additions and 13 deletions
@@ -17,9 +17,9 @@ fun bar(e: Exception): String {
s = "IllegalArgumentException"
exceptionObject = e
}
catch (e: IllegalStateException) {
catch (f: IllegalStateException) {
s = "IllegalStateException"
exceptionObject = e
exceptionObject = f
}
catch (e: Exception) {
s = "Exception"