You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Let _hour12_ be ? GetOption(_options_, *"hour12"*, *"boolean"*, *undefined*, *undefined*).
67
67
1. Let _hourCycle_ be ? GetOption(_options_, *"hourCycle"*, *"string"*, «*"h11"*, *"h12"*, *"h23"*, *"h24"*», *undefined*).
68
68
1. If _hour12_ is not *undefined*, then
69
-
1.Let_hourCycle_be*null*.
69
+
1.Set_hourCycle_to*null*.
70
70
1. Set _opt_.[[hc]] to _hourCycle_.
71
71
1. Let _localeData_ be %DateTimeFormat%.[[LocaleData]].
72
72
1. Let _r_ be ResolveLocale(%DateTimeFormat%.[[AvailableLocales]], _requestedLocales_, _opt_, %DateTimeFormat%.[[RelevantExtensionKeys]], _localeData_).
73
73
1. Set _dateTimeFormat_.[[Locale]] to _r_.[[locale]].
74
-
1.Let_calendar_be_r_.[[ca]].
74
+
1.Set_calendar_to_r_.[[ca]].
75
75
1. Set _dateTimeFormat_.[[Calendar]] to _calendar_.
76
76
1. Set _dateTimeFormat_.[[HourCycle]] to _r_.[[hc]].
77
77
1. Set _dateTimeFormat_.[[NumberingSystem]] to _r_.[[nu]].
78
78
1. Let _dataLocale_ be _r_.[[dataLocale]].
79
79
1. Let _timeZone_ be ? Get(_options_, *"timeZone"*).
80
80
1. If _timeZone_ is *undefined*, then
81
-
1.Let_timeZone_be DefaultTimeZone().
81
+
1.Set_timeZone_to ! DefaultTimeZone().
82
82
1. Else,
83
-
1. Let _timeZone_ be ? ToString(_timeZone_).
84
-
1. If the result of IsValidTimeZoneName(_timeZone_) is *false*, then
85
-
1. Throw a *RangeError* exception.
86
-
1. Let _timeZone_ be CanonicalizeTimeZoneName(_timeZone_).
83
+
1. Set _timeZone_ to ? ToString(_timeZone_).
84
+
1. If ! IsValidTimeZoneName(_timeZone_) is *false*, throw a *RangeError* exception.
85
+
1. Set _timeZone_ to ! CanonicalizeTimeZoneName(_timeZone_).
87
86
1. Set _dateTimeFormat_.[[TimeZone]] to _timeZone_.
88
87
1. Let _formatOptions_ be a new Record.
89
88
1. For each row of <emu-xrefhref="#table-datetimeformat-components"></emu-xref>, except the header row, in table order, do
90
89
1. Let _prop_ be the name given in the Property column of the row.
91
90
1. If _prop_ is *"fractionalSecondDigits"*, then
92
91
1. Let _value_ be ? GetNumberOption(_options_, *"fractionalSecondDigits"*, 1, 3, *undefined*).
93
92
1. Else,
94
-
1. Let _value_ be ? GetOption(_options_, _prop_, *"string"*, « the strings given in the Values column of the row », *undefined*).
93
+
1. Let _values_ be a List whose elements are the strings given in the Values column of the row.
94
+
1. Let _value_ be ? GetOption(_options_, _prop_, *"string"*, _values_, *undefined*).
95
95
1. Set _formatOptions_.[[<_prop_>]] to _value_.
96
96
1. Let _dataLocaleData_ be _localeData_.[[<_dataLocale_>]].
97
97
1. Let _hcDefault_ be _dataLocaleData_.[[hourCycle]].
0 commit comments