mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
* Script: implement ReadableStreamBYOBReader::Read Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com> * fix ReadRequest::close_steps Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com> * fix clippy Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com> * implement viewed_buffer_array_byte_length and byte_length Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com> * fix clippy Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com> * Correct BufferSource implemntation Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com> * Correct detach_buffer implemantation Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com> * fix JS_IsArrayBufferViewObject usage Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com> * Reduce BufferSource to two variants ArrayBuffer and ArrayBufferView Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com> * Add more doc and use promise.reject_error Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com> --------- Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com>
24 lines
721 B
Text
24 lines
721 B
Text
/* 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;
|
|
};
|