[JS IR] Invokes which is not concrete suspend not wrap into function call
This commit is contained in:
+1
@@ -92,6 +92,7 @@ private fun isFunctionTypeInvoke(receiver: JsExpression?, call: IrCall): Boolean
|
|||||||
|
|
||||||
return simpleFunction.name == OperatorNameConventions.INVOKE
|
return simpleFunction.name == OperatorNameConventions.INVOKE
|
||||||
&& receiverType.isFunctionTypeOrSubtype()
|
&& receiverType.isFunctionTypeOrSubtype()
|
||||||
|
&& (!receiverType.isSuspendFunctionTypeOrSubtype() || receiverType.isSuspendFunction())
|
||||||
}
|
}
|
||||||
|
|
||||||
fun translateCall(
|
fun translateCall(
|
||||||
|
|||||||
Reference in New Issue
Block a user