Skip to content

Commit a17b0d9

Browse files
committed
[squash] move away from for-const-of loop
1 parent 51e7ecc commit a17b0d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/internal/wrap_js_stream.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,8 @@ class JSStreamWrap extends Socket {
145145
let pending = bufs.length;
146146

147147
this.stream.cork();
148-
for (const buf of bufs)
149-
this.stream.write(buf, done);
148+
for (var i = 0; i < bufs.length; ++i)
149+
this.stream.write(bufs[i], done);
150150
this.stream.uncork();
151151

152152
function done(err) {

0 commit comments

Comments
 (0)