Bug 1842773 - Part 5: Add ArrayBuffer.prototype.{maxByteLength,resizable} getters...
[gecko.git] / testing / mochitest / tests / browser / browser_fail_uncaught_rejection.js
blob86d3e77b7f3c0ac9aa352c34c2de44dce7d02869
1 setExpectedFailuresForSelfTest(2);
3 function test() {
4   Promise.reject(new Error("Promise rejection."));
5   (async () => {
6     throw new Error("Synchronous rejection from async function.");
7   })();
9   // The following rejections are caught, so they won't result in failures.
10   Promise.reject(new Error("Promise rejection.")).catch(() => {});
11   (async () => {
12     throw new Error("Synchronous rejection from async function.");
13   })().catch(() => {});