Dear everyone, After weeks tracking and fixing blockers, we are in the process of attempting to land bug 976205. If this sticks, it will change the behavior of xpcshell tests with respect to uncaught asynchronous errors: uncaught promise rejections using Promise.jsm will cause TEST-UNEXPECTED-FAIL.
Rationales: 1. uncaught exceptions have always been treated as errors, there is no reason to assume that promise rejections, which implement the same behavior as exceptions, are different; 2. experience has shown that ignoring promise rejections could very easily hide a real bug. Precautions: In order to make sure that all uncaught rejections are reported and to make it easier to pinpoint their sources, we had to make a single assumption. Namely, we assume if a call to `add_task` leaves a rejected promise without any error-handler, this rejection will remain uncaught. So far, this heuristic hasn't caused any false positive. We intend to progressively extend this policy to: - mochitests (bug 1016387); - addon-sdk tests (bug 998277); - DOM Promise (bug 989960). Cheers, David -- David Rajchenbach-Teller, PhD Performance Team, Mozilla
signature.asc
Description: OpenPGP digital signature
_______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform