mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
buffer: add JSDoc to blob bytes method
PR-URL: https://github.com/nodejs/node/pull/54117 Reviewed-By: Jake Yuesong Li <jake.yuesong@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
This commit is contained in:
1 parent
358fdacec6
commit
37631f826b
1 file changed
+3
@@ -312,6 +312,9 @@ class Blob {
|
||||
return dec.decode(await this.arrayBuffer());
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns {Promise<Uint8Array>}
|
||||
*/
|
||||
bytes() {
|
||||
if (!isBlob(this))
|
||||
throw new ERR_INVALID_THIS('Blob');
|
||||
|
||||
Reference in new issue
Block a user