Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upPromises that return values now error on finished #700
Comments
This comment has been minimized.
This comment has been minimized.
Indeed, my bad. At least now we have a test for it :) |
This comment has been minimized.
This comment has been minimized.
No worries happy to help :) |
This comment has been minimized.
This comment has been minimized.
@corbinu thanks for the help, this is now released as v13.0.4 |
This comment has been minimized.
This comment has been minimized.
This will also happen if you add Promise.mapSeries( //bluebird
[
... many promises
],
() => {} //iterator, don't care about iteration here
)
.then(done) // oops, done is called with the results of the mapSeries call!!
.catch(err => {
console.error(err);
done(err);
});
});
Solution: .then(() => done() ) That error is mighty cryptic though. Could it be changed to "done called with non-Error object"? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The latest change in 13.0.3 has caused tests that return a promise that returns an value to cause an error. Looks like it was working from 10.1.0 on.
for example a test