From: Daniel Cousens Date: Sat, 15 Aug 2015 15:52:25 +0000 (+1000) Subject: inline i declarations X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=e0ca63e56f554d1feaff8df8b9723f5cedfd8717;p=buffer.git inline i declarations --- diff --git a/index.js b/index.js index c47a92d..b628935 100644 --- a/index.js +++ b/index.js @@ -624,10 +624,9 @@ function base64Slice (buf, start, end) { function decodeLargeCodePointsArray (array) { var res = '' - var i var end = array.length - for (i = 0; i < end; i++) { + for (var i = 0; i < end; i++) { res += String.fromCharCode(array[i]) } @@ -654,9 +653,8 @@ function utf8Slice (buf, start, end) { var tempCodePoint var codePoint var res = [] - var i = start - for (; i < end; i += bytesPerSequence) { + for (var i = start; i < end; i += bytesPerSequence) { firstByte = buf[i] codePoint = 0xFFFD