summaryrefslogtreecommitdiff
path: root/lib/async.js
diff options
context:
space:
mode:
authorben fleis <benfleis@uber.com>2015-11-25 14:09:24 +0100
committerben fleis <benfleis@uber.com>2015-11-25 16:12:43 +0100
commit8acc85db458904d48ba90c767009202de265ca2a (patch)
treef78179081c7376fbb0ea4c21b69720b5a0f37bfa /lib/async.js
parentb0797ca40b102012b582d17e1825ae81731b15da (diff)
downloadasync-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.js2
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);