JS IR: apply forLoopsLowering
Replaced createTemporaryVariable usages with createTmpVariables. The latter doesn't rely on KotlinType's. Using KotlinType with JS_IR backend causes runtime excpetions, as some expected descriptor API is not implemented, because it avoids descriptors as much as possible.
This commit is contained in:
@@ -21,5 +21,8 @@ fun THROW_CCE(): Nothing {
|
||||
fun THROW_NPE(): Nothing {
|
||||
throw NullPointerException()
|
||||
}
|
||||
fun THROW_IAE(msg: String): Nothing {
|
||||
throw IllegalArgumentException(msg)
|
||||
}
|
||||
|
||||
fun <T:Any> ensureNotNull(v: T?): T = if (v == null) THROW_NPE() else v
|
||||
Reference in New Issue
Block a user