mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
LibWeb: Propagate error in factory method of Streams::ReadableStream
This commit is contained in:
parent
07db02cd2c
commit
d69e863286
Notes:
sideshowbarker
2024-07-16 23:52:22 +09:00
Author: https://github.com/kennethmyhra
Commit: d69e863286
Pull-request: https://github.com/SerenityOS/serenity/pull/17542
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue