Skip to content

Commit 5ab9db6

Browse files
committed
Editorial: Check for undefined [[FirstDayOfWeek]] field
`[[FirstDayOfWeek]]` can be `undefined`, but `WeekdayUValueToNumber` expects String values. Perform the check for `undefined` in `WeekInfoOfLocale` to match other operations which allow Unicode extension overrides (`CalendarsOfLocale`, `CollationsOfLocale`, `HourCyclesOfLocale`, and `NumberingSystemsOfLocale`.)
1 parent 4781b0d commit 5ab9db6

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

spec/locale.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -864,9 +864,10 @@ <h1>
864864
1. Let _locale_ be _loc_.[[Locale]].
865865
1. Let _r_ be a Record whose fields are defined by <emu-xref href="#table-locale-weekinfo-record"></emu-xref>, with values based on _locale_.
866866
1. Let _fws_ be _loc_.[[FirstDayOfWeek]].
867-
1. Let _fw_ be WeekdayUValueToNumber(_fws_).
868-
1. If _fw_ is not *undefined*, then
869-
1. Set _r_.[[FirstDay]] to _fw_.
867+
1. If _fws_ is not *undefined*, then
868+
1. Let _fw_ be WeekdayUValueToNumber(_fws_).
869+
1. If _fw_ is not *undefined*, then
870+
1. Set _r_.[[FirstDay]] to _fw_.
870871
1. Return _r_.
871872
</emu-alg>
872873

0 commit comments

Comments
 (0)