[JS IR] Not nullize external varargs if it is not on the end of call
This commit is contained in:
+1
-1
@@ -316,7 +316,7 @@ fun translateCallArguments(
|
|||||||
result is JsArrayLiteral &&
|
result is JsArrayLiteral &&
|
||||||
result.expressions.isEmpty()
|
result.expressions.isEmpty()
|
||||||
|
|
||||||
if (isEmptyExternalVararg) {
|
if (isEmptyExternalVararg && index == size - 1) {
|
||||||
null
|
null
|
||||||
} else result
|
} else result
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user