Skip to content

Commit b7ff93f

Browse files
trivikrBethGriggs
authored andcommitted
dgram: use for...of
PR-URL: #30999 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Yuta Hiroto <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Rich Trott <[email protected]>
1 parent 027a2dc commit b7ff93f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎lib/dgram.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -527,8 +527,8 @@ function clearQueue(){
527527
state.queue=undefined;
528528

529529
// Flush the send queue.
530-
for(leti=0;i<queue.length;i++)
531-
queue[i]();
530+
for(constqueueEntryofqueue)
531+
queueEntry();
532532
}
533533

534534
functionisConnected(self){

0 commit comments

Comments
(0)