1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:17:34 +00:00

LibWeb: Add support for XHR response type Blob

This commit is contained in:
Kenneth Myhra 2022-07-14 14:32:04 +02:00 committed by Linus Groh
parent df8c49f6bf
commit 5806eeec08
3 changed files with 13 additions and 2 deletions

View file

@ -194,4 +194,9 @@ JS::Promise* Blob::array_buffer()
return promise;
}
JS::Object* Blob::create_wrapper(JS::GlobalObject& global_object)
{
return wrap(global_object, *this);
}
}

View file

@ -47,6 +47,8 @@ public:
JS::Promise* text();
JS::Promise* array_buffer();
virtual JS::Object* create_wrapper(JS::GlobalObject&);
private:
Blob() = default;
static DOM::ExceptionOr<ByteBuffer> process_blob_parts(Vector<BlobPart> const& blob_parts);