No longer try to use nextTick since node.js gets upset

This commit is contained in:
Gregg Van Hove
2017-04-25 14:38:09 -07:00
parent fbd2ffc08b
commit b771c083cb
3 changed files with 2 additions and 20 deletions

View File

@@ -18,9 +18,7 @@ getJasmineRequireObj().clearStack = function(j$) {
}
function getClearStack(global) {
if (global && global.process && j$.isFunction_(global.process.nextTick)) {
return global.process.nextTick;
} else if (j$.isFunction_(global.setImmediate)) {
if (j$.isFunction_(global.setImmediate)) {
var realSetImmediate = global.setImmediate;
return function(fn) {
realSetImmediate(fn);