From 8400fa3791a0836930aa9cfe737a44b87ad5c806 Mon Sep 17 00:00:00 2001 From: Kirill Fomichev Date: Wed, 11 Sep 2019 23:31:07 +0300 Subject: [PATCH] fix variable name for hexSlice --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.34.1