medikoo / deferred

Modular and fast Promises implementation for JavaScript
ISC License
364 stars 20 forks source link

Consider to naturally throw errors that occur in `map` callback #44

Closed medikoo closed 8 years ago

medikoo commented 8 years ago

Those callbacks are invoked immediately, and any crashes in them should be treated as programmer errors.

medikoo commented 8 years ago

This is off the table, for following reasons:

Putting it simply if it cannot be both consistent with other methods and make programming errors being catchable it's no-go.