]> zoso.dev Git - buffer.git/commit
replace 'instanceof Buffer' with Buffer.isBuffer()
authorFeross Aboukhadijeh <feross@feross.org>
Fri, 16 Feb 2018 07:58:11 +0000 (23:58 -0800)
committerFeross Aboukhadijeh <feross@feross.org>
Fri, 16 Feb 2018 07:58:11 +0000 (23:58 -0800)
commit08ef8b54e3b7c29a697a4a45269d0172179d136c
tree52014904c559f8f2460c53207c9c965ae06e5216
parent3c87795a0099e66ea476fc1384de9d0ea1c4c57f
replace 'instanceof Buffer' with Buffer.isBuffer()

To support buffers that come from other contexts like iframes, or Buffers that come from multiple version of buffer embedded in the same browserify bundle

Always use Buffer.isBuffer!!!
index.js