Skip to content
Myr

Merge pull request #291 from Quentin01/master

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

Fix a bug with variadic argument.

authored by Zhiye Li · committed by Zhiye Li · parents 79ea120, 56ae43e · Browse files · 2 files+2 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

2 files+2 added−1 removed

  • tests:+1 added−0 removed
  • other:+1 added−1 removed

2 files+2 added−1 removed

modified:test/test.variadic.args.js+1 added
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