Skip to content
This repository was archived by the owner on Feb 21, 2018. It is now read-only.

fix: Use Buffer.isBuffer to check buffer type #23

Merged
merged 1 commit into from
Jan 23, 2017

Conversation

haadcode
Copy link

This PR will change Buffer type check from x instanceof Buffer to Buffer.isBuffer(x)

@daviddias
Copy link
Member

@dignifiedquire wondering what is stopping this PR from getting merged (maybe you just didn't have time to go through it :))

@dignifiedquire
Copy link
Member

@diasdavid I was hoping we wouldn't need it, as currently the index.js is a near 1-1 copy from Node.js, and every change makes it harder to maintain. But due to multiple versions possible of Buffer being available in the browser we need to merge it..

@dignifiedquire dignifiedquire merged commit de4a12a into master Jan 23, 2017
@dignifiedquire dignifiedquire deleted the fix/is-buffer branch January 23, 2017 10:32
@daviddias
Copy link
Member

Yeah, the Node.js version doesn't have to deal with Buffer shims nor browsers

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants