mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-01 06:07:59 +00:00
LibWeb: Implement TransformStreamDefaultController::terminate()
This commit is contained in:
committed by
Andreas Kling
parent
e1740938fc
commit
4d4fc53f5c
@@ -61,4 +61,13 @@ WebIDL::ExceptionOr<void> TransformStreamDefaultController::error(Optional<JS::V
|
||||
return {};
|
||||
}
|
||||
|
||||
// https://streams.spec.whatwg.org/#ts-default-controller-terminate
|
||||
WebIDL::ExceptionOr<void> TransformStreamDefaultController::terminate()
|
||||
{
|
||||
// 1. Perform ? TransformStreamDefaultControllerTerminate(this).
|
||||
TRY(transform_stream_default_controller_terminate(*this));
|
||||
|
||||
return {};
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user