1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-24 22:37:34 +00:00

LibJS: Convert MarkupGenerator to the new String

This commit is contained in:
Linus Groh 2022-12-06 20:42:59 +00:00
parent f23b55ae86
commit 112b3f7342
5 changed files with 92 additions and 85 deletions

View file

@ -79,13 +79,13 @@ void WebContentConsoleClient::handle_input(DeprecatedString const& js_source)
if (result.value().has_value()) {
m_console_global_object->set_most_recent_result(result.value().value());
print_html(JS::MarkupGenerator::html_from_value(*result.value()));
print_html(JS::MarkupGenerator::html_from_value(*result.value()).release_value_but_fixme_should_propagate_errors().to_deprecated_string());
}
}
void WebContentConsoleClient::report_exception(JS::Error const& exception, bool in_promise)
{
print_html(JS::MarkupGenerator::html_from_error(exception, in_promise));
print_html(JS::MarkupGenerator::html_from_error(exception, in_promise).release_value_but_fixme_should_propagate_errors().to_deprecated_string());
}
void WebContentConsoleClient::print_html(DeprecatedString const& line)