Comparing version 2.9.26 to 2.9.27
@@ -0,1 +1,11 @@ | ||
## 2.9.27 (2015-05-30) | ||
Bugfixes: | ||
- Fix `sinon.useFakeTimers()` breaking scheduler ([#631](.)) | ||
Misc: | ||
- Add nw testing facilities (`node tools/test --nw`) | ||
## 2.9.26 (2015-05-25) | ||
@@ -2,0 +12,0 @@ |
"use strict"; | ||
var schedule; | ||
var util = require("./util"); | ||
var noAsyncScheduler = function() { | ||
throw new Error("No async scheduler available\u000a\u000a See http://goo.gl/m3OTXk\u000a"); | ||
}; | ||
if (require("./util.js").isNode) { | ||
var version = process.versions.node.split(".").map(Number); | ||
schedule = (version[0] === 0 && version[1] > 10) || (version[0] > 0) | ||
? function(fn) { global.setImmediate(fn); } : process.nextTick; | ||
if (!schedule) { | ||
if (typeof setImmediate !== "undefined") { | ||
schedule = setImmediate; | ||
} else if (typeof setTimeout !== "undefined") { | ||
schedule = setTimeout; | ||
} else { | ||
schedule = noAsyncScheduler; | ||
} | ||
} | ||
if (util.isNode && typeof MutationObserver === "undefined") { | ||
var GlobalSetImmediate = global.setImmediate; | ||
var ProcessNextTick = process.nextTick; | ||
schedule = util.isRecentNode | ||
? function(fn) { GlobalSetImmediate.call(global, fn); } | ||
: function(fn) { ProcessNextTick.call(process, fn); }; | ||
} else if (typeof MutationObserver !== "undefined") { | ||
@@ -21,0 +14,0 @@ schedule = function(fn) { |
@@ -279,3 +279,7 @@ "use strict"; | ||
}; | ||
ret.isRecentNode = ret.isNode && (function() { | ||
var version = process.versions.node.split(".").map(Number); | ||
return (version[0] === 0 && version[1] > 10) || (version[0] > 0); | ||
})(); | ||
try {throw new Error(); } catch (e) {ret.lastLineError = e;} | ||
module.exports = ret; |
{ | ||
"name": "bluebird", | ||
"description": "Full featured Promises/A+ implementation with exceptionally good performance", | ||
"version": "2.9.26", | ||
"version": "2.9.27", | ||
"keywords": [ | ||
@@ -63,3 +63,4 @@ "promise", | ||
"sinon": "~1.7.3", | ||
"uglify-js": "~2.4.16" | ||
"uglify-js": "~2.4.16", | ||
"kefir": "^2.4.1" | ||
}, | ||
@@ -66,0 +67,0 @@ "readmeFilename": "README.md", |
@@ -316,3 +316,3 @@ <a href="http://promisesaplus.com/"> | ||
Here any kind of unexpected error will automatically reported on `stderr` along with a stack trace because we only register a handler for the expected `SyntaxError`. | ||
Here any kind of unexpected error will be automatically reported on `stderr` along with a stack trace because we only register a handler for the expected `SyntaxError`. | ||
@@ -319,0 +319,0 @@ Ok, so, that's pretty neat. But actually not many libraries define error types and it is in fact a complete ghetto out there with ad hoc strings being attached as some arbitrary property name like `.name`, `.type`, `.code`, not having any property at all or even throwing strings as errors and so on. So how can we still listen for expected errors? |
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
444569
24
9001