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
This bug affects nodejs/test-environments
Excerpt from block.js
const bytes = codec.encode(value) // <-- Returns node:Buffer const hash = await hasher.digest(bytes) // !!! <-- Throws if not Uint8Array
Platform agnostic proposal:
let bytes = codec.encode(value) if (!(bytes instanceof Uint8Array) && bytes?.buffer) bytes = new Uint8Array(bytes.buffer, bytes.byteOffset, bytes.byteLength) const hash = await hasher.digest(bytes)
I'll monkeypatch for now. Please take it from here, thanks.
The text was updated successfully, but these errors were encountered:
Somewhat related to #191
Sorry, something went wrong.
No branches or pull requests
This bug affects nodejs/test-environments
Excerpt from block.js
Platform agnostic proposal:
I'll monkeypatch for now.
Please take it from here, thanks.
The text was updated successfully, but these errors were encountered: