1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 10:07:44 +00:00

LibJS: Set DateTimeFormat's [[HourCycle]] internal slot only once

This is an editorial change in the Intl spec. See:
8081868
This commit is contained in:
Timothy Flynn 2022-03-28 10:17:39 -04:00 committed by Linus Groh
parent 0975eba724
commit 72674d7905
2 changed files with 86 additions and 84 deletions

View file

@ -60,7 +60,6 @@ public:
bool has_hour_cycle() const { return m_hour_cycle.has_value(); }
Unicode::HourCycle hour_cycle() const { return *m_hour_cycle; }
StringView hour_cycle_string() const { return Unicode::hour_cycle_to_string(*m_hour_cycle); }
void set_hour_cycle(StringView hour_cycle) { m_hour_cycle = Unicode::hour_cycle_from_string(hour_cycle); }
void set_hour_cycle(Unicode::HourCycle hour_cycle) { m_hour_cycle = hour_cycle; }
void clear_hour_cycle() { m_hour_cycle.clear(); }