diff --git a/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/lower/CallableReferenceLowering.kt b/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/lower/CallableReferenceLowering.kt index 66e22632f3c..6cb14d92b32 100644 --- a/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/lower/CallableReferenceLowering.kt +++ b/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/lower/CallableReferenceLowering.kt @@ -43,28 +43,6 @@ class CallableReferenceLowering(private val context: CommonBackendContext) : Bod override fun visitFunctionExpression(expression: IrFunctionExpression): IrExpression { expression.transformChildrenVoid(this) - if (expression.function.isSuspend) { - val startOffset = expression.startOffset - val endOffset = expression.endOffset - val type = expression.type - val origin = expression.origin - val function = expression.function - - return IrBlockImpl( - startOffset, endOffset, type, origin, - listOf( - function, - IrFunctionReferenceImpl( - startOffset, endOffset, type, - function.symbol, - typeArgumentsCount = 0, - reflectionTarget = null, - origin = origin - ) - ) - ) - } - val function = expression.function val (clazz, ctor) = buildLambdaReference(function, expression)