From: Kirill Fomichev Date: Wed, 11 Sep 2019 20:31:07 +0000 (+0300) Subject: fix variable name for hexSlice X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=8400fa3791a0836930aa9cfe737a44b87ad5c806;p=buffer.git fix variable name for hexSlice --- diff --git a/index.js b/index.js index 9ec8a35..19b0468 100644 --- a/index.js +++ b/index.js @@ -1068,7 +1068,7 @@ function hexSlice (buf, start, end) { var out = '' for (var i = start; i < end; ++i) { - out += hexSliceNewLookupTable[buf[i]] + out += hexSliceLookupTable[buf[i]] } return out } @@ -1786,7 +1786,7 @@ function numberIsNaN (obj) { // Create lookup table for `toString('hex')` // See: https://github.com/feross/buffer/issues/219 -var hexSliceNewLookupTable = (function () { +var hexSliceLookupTable = (function () { var alphabet = '0123456789abcdef' var table = new Array(256) for (var i = 0; i < 16; ++i) {