substantial/sinon-stub-promise

Handle thrown error in resolved promise

khjrtbrg opened this issue · 0 comments

RSVP.Promise.resolve()
    .then(function() { 
        throw new Error();
    }).catch(function(e) {
        console.log(e);
    });

RSVP library propagates thrown errors in resolved promises, however in tests, this throws an error.