Closed Bug 1713505 Opened 3 years ago Closed 3 years ago

Propagate exception to promise rejection in test utils

Categories

(Core :: Panning and Zooming, task)

task

Tracking

()

RESOLVED FIXED
91 Branch
Tracking Status
firefox91 --- fixed

People

(Reporter: kats, Assigned: kats)

Details

Attachments

(1 file)

Looking at something unrelated I noticed that exceptions from some of the apz utils aren't getting propagated to the promise reject() calls. This results in the promise throwing undefined instead, because JS is great like that.

Without this, the reject calls end up throwing "undefined"
to callers which is not particularly useful.

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 91 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: