This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |