Skip to content

Commit

Permalink
[squash] move away from for-const-of loop
Browse files Browse the repository at this point in the history
  • Loading branch information
addaleax committed Jan 4, 2018
1 parent 51e7ecc commit a17b0d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/internal/wrap_js_stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ class JSStreamWrap extends Socket {
let pending = bufs.length;

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

function done(err) {
Expand Down

0 comments on commit a17b0d9

Please sign in to comment.