You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This shows the callback being called twice, once with no error (expected) and once with the error contained in the callback! After doing a bit of digging I found the try/catch block in index.js:117 to be the culprit. I assume this was put in so that synchronous type functions would produce callback style errors. It's a really messy bug to have though because it can catch all downstream errors of the callback.
The text was updated successfully, but these errors were encountered:
jspri
added a commit
to jspri/batch
that referenced
this issue
Nov 3, 2016
When the callback provided to
batch.end
throws an error things can go a bit haywire... Here is an example I put together.Outputs
This shows the callback being called twice, once with no error (expected) and once with the error contained in the callback! After doing a bit of digging I found the
try/catch
block inindex.js:117
to be the culprit. I assume this was put in so that synchronous type functions would produce callback style errors. It's a really messy bug to have though because it can catch all downstream errors of the callback.The text was updated successfully, but these errors were encountered: