File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 4
4
// large and cause the process to run out of memory. When this value
5
5
// is reached the nextTimeQueue array will be shortend (see tickDone
6
6
// for details).
7
- const kMaxCallbacksUntilQueueIsShortened = 1e4 ;
7
+ const kMaxCallbacksPerLoop = 1e4 ;
8
8
9
9
exports . setup = setupNextTick ;
10
10
@@ -102,7 +102,7 @@ function setupNextTick() {
102
102
// callback invocation with small numbers of arguments to avoid the
103
103
// performance hit associated with using `fn.apply()`
104
104
_combinedTickCallback ( args , callback ) ;
105
- if ( kMaxCallbacksUntilQueueIsShortened < tickInfo [ kIndex ] )
105
+ if ( kMaxCallbacksPerLoop < tickInfo [ kIndex ] )
106
106
tickDone ( ) ;
107
107
}
108
108
tickDone ( ) ;
@@ -126,7 +126,7 @@ function setupNextTick() {
126
126
// callback invocation with small numbers of arguments to avoid the
127
127
// performance hit associated with using `fn.apply()`
128
128
_combinedTickCallback ( args , callback ) ;
129
- if ( kMaxCallbacksUntilQueueIsShortened < tickInfo [ kIndex ] )
129
+ if ( kMaxCallbacksPerLoop < tickInfo [ kIndex ] )
130
130
tickDone ( ) ;
131
131
if ( domain )
132
132
domain . exit ( ) ;
You can’t perform that action at this time.
0 commit comments