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');