mirror of
https://github.com/SerenityOS/serenity
synced 2024-09-06 17:06:31 +00:00
LibJS: Don't lie about m_deprecated_string being a StringView
This commit is contained in:
parent
3d1fd17f8b
commit
9300b9a364
|
@ -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…
Reference in a new issue