mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 02:29:21 +00:00
LibWeb: Add AO transform_stream_default_controller_error()
This commit is contained in:
parent
69fb6f15f9
commit
9efcc01387
Notes:
sideshowbarker
2024-07-17 00:23:42 +09:00
Author: https://github.com/kennethmyhra
Commit: 9efcc01387
Pull-request: https://github.com/SerenityOS/serenity/pull/19998
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/shannonbooth
2 changed files with 10 additions and 0 deletions
|
@ -2734,6 +2734,15 @@ void transform_stream_default_controller_clear_algorithms(TransformStreamDefault
|
|||
controller.set_flush_algorithm({});
|
||||
}
|
||||
|
||||
// https://streams.spec.whatwg.org/#transform-stream-default-controller-error
|
||||
WebIDL::ExceptionOr<void> transform_stream_default_controller_error(TransformStreamDefaultController& controller, JS::Value error)
|
||||
{
|
||||
// 1. Perform ! TransformStreamError(controller.[[stream]], e).
|
||||
TRY(transform_stream_error(*controller.stream(), error));
|
||||
|
||||
return {};
|
||||
}
|
||||
|
||||
// https://streams.spec.whatwg.org/#transform-stream-error
|
||||
WebIDL::ExceptionOr<void> transform_stream_error(TransformStream& stream, JS::Value error)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue