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:
parent
0975eba724
commit
72674d7905
2 changed files with 86 additions and 84 deletions
|
@ -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(); }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue