node
node copied to clipboard
Implement `bytes()` method on Blob for reading bytes into a Uint8Array
See https://github.com/w3c/FileAPI/pull/198. This is like the existing arrayBuffer()
method, but gives you a Uint8Array instead.
Tests at https://github.com/web-platform-tests/wpt/pull/46232
See also https://github.com/nodejs/undici/issues/3256 for the issue for doing the same for Request/Response.
There's also a PR adding the same method to PushMessageData, but I don't think it's relevant to node. Mentioning it here anyway just in case I'm wrong.