mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:07:35 +00:00
LibJS: Don't lie about m_deprecated_string being a StringView
This commit is contained in:
parent
3d1fd17f8b
commit
9300b9a364
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ ThrowCompletionOr<String> PrimitiveString::utf8_string() const
|
|||
|
||||
if (!has_utf8_string()) {
|
||||
if (has_deprecated_string())
|
||||
m_utf8_string = TRY_OR_THROW_OOM(vm, String::from_utf8(*m_deprecated_string));
|
||||
m_utf8_string = TRY_OR_THROW_OOM(vm, String::from_deprecated_string(*m_deprecated_string));
|
||||
else if (has_utf16_string())
|
||||
m_utf8_string = TRY(m_utf16_string->to_utf8(vm));
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue