diff options
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/PrimitiveString.cpp')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/PrimitiveString.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/PrimitiveString.cpp b/Userland/Libraries/LibJS/Runtime/PrimitiveString.cpp index c29c4b0cc8..3d4f87de34 100644 --- a/Userland/Libraries/LibJS/Runtime/PrimitiveString.cpp +++ b/Userland/Libraries/LibJS/Runtime/PrimitiveString.cpp @@ -68,7 +68,8 @@ DeprecatedString const& PrimitiveString::deprecated_string() const { resolve_rope_if_needed(); if (!m_has_utf8_string) { - m_utf8_string = m_utf16_string.to_utf8(); + // FIXME: Propagate this error. + m_utf8_string = MUST(m_utf16_string.to_utf8(vm())); m_has_utf8_string = true; } return m_utf8_string; |