JS: fix translation of !! operation

This commit is contained in:
Alexey Andreev
2016-10-24 18:30:01 +03:00
parent cacd917350
commit 3d9beb15da
2 changed files with 2 additions and 2 deletions
@@ -7,7 +7,7 @@ fun box(): String {
try { try {
if ((a!! + 3) == 3) return "fail1" if ((a!! + 3) == 3) return "fail1"
} }
catch (e: Throwable) { catch (e: NullPointerException) {
return "OK" return "OK"
} }
return "fail2" return "fail2"
+1 -1
View File
@@ -205,7 +205,7 @@
Kotlin.Throwable = Error; Kotlin.Throwable = Error;
Kotlin.throwNPE = function (message) { Kotlin.throwNPE = function (message) {
throw new Kotlin.kotlin.ranges.NullPointerException(message); throw new Kotlin.kotlin.NullPointerException(message);
}; };
Kotlin.throwCCE = function () { Kotlin.throwCCE = function () {