I am happy to inform you that we have recently landed Bug 903433, which
ensures that uncaught errors or rejections in Promise.jsm or Task.jsm
are now displayed.

So, from now on, if you are attempting to debug asynchronous code using
Promise.jsm/Task.jsm, don't forget to look in the browser console
output, you should find the error that you are looking for.

Additionally, since bug 908955 landed, Promise.jsm/Task.jsm will dump()
any programming error (e.g. TypeError, SyntaxError and the ilk)
immediately, regardless of whether it is caught. So, keep an eye on your
stderr, too.

Both changes should make debugging async code much easier.

Cheers,
 David

-- 
David Rajchenbach-Teller, PhD
 Performance Team, Mozilla
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to