From 50f9bded152f16d500b1de946da0cc51109d289d Mon Sep 17 00:00:00 2001 From: RobertoSimonini1 Date: Tue, 30 Jul 2024 12:00:49 +0200 Subject: [PATCH] buffer: add JSDoc to blob bytes method --- lib/internal/blob.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/internal/blob.js b/lib/internal/blob.js index 450ad593f44507..4ff2b0e1e7051b 100644 --- a/lib/internal/blob.js +++ b/lib/internal/blob.js @@ -312,6 +312,9 @@ class Blob { return dec.decode(await this.arrayBuffer()); } + /** + * @returns {Promise} + */ bytes() { if (!isBlob(this)) throw new ERR_INVALID_THIS('Blob');