mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
LibWeb: Propogate OOM errors from readable_stream_reader_generic_cancel
This commit is contained in:
parent
f9d6a161e8
commit
db1be40b13
Notes:
sideshowbarker
2024-07-17 22:55:25 +09:00
Author: https://github.com/mattco98
Commit: db1be40b13
Pull-request: https://github.com/SerenityOS/serenity/pull/18297
Reviewed-by: https://github.com/linusg
3 changed files with 4 additions and 4 deletions
|
@ -32,7 +32,7 @@ WebIDL::ExceptionOr<JS::NonnullGCPtr<JS::Promise>> ReadableStreamGenericReaderMi
|
|||
}
|
||||
|
||||
// 2. Return ! ReadableStreamReaderGenericCancel(this, reason).
|
||||
auto promise_capability = readable_stream_reader_generic_cancel(*this, reason);
|
||||
auto promise_capability = TRY(readable_stream_reader_generic_cancel(*this, reason));
|
||||
return JS::NonnullGCPtr { verify_cast<JS::Promise>(*promise_capability->promise().ptr()) };
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue