mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-24 08:59:50 +00:00
LibJS+LibWeb: Port interned bytecode strings to UTF-16
This was almost a no-op, except we intern JS exception messages. So the bulk of this patch is porting exception messages to UTF-16.
This commit is contained in:
parent
cf61171864
commit
70db474cf0
Notes:
github-actions[bot]
2025-08-14 08:28:16 +00:00
Author: https://github.com/trflynn89
Commit: 70db474cf0
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5845
Reviewed-by: https://github.com/gmta ✅
162 changed files with 1405 additions and 1422 deletions
|
|
@ -39,7 +39,7 @@ WebIDL::ExceptionOr<GC::Ref<FormData>> FormData::construct_impl(JS::Realm& realm
|
|||
// 2. If submitter’s form owner is not form, then throw a "NotFoundError" DOMException.
|
||||
auto* form_owner = form_associated_element->form();
|
||||
if (form_owner && form_owner != form) {
|
||||
return WebIDL::NotFoundError::create(realm, "Submitter does not belong to the provided form."_string);
|
||||
return WebIDL::NotFoundError::create(realm, "Submitter does not belong to the provided form."_utf16);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -47,7 +47,7 @@ WebIDL::ExceptionOr<GC::Ref<FormData>> FormData::construct_impl(JS::Realm& realm
|
|||
auto entry_list = TRY(construct_entry_list(realm, *form, submitter));
|
||||
// 3. 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."_string);
|
||||
return WebIDL::InvalidStateError::create(realm, "Form element does not contain any entries."_utf16);
|
||||
// 4. Set this’s entry list to list.
|
||||
list = entry_list.release_value();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue