JS: fix translation of !! operation
This commit is contained in:
@@ -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
@@ -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 () {
|
||||||
|
|||||||
Reference in New Issue
Block a user