Commit a9580e1b authored by Tristan Cavelier's avatar Tristan Cavelier

allFulfilled does resolve sometimes fix

If allFulfilled receive a fulfilled and a rejected promise then the
allFulfilled promise is never resolved. Fixed.
parent 045bfa65
...@@ -187,6 +187,9 @@ ...@@ -187,6 +187,9 @@
if (error_count === length) { if (error_count === length) {
reject(err); reject(err);
} }
if (count === length) {
resolve(results);
}
} }
for (i = 0; i < length; i += 1) { for (i = 0; i < length; i += 1) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment