mirror of
https://github.com/RGBCube/serenity
synced 2025-07-08 20:27:35 +00:00
LibWeb: Implement ReadableByteStreamController.error()
This commit is contained in:
parent
c9be755367
commit
ed06429d33
3 changed files with 9 additions and 1 deletions
|
@ -37,6 +37,13 @@ WebIDL::ExceptionOr<void> ReadableByteStreamController::close()
|
|||
return {};
|
||||
}
|
||||
|
||||
// https://streams.spec.whatwg.org/#rbs-controller-error
|
||||
void ReadableByteStreamController::error(JS::Value error)
|
||||
{
|
||||
// 1. Perform ! ReadableByteStreamControllerError(this, e).
|
||||
readable_byte_stream_controller_error(*this, error);
|
||||
}
|
||||
|
||||
ReadableByteStreamController::ReadableByteStreamController(JS::Realm& realm)
|
||||
: Bindings::PlatformObject(realm)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue