mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibJS: Rename Utf16String::to_utf8 to to_deprecated_string
This commit is contained in:
committed by
Linus Groh
parent
ca655f5e7d
commit
4eb5eb2080
Notes:
sideshowbarker
2024-07-17 02:05:41 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/4eb5eb2080 Pull-request: https://github.com/SerenityOS/serenity/pull/17014 Reviewed-by: https://github.com/linusg ✅
@@ -70,7 +70,7 @@ ThrowCompletionOr<DeprecatedString> PrimitiveString::deprecated_string() const
|
||||
|
||||
if (!has_deprecated_string()) {
|
||||
VERIFY(has_utf16_string());
|
||||
m_deprecated_string = TRY(m_utf16_string->to_utf8(vm()));
|
||||
m_deprecated_string = TRY(m_utf16_string->to_deprecated_string(vm()));
|
||||
}
|
||||
|
||||
return *m_deprecated_string;
|
||||
|
||||
Reference in New Issue
Block a user