diff options
author | ben fleis <benfleis@uber.com> | 2015-11-25 14:09:24 +0100 |
---|---|---|
committer | ben fleis <benfleis@uber.com> | 2015-11-25 16:12:43 +0100 |
commit | 8acc85db458904d48ba90c767009202de265ca2a (patch) | |
tree | f78179081c7376fbb0ea4c21b69720b5a0f37bfa /lib/async.js | |
parent | b0797ca40b102012b582d17e1825ae81731b15da (diff) | |
download | async-8acc85db458904d48ba90c767009202de265ca2a.tar.gz |
pass last result to while/until callback
incorporate @thanodnl suggestions to pass all args
also tidy up the test changes
Diffstat (limited to 'lib/async.js')
-rw-r--r-- | lib/async.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/async.js b/lib/async.js index 5c17819..08af693 100644 --- a/lib/async.js +++ b/lib/async.js @@ -781,7 +781,7 @@ } else if (test.apply(this, args)) { iterator(next); } else { - callback(null); + callback.apply(null, [null].concat(args)); } }); iterator(next); |