1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:17:45 +00:00

LibJS: Add missing VERIFY_NOT_REACHED in string-to-enum conversion

Noticed this while working on [[RoundingMode]].
This commit is contained in:
Timothy Flynn 2022-07-18 08:38:47 -04:00 committed by Linus Groh
parent 0a511e29d1
commit cb5f7bf696

View file

@ -215,6 +215,8 @@ void NumberFormatBase::set_rounding_mode(StringView rounding_mode)
m_rounding_mode = RoundingMode::HalfTrunc;
else if (rounding_mode == "trunc"sv)
m_rounding_mode = RoundingMode::Trunc;
else
VERIFY_NOT_REACHED();
}
StringView NumberFormatBase::trailing_zero_display_string() const