[JS IR] Concat varargs with non varargs on compile time for function w/o receiver
This commit is contained in:
+7
@@ -204,12 +204,19 @@ fun translateCall(
|
|||||||
JsInvocation(iifeFun)
|
JsInvocation(iifeFun)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
if (argumentsAsSingleArray is JsArrayLiteral) {
|
||||||
|
JsInvocation(
|
||||||
|
JsNameRef(symbolName),
|
||||||
|
argumentsAsSingleArray.expressions
|
||||||
|
)
|
||||||
} else {
|
} else {
|
||||||
JsInvocation(
|
JsInvocation(
|
||||||
JsNameRef("apply", JsNameRef(symbolName)),
|
JsNameRef("apply", JsNameRef(symbolName)),
|
||||||
listOf(JsNullLiteral(), argumentsAsSingleArray)
|
listOf(JsNullLiteral(), argumentsAsSingleArray)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
JsInvocation(ref, listOfNotNull(jsExtensionReceiver) + arguments)
|
JsInvocation(ref, listOfNotNull(jsExtensionReceiver) + arguments)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user