if (newNames.length > newLength) {
newNames = Arrays.copyOf(newNames, newLength);
newVarArgs = Arrays.copyOf(newVarArgs, newLength);
}
EvalPolicy evalPolicy = promiseWrapper.getEvalPolicy(function, builtinRootNode, fi);
resArgs[fi] = PromiseNode.createVarArgs(varArgs.getSourceSection(), evalPolicy, newVarArgs, newNames, closureCache, callSrc);
} else {
// Normal argument: just wrap in promise
RNode defaultArg = fi < defaultArgs.length ? defaultArgs[fi] : null;
resArgs[fi] = wrap(promiseWrapper, function, formals, builtinRootNode, closureCache, arg, defaultArg, fi);