Skip to content

Commit 4fb63ce

Browse files
committed
fix util.isBuffer to work in browserify 3.x
1 parent 153d685 commit 4fb63ce

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

support/isBufferBrowser.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@ module.exports = function isBuffer(arg) {
22
return arg && typeof arg === 'object'
33
&& typeof arg.copy === 'function'
44
&& typeof arg.fill === 'function'
5-
&& typeof arg.binarySlice === 'function'
6-
;
7-
}
5+
&& typeof arg.readUInt8 === 'function';
6+
}

0 commit comments

Comments
 (0)