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:
parent
0a511e29d1
commit
cb5f7bf696
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue