Don't setTimeout() every time the stack is cleared via MessageChannel()
This commit is contained in:
committed by
Gregg Van Hove
parent
eb4671452e
commit
0c6397d802
@@ -1633,6 +1633,7 @@ getJasmineRequireObj().clearStack = function(j$) {
|
||||
tail = tail.next = { task: fn };
|
||||
channel.port2.postMessage(0);
|
||||
} else {
|
||||
currentCallCount = 0;
|
||||
setTimeout(fn);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user