kotlin.test: 'fail' returns Nothing, 'assertFails' returns Throwable (not nullable).
Js tests now fail at the first failed assertion. #KT-10289 Fixed #KT-10369 Fixed
This commit is contained in:
+1
@@ -200,6 +200,7 @@
|
||||
Kotlin.UnsupportedOperationException = createClassNowWithMessage(Kotlin.RuntimeException);
|
||||
Kotlin.IndexOutOfBoundsException = createClassNowWithMessage(Kotlin.RuntimeException);
|
||||
Kotlin.IOException = createClassNowWithMessage(Kotlin.Exception);
|
||||
Kotlin.AssertionError = createClassNowWithMessage(Kotlin.Error);
|
||||
|
||||
Kotlin.throwNPE = function (message) {
|
||||
throw new Kotlin.NullPointerException(message);
|
||||
|
||||
Reference in New Issue
Block a user