-
Notifications
You must be signed in to change notification settings - Fork 22.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ff128 Blob.bytes() supported (#34310)
* FF128 supports Blob.bytes() * FF128 relnote * domxref > jsxref for typed array
- Loading branch information
1 parent
786234b
commit 55dc6f0
Showing
3 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
title: "Blob: bytes() method" | ||
short-title: bytes() | ||
slug: Web/API/Blob/bytes | ||
page-type: web-api-instance-method | ||
browser-compat: api.Blob.bytes | ||
--- | ||
|
||
{{APIRef("File API")}}{{AvailableInWorkers}} | ||
|
||
The **`bytes()`** method of the {{domxref("Blob")}} interface returns a {{jsxref("Promise")}} that resolves with a {{jsxref("Uint8Array")}} containing the contents of the blob as an array of bytes. | ||
|
||
## Syntax | ||
|
||
```js-nolint | ||
bytes() | ||
``` | ||
|
||
### Parameters | ||
|
||
None. | ||
|
||
### Return value | ||
|
||
A {{jsxref("Promise")}} that fulfills with a {{jsxref("Uint8Array")}} object containing the blob data. | ||
|
||
### Exceptions | ||
|
||
The method will reject the returned {{jsxref("Promise")}} if, for example, the reader used to fetch the blob's data throws an exception. | ||
|
||
## Specifications | ||
|
||
{{Specifications}} | ||
|
||
## Browser compatibility | ||
|
||
{{Compat}} | ||
|
||
## See also |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters