From a17b0d97fc5a88298886a53b49d63032eca645a0 Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Thu, 4 Jan 2018 21:01:04 +0100 Subject: [PATCH] [squash] move away from for-const-of loop --- lib/internal/wrap_js_stream.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/internal/wrap_js_stream.js b/lib/internal/wrap_js_stream.js index f7d2a376cc5e8b..1c494e57e1f9dd 100644 --- a/lib/internal/wrap_js_stream.js +++ b/lib/internal/wrap_js_stream.js @@ -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) {