[JS IR] Invokes which is not concrete suspend not wrap into function call

This commit is contained in:
Ilya Goncharov
2021-08-18 20:25:17 +03:00
committed by Space
parent c3044e558a
commit ee712b2770
@@ -92,6 +92,7 @@ private fun isFunctionTypeInvoke(receiver: JsExpression?, call: IrCall): Boolean
return simpleFunction.name == OperatorNameConventions.INVOKE
&& receiverType.isFunctionTypeOrSubtype()
&& (!receiverType.isSuspendFunctionTypeOrSubtype() || receiverType.isSuspendFunction())
}
fun translateCall(