mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-14 20:19:14 +00:00
LibIDL+LibWeb: Support UTF-16 USVString
This commit is contained in:
parent
1375e6bf39
commit
49467d0583
Notes:
github-actions[bot]
2025-07-25 22:41:48 +00:00
Author: https://github.com/trflynn89
Commit: 49467d0583
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5608
Reviewed-by: https://github.com/gmta ✅
4 changed files with 9 additions and 3 deletions
|
@ -244,6 +244,11 @@ JS::ThrowCompletionOr<String> to_usv_string(JS::VM& vm, JS::Value value)
|
|||
return TRY(value.to_utf16_string(vm)).to_well_formed_utf8();
|
||||
}
|
||||
|
||||
JS::ThrowCompletionOr<Utf16String> to_utf16_usv_string(JS::VM& vm, JS::Value value)
|
||||
{
|
||||
return TRY(value.to_utf16_string(vm)).to_well_formed();
|
||||
}
|
||||
|
||||
// https://webidl.spec.whatwg.org/#invoke-a-callback-function
|
||||
// https://whatpr.org/webidl/1437.html#invoke-a-callback-function
|
||||
template<typename ReturnSteps>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue