1 setExpectedFailuresForSelfTest(2);
4 Promise.reject(new Error("Promise rejection."));
6 throw new Error("Synchronous rejection from async function.");
9 // The following rejections are caught, so they won't result in failures.
10 Promise.reject(new Error("Promise rejection.")).catch(() => {});
12 throw new Error("Synchronous rejection from async function.");