Skip to content

Commit

Permalink
fix(fork): do not change expected order of arguments
Browse files Browse the repository at this point in the history
Replacing unshift with push allows to users to have expected order of argumets
relates to avajs/ava#342
  • Loading branch information
valorkin committed Jul 21, 2016
1 parent e6dae43 commit 387d7a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function wrapSpawnFork(method /*, file , args, options*/) {
if (debugPort) {
//only add --debug=port when they didn't already add one
if (!argsPortBrk[0]) {
args.unshift('--debug=' + debugPort);
args.push('--debug=' + debugPort);
argsPortBrk[1] = 0;
}
if (!argsPortBrk[2] && myDebugBreak) {
Expand Down

0 comments on commit 387d7a5

Please sign in to comment.