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
{{ message }}
This repository was archived by the owner on Jan 22, 2025. It is now read-only.
Putting exceptions thrown by .done() into the current domain.
When an event emitter or other domain-using callback library is used inside a fulfillment or rejection handler, and throws an error, it would escape Q but wouldn't escape the domain. E.g.
returnQ.resolve().then(function(){doSomethingAsyncWithoutPromises(function(err,whatever){// Q doesn't catch this, but domains would if we wired it up right.callANonexistantFunction();});});