From 9ef0086720ab8538b8deeb211f688f382a34639e Mon Sep 17 00:00:00 2001 From: sendoru Date: Tue, 30 Jul 2024 19:32:40 +0900 Subject: [PATCH 1/2] doc: add content for Blob.bytes() Fixes: https://github.com/nodejs/node/issues/54105 Refs: https://github.com/nodejs/node/pull/53221 --- doc/api/buffer.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/doc/api/buffer.md b/doc/api/buffer.md index c72590cb71538c..87d74b47447b43 100644 --- a/doc/api/buffer.md +++ b/doc/api/buffer.md @@ -513,6 +513,18 @@ added: Returns a promise that fulfills with an {ArrayBuffer} containing a copy of the `Blob` data. +### `blob.bytes()` + + + +* Returns: {Promise} + +Returns a promise that fulfills with a {Uint8Array} containing a copy of the +`Blob` data. + ### `blob.size`