diff options
author | Kenneth Myhra <kennethmyhra@gmail.com> | 2023-02-19 18:36:16 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-02-22 09:55:33 +0100 |
commit | d69e8632867f9cd5fbf9f6b8a442e392a659399b (patch) | |
tree | 72b8e67ebcdc25200e1b028ccaa427d4f8b891e5 /Userland/Libraries/LibWeb/Streams | |
parent | 07db02cd2c56665b16fa58b97535108edbe4538b (diff) | |
download | serenity-d69e8632867f9cd5fbf9f6b8a442e392a659399b.zip |
LibWeb: Propagate error in factory method of Streams::ReadableStream
Diffstat (limited to 'Userland/Libraries/LibWeb/Streams')
-rw-r--r-- | Userland/Libraries/LibWeb/Streams/ReadableStream.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/Streams/ReadableStream.cpp b/Userland/Libraries/LibWeb/Streams/ReadableStream.cpp index 8cc89d00b9..0b905d4280 100644 --- a/Userland/Libraries/LibWeb/Streams/ReadableStream.cpp +++ b/Userland/Libraries/LibWeb/Streams/ReadableStream.cpp @@ -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) |