Closed kylepo99 closed 11 months ago
Should be fixed on the master branch now. Finally error was being propagated into the internals of the Promise library and stopping execution of the code that keeps things flowing down the Promise chain. Thanks for finding this
Turns out my fix broke something else so I fixed the fix... the world should be right again
if an error is thrown inside a finally handler of a promise that has been timed out, the promise is cancelled and the Timeout Error does not propagate to the subsequent catch handlers. This leads to unexpected silent failures that gives the appearance the promise is yielding forever in cases where timeout rejection is expected
Error inside handler
No Error inside handler, Works as intended.
In the second example, if there's no error in the finally block, the catch handler is correctly invoked due to the :timeout. The expected behavior is for the catch handler to always be triggered by the :timeout, even if there is an error in the finally block.