mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:27:35 +00:00
LibWeb: Port DOMException interface from DeprecatedString to String
This commit is contained in:
parent
bcb6851c07
commit
41928c2902
65 changed files with 296 additions and 296 deletions
|
@ -25,7 +25,7 @@ WebIDL::ExceptionOr<JS::NonnullGCPtr<FormData>> FormData::construct_impl(JS::Rea
|
|||
auto entry_list = TRY(construct_entry_list(realm, form.value()));
|
||||
// 2. If list is null, then throw an "InvalidStateError" DOMException.
|
||||
if (!entry_list.has_value())
|
||||
return WebIDL::InvalidStateError::create(realm, "Form element does not contain any entries.");
|
||||
return WebIDL::InvalidStateError::create(realm, "Form element does not contain any entries."_fly_string);
|
||||
// 3. Set this’s entry list to list.
|
||||
list = entry_list.release_value();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue