Comparing version 2.9.27 to 2.9.28
@@ -0,1 +1,8 @@ | ||
## 2.9.28 (2015-06-14) | ||
Bugfixes: | ||
- Fix handled rejection being reported as unhandled in certain scenarios when using [.all](.) or [Promise.join](.) ([#645](.)) | ||
- Fix custom scheduler not being called in Google Chrome when long stack traces are enabled ([#650](.)) | ||
## 2.9.27 (2015-05-30) | ||
@@ -2,0 +9,0 @@ |
@@ -135,2 +135,5 @@ "use strict"; | ||
} else { | ||
if (schedule.isStatic) { | ||
schedule = function(fn) { setTimeout(fn, 0); }; | ||
} | ||
Async.prototype.invokeLater = function (fn, receiver, arg) { | ||
@@ -140,5 +143,7 @@ if (this._trampolineEnabled) { | ||
} else { | ||
setTimeout(function() { | ||
fn.call(receiver, arg); | ||
}, 100); | ||
this._schedule(function() { | ||
setTimeout(function() { | ||
fn.call(receiver, arg); | ||
}, 100); | ||
}); | ||
} | ||
@@ -151,5 +156,5 @@ }; | ||
} else { | ||
setTimeout(function() { | ||
this._schedule(function() { | ||
fn.call(receiver, arg); | ||
}, 0); | ||
}); | ||
} | ||
@@ -162,5 +167,5 @@ }; | ||
} else { | ||
setTimeout(function() { | ||
this._schedule(function() { | ||
promise._settlePromises(); | ||
}, 0); | ||
}); | ||
} | ||
@@ -167,0 +172,0 @@ }; |
@@ -17,3 +17,9 @@ "use strict"; | ||
Promise.prototype._ignoreRejections = function() { | ||
this._unsetRejectionIsUnhandled(); | ||
this._bitField = this._bitField | 16777216; | ||
}; | ||
Promise.prototype._ensurePossibleRejectionHandled = function () { | ||
if ((this._bitField & 16777216) !== 0) return; | ||
this._setRejectionIsUnhandled(); | ||
@@ -20,0 +26,0 @@ async.invokeLater(this._notifyUnhandledRejection, this, undefined); |
@@ -83,3 +83,3 @@ "use strict"; | ||
if (isResolved) { | ||
maybePromise._unsetRejectionIsUnhandled(); | ||
maybePromise._ignoreRejections(); | ||
} else if (maybePromise._isPending()) { | ||
@@ -86,0 +86,0 @@ maybePromise._proxyPromiseArray(this, i); |
{ | ||
"name": "bluebird", | ||
"description": "Full featured Promises/A+ implementation with exceptionally good performance", | ||
"version": "2.9.27", | ||
"version": "2.9.28", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "promise", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
445744
9021