diff --git a/lib/internal/blob.js b/lib/internal/blob.js index 0e13184741a646..e11bb9e10619db 100644 --- a/lib/internal/blob.js +++ b/lib/internal/blob.js @@ -313,6 +313,9 @@ class Blob { return dec.decode(await this.arrayBuffer()); } + /** + * @returns {Promise} + */ bytes() { if (!isBlob(this)) throw new ERR_INVALID_THIS('Blob');