[JS IR] Not nullize external varargs if it is not on the end of call

This commit is contained in:
Ilya Goncharov
2021-03-05 20:15:43 +03:00
parent b8d5712bc0
commit ece0e200d5
@@ -316,7 +316,7 @@ fun translateCallArguments(
result is JsArrayLiteral &&
result.expressions.isEmpty()
if (isEmptyExternalVararg) {
if (isEmptyExternalVararg && index == size - 1) {
null
} else result
}