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

Can-zone tasks.js should reject the promise instead of rethrowing the error. #92

Closed marshallswain closed 7 years ago

marshallswain commented 7 years ago

This is to keep the caught promises errors from showing up in the console. This code is currently rethrowing the error, when it could pass on a rejected promise: https://github.com/canjs/can-zone/blob/master/lib/tasks.js#L109

https://github.com/donejs/bitcentive/issues/112