'rejected promise prevents unhandledRejection', function(done) {
var e = new Error();
onUnhandledFail(done);
- Promise.all([Promise.reject(e)]).then(common.fail, function() {});
+ Promise.all([Promise.reject(e)]).then(common.fail, function() {});
});
asyncTest(
});
p = Promise.all([p]);
process.nextTick(function() {
- p.then(common.fail, function() {});
+ p.then(common.fail, function() {});
});
}
);
Promise.resolve().then(function() {
process.nextTick(function() {
Promise.resolve().then(function() {
- a.catch(function() {});
+ a.catch(function() {});
});
});
});
Promise.resolve().then(function() {
process.nextTick(function() {
Promise.resolve().then(function() {
- a.catch(function() {});
+ a.catch(function() {});
});
});
});
Promise.resolve().then(function() {
process.nextTick(function() {
Promise.resolve().then(function() {
- a.catch(function() {});
+ a.catch(function() {});
});
});
});
process.nextTick(function() {
Promise.resolve().then(function() {
process.nextTick(function() {
- a.catch(function() {});
+ a.catch(function() {});
});
});
});
process.nextTick(function() {
Promise.resolve().then(function() {
process.nextTick(function() {
- a.catch(function() {});
+ a.catch(function() {});
});
});
});
process.nextTick(function() {
Promise.resolve().then(function() {
process.nextTick(function() {
- a.catch(function() {});
+ a.catch(function() {});
});
});
});