1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 09:48:11 +00:00

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
parent f9d6a161e8
commit db1be40b13
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()) };
}