Skip to content

Commit

Permalink
LibWeb: Revert addition of VERIFY call to isomorphic-decode
Browse files Browse the repository at this point in the history
  • Loading branch information
Gingeh authored and awesomekling committed Jan 3, 2025
1 parent a6f0450 commit a4abb35
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Libraries/LibWeb/Infra/Strings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a4abb35

Please sign in to comment.