-
-
Notifications
You must be signed in to change notification settings - Fork 94
catch-or-return options to report then(a, b)
or then(null, b)
#52
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
I believe that the current behavior is correct as some people would rather do without I see your point that they are going to be missing any crashes in the initial handler. I'd consider an What do you think? |
Would this disallow the second argument being used within |
I think we may need |
then(a, b)
or then(null, b)
Maybe it is better for at least the latter option to be its own rule (and as might be tracked by #217). |
makePromise().then(thenHandler, catchHandler)
is incorrectly considered correct by the always-catch plugin whenallowThen: true
is specified.While the
catchHandler
will handle a rejection of thePromise
returned bymakePromise()
, it will not handle any rejection that happens in thethenHandler
; it needs to be handled by its own catch handler, which could be a.then(null /* | undefined */, catchHandler)
according toallowThen: true
.The text was updated successfully, but these errors were encountered: