Skip to content
Myr

Fix a bug with variadic argument

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by buathi_q · committed by buathi_q · parent 79ea120 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:index.js+1 added-1 removed
264 unmodified lines
265 if (i !== self._args.length - 1) {266 self.variadicArgNotLast(arg.name);267 }268269 args[i] = args.slice(i);269 args[i] = args.splice(i);270 }271 });272273 // Always append ourselves to the end of the arguments,
708 unmodified lines