diff options
Diffstat (limited to 'Userland/Libraries/LibJS/MarkupGenerator.cpp')
-rw-r--r-- | Userland/Libraries/LibJS/MarkupGenerator.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Libraries/LibJS/MarkupGenerator.cpp b/Userland/Libraries/LibJS/MarkupGenerator.cpp index 424589e262..27d63f3a3a 100644 --- a/Userland/Libraries/LibJS/MarkupGenerator.cpp +++ b/Userland/Libraries/LibJS/MarkupGenerator.cpp @@ -81,7 +81,7 @@ ErrorOr<void> MarkupGenerator::value_to_html(Value value, StringBuilder& output_ if (value.is_string()) TRY(output_html.try_append('"')); - TRY(output_html.try_append(escape_html_entities(value.to_string_without_side_effects()))); + TRY(output_html.try_append(escape_html_entities(value.to_deprecated_string_without_side_effects()))); if (value.is_string()) TRY(output_html.try_append('"')); @@ -167,8 +167,8 @@ ErrorOr<void> MarkupGenerator::error_to_html(Error const& error, StringBuilder& auto& vm = error.vm(); auto name = error.get_without_side_effects(vm.names.name).value_or(js_undefined()); auto message = error.get_without_side_effects(vm.names.message).value_or(js_undefined()); - auto name_string = name.to_string_without_side_effects(); - auto message_string = message.to_string_without_side_effects(); + auto name_string = name.to_deprecated_string_without_side_effects(); + auto message_string = message.to_deprecated_string_without_side_effects(); auto uncaught_message = TRY(String::formatted("Uncaught {}[{}]: ", in_promise ? "(in promise) " : "", name_string)); TRY(html_output.try_append(TRY(wrap_string_in_style(uncaught_message, StyleType::Invalid)).bytes_as_string_view())); |