mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 20:17:13 +02:00
LibWeb: Implement TransformStreamDefaultController::error()
This commit is contained in:
committed by
Andreas Kling
parent
9efcc01387
commit
2d0a2756b4
Notes:
sideshowbarker
2024-07-16 23:51:07 +09:00
Author: https://github.com/kennethmyhra Commit: https://github.com/SerenityOS/serenity/commit/2d0a2756b4 Pull-request: https://github.com/SerenityOS/serenity/pull/19998 Reviewed-by: https://github.com/awesomekling Reviewed-by: https://github.com/shannonbooth
@@ -43,4 +43,13 @@ Optional<double> TransformStreamDefaultController::desired_size()
|
||||
return readable_stream_default_controller_get_desired_size(*readable_controller);
|
||||
}
|
||||
|
||||
// https://streams.spec.whatwg.org/#ts-default-controller-error
|
||||
WebIDL::ExceptionOr<void> TransformStreamDefaultController::error(Optional<JS::Value> reason)
|
||||
{
|
||||
// 1. Perform ? TransformStreamDefaultControllerError(this, e).
|
||||
TRY(transform_stream_default_controller_error(*this, reason.has_value() ? reason.value() : JS::js_undefined()));
|
||||
|
||||
return {};
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user