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:
parent
f9d6a161e8
commit
db1be40b13
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