aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webidls
diff options
context:
space:
mode:
authorTaym Haddadi <haddadi.taym@gmail.com>2025-01-15 23:34:00 +0100
committerGitHub <noreply@github.com>2025-01-15 22:34:00 +0000
commit3225d196fa2ce766e63821344a24bdafa4317ca3 (patch)
tree0316661a4e6f0058094db0037f5f9da88be38be9 /components/script/dom/webidls
parent05a13df29424bfafb0a88239174d69bd885bf7d2 (diff)
downloadservo-3225d196fa2ce766e63821344a24bdafa4317ca3.tar.gz
servo-3225d196fa2ce766e63821344a24bdafa4317ca3.zip
script: Implement `set_up`, `ReleaseLock`, `Closed`, `Cancel`, `acquire_byob_reader` for `ReadableStreamBYOBReader` (#34958)
* introduce ReadableStreamGenericReader to share functionality between ReadableStreamDefaultReader and ReadableStreamBYOBReader Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com> * implement set_up, ReleaseLock, Closed, Cancel for ReadableStreamBYOBReader Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com> * Fix clippy Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com> * Implement acquire_byob_reader Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com> * Remove #[allow(crown::unrooted_must_root)] from ReadRequest and ReadIntoRequest Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com> * Fix clippy Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com> --------- Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com>
Diffstat (limited to 'components/script/dom/webidls')
-rw-r--r--components/script/dom/webidls/ReadableStreamDefaultReader.webidl1
1 files changed, 1 insertions, 0 deletions
diff --git a/components/script/dom/webidls/ReadableStreamDefaultReader.webidl b/components/script/dom/webidls/ReadableStreamDefaultReader.webidl
index 63593912c67..df5d9691654 100644
--- a/components/script/dom/webidls/ReadableStreamDefaultReader.webidl
+++ b/components/script/dom/webidls/ReadableStreamDefaultReader.webidl
@@ -22,6 +22,7 @@ interface ReadableStreamDefaultReader {
[NewObject]
Promise<ReadableStreamReadResult> read();
+ [Throws]
undefined releaseLock();
};
ReadableStreamDefaultReader includes ReadableStreamGenericReader;