Browse Source

fix util.isBuffer to work in browserify 3.x

inspect
Feross Aboukhadijeh 11 years ago
parent
commit
4fb63ce8fa
  1. 5
      support/isBufferBrowser.js

5
support/isBufferBrowser.js

@ -2,6 +2,5 @@ module.exports = function isBuffer(arg) {
return arg && typeof arg === 'object'
&& typeof arg.copy === 'function'
&& typeof arg.fill === 'function'
&& typeof arg.binarySlice === 'function'
;
}
&& typeof arg.readUInt8 === 'function';
}
Loading…
Cancel
Save