Files
servo/components/script_bindings/webidls/ReadableStreamBYOBReader.webidl
Taym Haddadi 94e09277e2 Script Implement ReadableByteStreamTee (#35991)
<!-- Please describe your changes on the following line: -->


---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by
`[X]` when the step is complete, and replace `___` with appropriate
data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #35678

<!-- Either: -->
All stream tee tests are passing now.

<!-- Also, please make sure that "Allow edits from maintainers" checkbox
is checked, so that we can help you if you get stuck somewhere along the
way.-->

<!-- Pull requests that do not address these steps are welcome, but they
will require additional verification as part of the review process. -->

---------

Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com>
2025-12-03 13:19:21 +00:00

47 lines
1.5 KiB
Plaintext

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
// https://streams.spec.whatwg.org/#byob-reader-class-definition
[Exposed=*]
interface ReadableStreamBYOBReader {
[Throws]
constructor(ReadableStream stream);
[NewObject]
Promise<ReadableStreamReadResult> read(ArrayBufferView view,
optional ReadableStreamBYOBReaderReadOptions options = {}
);
[Throws]
undefined releaseLock();
};
ReadableStreamBYOBReader includes ReadableStreamGenericReader;
dictionary ReadableStreamBYOBReaderReadOptions {
[EnforceRange] unsigned long long min = 1;
};
// The ByteTeeReadIntoRequest interface is entirely internal to Servo, and should not be accessible to
// web pages.
[LegacyNoInterfaceObject, Exposed=(Window,Worker)]
// Need to escape "ByteTeeReadIntoRequest" so it's treated as an identifier.
interface _ByteTeeReadIntoRequest {
};
// The ByteTeeReadRequest interface is entirely internal to Servo, and should not be accessible to
// web pages.
[LegacyNoInterfaceObject, Exposed=(Window,Worker)]
// Need to escape "ByteTeeReadRequest" so it's treated as an identifier.
interface _ByteTeeReadRequest {
};
// The ByteTeeUnderlyingSource interface is entirely internal to Servo, and should not be accessible to
// web pages.
[LegacyNoInterfaceObject, Exposed=(Window,Worker)]
// Need to escape "ByteTeeUnderlyingSource" so it's treated as an identifier.
interface _ByteTeeUnderlyingSource {
};