LibWeb: Revert addition of VERIFY call to isomorphic-decode

This commit is contained in:
Gingeh 2025-01-03 09:22:34 +11:00 committed by Andreas Kling
parent a6f04506e4
commit a4abb35776
Notes: github-actions[bot] 2025-01-03 16:12:30 +00:00

View file

@ -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;