mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-07 00:29:47 +00:00
AK+LibJS+LibWeb: Use simdutf to create well-formed strings
This commit is contained in:
parent
017a6cc687
commit
1375e6bf39
Notes:
github-actions[bot]
2025-07-25 22:41:55 +00:00
Author: https://github.com/trflynn89
Commit: 1375e6bf39
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5608
Reviewed-by: https://github.com/gmta ✅
9 changed files with 37 additions and 42 deletions
|
@ -241,7 +241,7 @@ JS::ThrowCompletionOr<Utf16String> to_utf16_string(JS::VM& vm, JS::Value value)
|
|||
|
||||
JS::ThrowCompletionOr<String> to_usv_string(JS::VM& vm, JS::Value value)
|
||||
{
|
||||
return value.to_well_formed_string(vm);
|
||||
return TRY(value.to_utf16_string(vm)).to_well_formed_utf8();
|
||||
}
|
||||
|
||||
// https://webidl.spec.whatwg.org/#invoke-a-callback-function
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue