es6-promise: Possibly unhandled error should be thrown
Node v0.10, non-harmony. Such as:
var Promise = require('bluebird');
new Promise(function () { throw('err') });
// Unhandled error will be thrown.
var Promise = require('es6-promise').Promise;
new Promise(function () { throw('err') });
// Nothing will happen.
About this issue
- Original URL
- State: open
- Created 9 years ago
- Reactions: 2
- Comments: 44 (12 by maintainers)
Ya, still trying to find time 😉 It will land, I was a big proponent of the feature in the first place.
Chrome currently logs unhandled errors. Firefox does it on GC.
Happy to do the same as Chrome here. It should be a log rather than a throw, we’d be spec-breaking if it appeared in
window.onerror.