Comparing version 2.9.25 to 2.9.26
@@ -0,1 +1,8 @@ | ||
## 2.9.26 (2015-05-25) | ||
Bugfixes: | ||
- Fix crash in NW [#624](.) | ||
- Fix [`.return()`](.) not supporting `undefined` as return value [#627](.) | ||
## 2.9.25 (2015-04-28) | ||
@@ -2,0 +9,0 @@ |
@@ -13,2 +13,6 @@ "use strict"; | ||
}; | ||
var returnUndefined = function() {}; | ||
var throwUndefined = function() { | ||
throw undefined; | ||
}; | ||
@@ -30,2 +34,4 @@ var wrapper = function (value, action) { | ||
Promise.prototype.thenReturn = function (value) { | ||
if (value === undefined) return this.then(returnUndefined); | ||
if (wrapsPrimitiveReceiver && isPrimitive(value)) { | ||
@@ -45,2 +51,4 @@ return this._then( | ||
Promise.prototype.thenThrow = function (reason) { | ||
if (reason === undefined) return this.then(throwUndefined); | ||
if (wrapsPrimitiveReceiver && isPrimitive(reason)) { | ||
@@ -47,0 +55,0 @@ return this._then( |
@@ -9,3 +9,3 @@ "use strict"; | ||
schedule = (version[0] === 0 && version[1] > 10) || (version[0] > 0) | ||
? global.setImmediate : process.nextTick; | ||
? function(fn) { global.setImmediate(fn); } : process.nextTick; | ||
@@ -12,0 +12,0 @@ if (!schedule) { |
{ | ||
"name": "bluebird", | ||
"description": "Full featured Promises/A+ implementation with exceptionally good performance", | ||
"version": "2.9.25", | ||
"version": "2.9.26", | ||
"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
444273
9005