[Pkg-javascript-commits] [node-async] 202/480: `waterfall` now passes all arguments to callback even if there was an error.
Jonas Smedegaard
js at moszumanska.debian.org
Fri May 2 08:58:26 UTC 2014
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository node-async.
commit cd7a17b8195c5dbed8c165b22287ae9b2d0a5144
Author: Alex Gorbatchev <alex.gorbatchev at gmail.com>
Date: Fri Jun 15 16:25:16 2012 -0700
`waterfall` now passes all arguments to callback even if there was an error.
---
lib/async.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/async.js b/lib/async.js
index 7cc4f5e..eda960e 100644
--- a/lib/async.js
+++ b/lib/async.js
@@ -425,7 +425,7 @@
var wrapIterator = function (iterator) {
return function (err) {
if (err) {
- callback(err);
+ callback.apply(null, arguments);
callback = function () {};
}
else {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-async.git
More information about the Pkg-javascript-commits
mailing list