diff options
Diffstat (limited to 'lib/buffer.js')
-rw-r--r-- | lib/buffer.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/buffer.js b/lib/buffer.js index 89bbfd2474..cfe3080810 100644 --- a/lib/buffer.js +++ b/lib/buffer.js @@ -763,7 +763,7 @@ function slowIndexOf(buffer, val, byteOffset, encoding, dir) { case 'ascii': case 'hex': return binding.indexOfBuffer( - buffer, Buffer.from(val, encoding), byteOffset, encoding, dir); + buffer, Buffer.from(val, encoding), byteOffset, encoding, dir); default: if (loweredCase) { |