Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

const { PromiseTestUtils } = ChromeUtils.importESModule(
);
PromiseTestUtils.allowMatchingRejectionsGlobally(/Allowed rejection./);
PromiseTestUtils.expectUncaughtRejection(/Promise rejection./);
PromiseTestUtils.expectUncaughtRejection(/Promise rejection./);
function test() {
Promise.reject(new Error("Promise rejection."));
Promise.reject(new Error("Promise rejection."));
Promise.reject(new Error("Allowed rejection."));
}