summaryrefslogtreecommitdiff
path: root/lib/buffer.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/buffer.js')
-rw-r--r--lib/buffer.js2
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) {