[JS IR BE] Remove unnecesary println from tests

This commit is contained in:
Svyatoslav Kuzmich
2019-03-01 01:52:37 +03:00
parent d203e062bb
commit 0f07209490
3 changed files with 4 additions and 8 deletions
@@ -1,9 +1,8 @@
// IGNORE_BACKEND: JS_IR
// KJS_WITH_FULL_RUNTIME
// EXPECTED_REACHABLE_NODES: 1323
fun <T> checkThrown(x: T, block: (T) -> Any?): Unit? {
return try {
println((block(x) ?: "").toString())
block(x)
null
}
catch (e: NoWhenBranchMatchedException) {
@@ -13,7 +12,7 @@ fun <T> checkThrown(x: T, block: (T) -> Any?): Unit? {
fun <T> checkNotThrown(x: T, block: (T) -> Any?): Unit? {
return try {
println((block(x) ?: "").toString())
block(x)
Unit
}
catch (e: NoWhenBranchMatchedException) {