LibWeb: Propogate OOM errors from readable_stream_reader_generic_cancel

This commit is contained in:
Matthew Olsson 2023-04-13 16:46:31 -07:00 committed by Linus Groh
commit db1be40b13
Notes: sideshowbarker 2024-07-17 22:55:25 +09:00
3 changed files with 4 additions and 4 deletions

View file

@ -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()) };
}