mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-13 01:40:36 +00:00
LibWeb: Align transform_stream_error_writable_and_unblock_write w/ spec
This aligns AO transform_stream_error_writable_and_unblock_write() with the spec. No functional change is introduced by this amendment.
This commit is contained in:
parent
5c4ca5ac12
commit
24bed027b2
Notes:
sideshowbarker
2024-07-16 20:39:14 +09:00
Author: https://github.com/kennethmyhra Commit: https://github.com/LadybirdBrowser/ladybird/commit/24bed027b2 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/585
1 changed files with 2 additions and 3 deletions
|
@ -5222,9 +5222,8 @@ void transform_stream_error_writable_and_unblock_write(TransformStream& stream,
|
|||
// 2. Perform ! WritableStreamDefaultControllerErrorIfNeeded(stream.[[writable]].[[controller]], e).
|
||||
writable_stream_default_controller_error_if_needed(*stream.writable()->controller(), error);
|
||||
|
||||
// 3. If stream.[[backpressure]] is true, perform ! TransformStreamSetBackpressure(stream, false).
|
||||
if (stream.backpressure().has_value() && *stream.backpressure())
|
||||
transform_stream_set_backpressure(stream, false);
|
||||
// 3. Perform ! TransformStreamUnblockWrite(stream).
|
||||
transform_stream_unblock_write(stream);
|
||||
}
|
||||
|
||||
// https://streams.spec.whatwg.org/#transform-stream-set-backpressure
|
||||
|
|
Loading…
Reference in a new issue