mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:37:35 +00:00
LibWeb: Add & use TRY_OR_RETURN_OOM macro
This is a convenient way to return a DOM exception for operations that return ErrorOr and only have an OOM failure path.
This commit is contained in:
parent
452dc544bc
commit
bc68539e26
4 changed files with 19 additions and 15 deletions
|
@ -50,7 +50,7 @@ public:
|
|||
|
||||
private:
|
||||
Blob() = default;
|
||||
static DOM::ExceptionOr<ByteBuffer> process_blob_parts(Vector<BlobPart> const& blob_parts);
|
||||
static ErrorOr<ByteBuffer> process_blob_parts(Vector<BlobPart> const& blob_parts);
|
||||
|
||||
ByteBuffer m_byte_buffer {};
|
||||
String m_type {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue