Closed
Bug 1766130
Opened 3 years ago
Closed 3 years ago
Properly propagate errors from Promise creation
Categories
(Core :: DOM: Core & HTML, defect, P2)
Core
DOM: Core & HTML
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.
| Assignee | ||
Updated•3 years ago
|
Severity: -- → S2
Priority: -- → P2
| Assignee | ||
Comment 1•3 years ago
|
||
Depends on D144511
| Assignee | ||
Comment 2•3 years ago
|
||
Depends on D144515
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
Comment 4•3 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/b1675f271b4d
https://hg.mozilla.org/mozilla-central/rev/ff522f25daf3
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
status-firefox102:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 102 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•