Bug 1842773 - Part 5: Add ArrayBuffer.prototype.{maxByteLength,resizable} getters...
[gecko.git] / testing / mochitest / tests / browser / browser_fail_uncaught_rejection_expected_multi.js
blobcea5a870aac19c8815672f7abdcfd4a51dbeb85f
1 setExpectedFailuresForSelfTest(1);
3 // The test will fail because an expected uncaught rejection is actually caught.
4 const { PromiseTestUtils } = ChromeUtils.importESModule(
5   "resource://testing-common/PromiseTestUtils.sys.mjs"
6 );
7 PromiseTestUtils.expectUncaughtRejection(/Promise rejection./);
9 function test() {
10   Promise.reject(new Error("Promise rejection.")).catch(() => {});