We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
equals
Node.js Buffers allow the equality comparison with an Uint8Array, but here it throws a TypeError
TypeError
For example, this simple statement :
Buffer.from([1 , 2, 3]).equals(new Uint8Array([1, 2, 3]))
returns true on Node.js, but throws an error in the browser.
true
The equivalent Node.js implementation is here : https://github.com/nodejs/node/blob/88105c998ef9d3f54aa8f22b82ec8cc31cbfac95/lib/buffer.js#L671
The text was updated successfully, but these errors were encountered:
should be fixed by #346
Sorry, something went wrong.
No branches or pull requests
Node.js Buffers allow the equality comparison with an Uint8Array, but here it throws a
TypeError
For example, this simple statement :
Buffer.from([1 , 2, 3]).equals(new Uint8Array([1, 2, 3]))
returns
true
on Node.js, but throws an error in the browser.The equivalent Node.js implementation is here : https://github.com/nodejs/node/blob/88105c998ef9d3f54aa8f22b82ec8cc31cbfac95/lib/buffer.js#L671
The text was updated successfully, but these errors were encountered: