Update JS tests

This commit is contained in:
Mikhael Bogdanov
2021-07-13 08:56:08 +02:00
parent 1fe1c197ee
commit 5f3f2e762a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -126,7 +126,7 @@ fun box(): String {
return "failed when test calling order when using spread operator with some args"
val baz: Bar? = Bar(1)
if (!(baz!!)?.test(0, 1, 1))
if (!(baz!!)?.test(0, 1, 1)!!)
return "failed when combined SureCall and SafeCall, maybe we lost cached expression"
val a = arrayOf(1, 2)
@@ -27,7 +27,7 @@ fun toJsClass(kType: KType) = (kType.classifier as KClass<*>)?.js
@ExperimentalStdlibApi
fun box(): String {
return test(toJsClass(typeOf<B>())).test()
return test(toJsClass(typeOf<B>())!!).test()
}
// FILE: test.js