From a4abb35776628f9bcf665491a88022389230e675 Mon Sep 17 00:00:00 2001 From: Gingeh <39150378+Gingeh@users.noreply.github.com> Date: Fri, 3 Jan 2025 09:22:34 +1100 Subject: [PATCH] LibWeb: Revert addition of VERIFY call to isomorphic-decode --- Libraries/LibWeb/Infra/Strings.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Libraries/LibWeb/Infra/Strings.cpp b/Libraries/LibWeb/Infra/Strings.cpp index 5e488c4cc17e..c9aa55465bdc 100644 --- a/Libraries/LibWeb/Infra/Strings.cpp +++ b/Libraries/LibWeb/Infra/Strings.cpp @@ -152,7 +152,9 @@ ByteBuffer isomorphic_encode(StringView input) // NOTE: This is essentially spec-speak for "Encode as ISO-8859-1 / Latin-1". ByteBuffer buf = {}; for (auto code_point : Utf8View { input }) { - VERIFY(code_point <= 0xFF); + // VERIFY(code_point <= 0xFF); + if (code_point > 0xFF) + dbgln("FIXME: Trying to isomorphic encode a string with code points > U+00FF."); buf.append((u8)code_point); } return buf;