Skip to content

Commit

Permalink
align with finally proposal (use throw, not constructor.reject)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanpenner committed Sep 12, 2016
1 parent 59b87df commit 2552ddc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rsvp/promise.js
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ Promise.prototype = {
return promise.then(value => {
return constructor.resolve(callback()).then(() => value);
}, reason => {
return constructor.resolve(callback()).then(() => constructor.reject(reason))
return constructor.resolve(callback()).then(() => { throw reason; });
}, label);
}
};

0 comments on commit 2552ddc

Please sign in to comment.