Closed Bug 1766130 Opened 3 years ago Closed 3 years ago

Properly propagate errors from Promise creation

Categories

(Core :: DOM: Core & HTML, defect, P2)

defect

Tracking

()

RESOLVED FIXED
102 Branch
Tracking Status
firefox102 --- fixed

People

(Reporter: peterv, Assigned: peterv)

References

Details

Attachments

(2 files)

Various callers of Promise::Create don't propagate any errors that it throws back to hte bindings code. As the bindings code assumes that the callee will always return a non-null Promise unless an error is returned, it will crash in these cases if Promise::Create fails.

Severity: -- → S2
Priority: -- → P2
Pushed by pvanderbeken@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b1675f271b4d Properly propagate errors from Promise creation. r=smaug https://hg.mozilla.org/integration/autoland/rev/ff522f25daf3 Mark throwing Promise-returning methods that create a new Promise as NewObject. r=smaug
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 102 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: