Closed Bug 772022 Opened 13 years ago Closed 13 years ago

Unit test failure: Promise takes the reject path for all chained handlers when a promise is rejected

Categories

(Pancake Graveyard :: Front-end, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: sfoster, Unassigned)

Details

Error in assertion: "takes the reject path for all chained handlers when a promise is rejected" Expected 1 to be 2. Expected 1 to be 0. This is a misunderstanding in the spec - it should be changed to assert the actual behavior. But, we should also make sure we're not making the same assumption in our code.
Target Milestone: --- → M3
Test updated to expect actual behavior of our promise lib: https://bitbucket.org/mozillapancake/pancake/changeset/8af58298a24d for the record, I think this behavior is wrong/bad. It should be enough to return an Error instance. Ideally it should be easier to cause a chain of promise handlers to take the rejection path (which neednt signify an error, it more like async if/else)
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.