Skip to content

Commit 79491e0

Browse files
Use arrayBuffer() for direct Uint8Array conversion.
Co-authored-by: René <[email protected]>
1 parent b6a5a18 commit 79491e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/stream/consumers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ async function buffer(stream) {
5656
* @returns {Promise<Uint8Array>}
5757
*/
5858
async function bytes(stream) {
59-
return new Uint8Array(await buffer(stream));
59+
return new Uint8Array(await arrayBuffer(stream));
6060
}
6161

6262
/**

0 commit comments

Comments
 (0)