1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 06:07:34 +00:00

LibWeb: Propagate error in factory method of Streams::ReadableStream

This commit is contained in:
Kenneth Myhra 2023-02-19 18:36:16 +01:00 committed by Andreas Kling
parent 07db02cd2c
commit d69e863286

View file

@ -14,7 +14,7 @@ namespace Web::Streams {
// https://streams.spec.whatwg.org/#rs-constructor
WebIDL::ExceptionOr<JS::NonnullGCPtr<ReadableStream>> ReadableStream::construct_impl(JS::Realm& realm)
{
return realm.heap().allocate<ReadableStream>(realm, realm).release_allocated_value_but_fixme_should_propagate_errors();
return MUST_OR_THROW_OOM(realm.heap().allocate<ReadableStream>(realm, realm));
}
ReadableStream::ReadableStream(JS::Realm& realm)