stefanpenner / es6-promise

A polyfill for ES6-style Promises
MIT License
7.29k stars 594 forks source link

Update -internal.js #189

Closed vivekkodira1 closed 8 years ago

vivekkodira1 commented 8 years ago

Adds logic to log the error in the console. Doing this since to ensure better logging from the method for developers who have not used the ".catch()" notation in the calling methods.

stefanpenner commented 8 years ago

This will result in false positives, the correct solution would be to schedule the error at the end of the current turn, and if the promise isn't then handled log.

I did this already in RSVP:

Fully intend to eventually port it here, just haven't had a chance. If you hare motivated/interested it would be quite helpful

vivekkodira1 commented 8 years ago

Thank you. Will check these links and port it if I can.