mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-13 19:25:28 +00:00
Everywhere: Use _{short_,}string to create Strings from literals
This commit is contained in:
@@ -35,7 +35,7 @@ WebIDL::ExceptionOr<XHR::FormDataEntry> create_entry(JS::Realm& realm, String co
|
||||
if (filename.has_value())
|
||||
name_attribute = filename.value();
|
||||
else
|
||||
name_attribute = TRY_OR_THROW_OOM(vm, String::from_utf8("blob"sv));
|
||||
name_attribute = TRY_OR_THROW_OOM(vm, "blob"_string);
|
||||
return JS::make_handle(TRY(FileAPI::File::create(realm, { JS::make_handle(*blob) }, name_attribute.to_deprecated_string(), {})));
|
||||
}));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user