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