From ff038f306ac5d34dd3cbd058af503167af9ba5ee Mon Sep 17 00:00:00 2001 From: Ali Mohammad Pur Date: Sat, 10 Dec 2022 19:30:34 +0330 Subject: [PATCH] AK: Ignore "alternative" formatting of StringView instead of crashing Jakt implements this in a different way, but it's a noop for StringViews anyway. --- AK/Format.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/AK/Format.cpp b/AK/Format.cpp index beb11799f6..a75c8cf1a4 100644 --- a/AK/Format.cpp +++ b/AK/Format.cpp @@ -669,8 +669,6 @@ ErrorOr Formatter::format(FormatBuilder& builder, StringView v { if (m_sign_mode != FormatBuilder::SignMode::Default) VERIFY_NOT_REACHED(); - if (m_alternative_form) - VERIFY_NOT_REACHED(); if (m_zero_pad) VERIFY_NOT_REACHED(); if (m_mode != Mode::Default && m_mode != Mode::String && m_mode != Mode::Character && m_mode != Mode::HexDump)