Permalink
Browse files

Handle edge case for when step promises is set to null.

  • Loading branch information...
1 parent 56418b5 commit 613ef464954634604a92bbccd2a3bb84387f9544 @bnoguchi committed Apr 5, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/sequence.js
View
@@ -62,7 +62,7 @@ MaterializedSequence.prototype = {
// in the sequence's state via seq.values
var returned = arguments
, vals = seq.values;
- promises.forEach( function (valName, i) {
+ if (promises !== null) promises.forEach( function (valName, i) {
vals[valName] = returned[i];
});
});

0 comments on commit 613ef46

Please sign in to comment.