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:
parent
54a987ad45
commit
c7c6d7d9e1
3 changed files with 3 additions and 3 deletions
|
@ -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)));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue