mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibWeb: Propogate OOM errors from readable_stream_reader_generic_cancel
This commit is contained in:
committed by
Linus Groh
parent
f9d6a161e8
commit
db1be40b13
@@ -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()) };
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user