mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Script implement TransformStream and TransformStreamDefaultController (#36739)
Part of https://github.com/servo/servo/issues/34676 --------- Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com> Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com> Signed-off-by: Taym <haddadi.taym@gmail.com> Co-authored-by: gterzian <2792687+gterzian@users.noreply.github.com>
This commit is contained in:
parent
d39b9f05ff
commit
f3f4cc5500
30 changed files with 1784 additions and 48 deletions
|
@ -962,14 +962,13 @@ impl WritableStream {
|
|||
|
||||
/// <https://streams.spec.whatwg.org/#create-writable-stream>
|
||||
#[cfg_attr(crown, allow(crown::unrooted_must_root))]
|
||||
#[allow(unused)]
|
||||
pub(crate) fn create_writable_stream(
|
||||
cx: SafeJSContext,
|
||||
global: &GlobalScope,
|
||||
can_gc: CanGc,
|
||||
writable_high_water_mark: f64,
|
||||
writable_size_algorithm: Rc<QueuingStrategySize>,
|
||||
underlying_sink_type: UnderlyingSinkType,
|
||||
can_gc: CanGc,
|
||||
) -> Fallible<DomRoot<WritableStream>> {
|
||||
// Assert: ! IsNonNegativeNumber(highWaterMark) is true.
|
||||
assert!(writable_high_water_mark >= 0.0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue