Skip to content

Instantly share code, notes, and snippets.

diff --git a/lib/buffer.js b/lib/buffer.js
index ecb25b7..b68e13b 100644
--- a/lib/buffer.js
+++ b/lib/buffer.js
@@ -91,6 +91,9 @@ SlowBuffer.prototype.slice = function (start, end) {
return new Buffer(this, end - start, +start);
};
+SlowBuffer.prototype.indexOf = function indexOf(pattern, offset, max_offset) {
+ return this.indexOf(pattern, offset, max_offset)