[ospec] fix nextTickish()
This commit is contained in:
parent
618020cd79
commit
bd519f3c23
1 changed files with 1 additions and 1 deletions
|
|
@ -219,7 +219,7 @@ module.exports = new function init() {
|
|||
if(hasProcess) {
|
||||
nextTickish = process.nextTick
|
||||
} else {
|
||||
nextTickish = function fakeFastNextTick(fn) {
|
||||
nextTickish = function fakeFastNextTick(next) {
|
||||
if (stack++ < 5000) next()
|
||||
else setTimeout(next, stack = 0)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue