Closed hurrymaplelad closed 8 years ago
This prints done as expected:
done
callbackify(function() { return Y.resolve('a'); })(1, function() { return console.log('done'); });
while this does not:
callbackify(function() { return Y.resolve('a'); })(function() { return console.log('done'); });
The only difference is the first example passes an extra (unused) argument to the function returned by callbackify.
Thanks for your report. I have added two test cases for this function. The fixed new version has published.
This prints
done
as expected:while this does not:
The only difference is the first example passes an extra (unused) argument to the function returned by callbackify.