canjs / can-zone

A context for tracking asynchronous activity in JavaScript applications.
https://v4.canjs.com/doc/can-zone.html
MIT License
92 stars 4 forks source link

Don't rethrow in a Promise rejection #103

Closed matthewp closed 7 years ago

matthewp commented 7 years ago

Instead of rethrowing in a promise rejection, which forces the rejection into an Error object, simply return a new Promise.reject(val).

Closes #92