-
Notifications
You must be signed in to change notification settings - Fork 188
Open
Description
I have this code on node v6.3.1 with step 1.0.0
var Step = require('step');
Step(
function one() {
doThis(0, "0", this);
},
function two(err, number, string) {
console.log(err, number, string);
var group = this.group();
for (var i=0; i<2; i++) {
doThis(i, String(i), group());
}
},
function three(err, numbers, strings) {
console.log(err, numbers, strings);
if (err) process.exit(1);
process.exit(0);
}
);
function doThis(number, string, callback) {
callback(null, number, string);
}
I get the following output
null 0 '0'
undefined [ 0, 1 ] undefined
So one calls do this which successfully callbacks with 0 and '0' but then I put it into a loop and use this.group() and it can no longer return the second parameter.
the expected output would be
null 0 '0'
null [ 0, 1 ] [ '0', '1' ]
Metadata
Metadata
Assignees
Labels
No labels