1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:28:12 +00:00

LibWeb: Make FileAPI::Blob::create() buffer/type overload infallible

This commit is contained in:
Linus Groh 2022-09-22 18:39:33 +01:00
parent 54a987ad45
commit c7c6d7d9e1
3 changed files with 3 additions and 3 deletions

View file

@ -14,7 +14,7 @@
namespace Web::FileAPI {
DOM::ExceptionOr<JS::NonnullGCPtr<Blob>> Blob::create(HTML::Window& window, ByteBuffer byte_buffer, String type)
JS::NonnullGCPtr<Blob> Blob::create(HTML::Window& window, ByteBuffer byte_buffer, String type)
{
return JS::NonnullGCPtr(*window.heap().allocate<Blob>(window.realm(), window, move(byte_buffer), move(type)));
}