Skip to content

Commit 9402ae3

Browse files
1 parent c35cc93 commit 9402ae3

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

crates/web-sys/src/features/gen_Blob.rs

+7
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,13 @@ extern "C" {
136136
#[doc = ""]
137137
#[doc = "*This API requires the following crate features to be activated: `Blob`*"]
138138
pub fn array_buffer(this: &Blob) -> ::js_sys::Promise;
139+
# [wasm_bindgen (method , structural , js_class = "Blob" , js_name = bytes)]
140+
#[doc = "The `bytes()` method."]
141+
#[doc = ""]
142+
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/bytes)"]
143+
#[doc = ""]
144+
#[doc = "*This API requires the following crate features to be activated: `Blob`*"]
145+
pub fn bytes(this: &Blob) -> ::js_sys::Promise;
139146
# [wasm_bindgen (catch , method , structural , js_class = "Blob" , js_name = slice)]
140147
#[doc = "The `slice()` method."]
141148
#[doc = ""]

crates/web-sys/webidls/enabled/Blob.webidl

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ interface Blob {
3333
[NewObject] ReadableStream stream();
3434
[NewObject] Promise<DOMString> text();
3535
[NewObject] Promise<ArrayBuffer> arrayBuffer();
36+
[NewObject] Promise<Uint8Array> bytes();
3637
};
3738

3839
enum EndingTypes { "transparent", "native" };

0 commit comments

Comments
 (0)