Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Buffer errro #8

Open
player2 opened this issue Jul 2, 2020 · 3 comments
Open

Buffer errro #8

player2 opened this issue Jul 2, 2020 · 3 comments

Comments

@player2
Copy link

player2 commented Jul 2, 2020

See Comment
620b90a#r40322848

@mattdesl
Copy link
Collaborator

mattdesl commented Jul 2, 2020 via email

@stur86
Copy link

stur86 commented Dec 10, 2020

I have this problem too when running the code in browser. Buffer.from is defined in Node, but not in Chrome [Version 87.0.4280.88 (Official Build) unknown (64-bit)]. This is the newest version, so obviously the issue can't be just brushed aside.

@stur86
Copy link

stur86 commented Dec 10, 2020

I found out that a very easy fix to this is to use the package buffer: https://github.com/feross/buffer.

All that needs to be done is to add the dependency, and then add the line

const Buffer = require('buffer/').Buffer;

at the very beginning of is_binary.js.

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

No branches or pull requests

3 participants