Closed Bug 1226003 Opened 9 years ago Closed 9 years ago

Stop using MaybeRejectBrokenly in DetailedPromise

Categories

(Core :: Audio/Video, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla45
Tracking Status
firefox45 --- fixed

People

(Reporter: bzbarsky, Assigned: eflores)

Details

Attachments

(1 file)

This pattern:

   RefPtr<DOMException> exception =
     DOMException::Create(aArg, aReason);
   Promise::MaybeRejectBrokenly(exception);

can be written as:

   ErrorResult rv;
   rv.ThrowDOMException(aArg, aReason);
   Promise::MaybeReject(rv);
Flags: needinfo?(edwin)
Sorry, totally forgot about this. Will change it in the morning.
Assignee: nobody → edwin
Flags: needinfo?(edwin)
Comment on attachment 8689504 [details] [diff] [review]
1226003.patch

r=me
Attachment #8689504 - Flags: review?(bzbarsky) → review+
https://hg.mozilla.org/mozilla-central/rev/6ac32f442f29
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla45
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: