Skip to content

Commit 2f401b1

Browse files
author
Beau Gunderson
committed
[fix] fix undefined fns.captures in async mode
Fixes #183 and #187.
1 parent e537801 commit 2f401b1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/director/router.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ Router.prototype.invoke = function (fns, thisArg, callback) {
422422
return _asyncEverySeries(fn, apply, next);
423423
}
424424
else if (typeof fn == 'function') {
425-
fn.apply(thisArg, fns.captures.concat(next));
425+
fn.apply(thisArg, (fns.captures || []).concat(next));
426426
}
427427
};
428428
_asyncEverySeries(fns, apply, function () {

0 commit comments

Comments
 (0)