Skip to content

Commit 334fcbe

Browse files
trivikrtargos
authored andcommitted
dgram: use for...of
PR-URL: #30999 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Yuta Hiroto <hello@hiroppy.me> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent 73701b2 commit 334fcbe

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎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)