@@ -37,7 +37,7 @@ <h1>ChainDateTimeFormat ( _dateTimeFormat_, _newTarget_, _this_ )</h1>
37
37
</emu-normative-optional >
38
38
</emu-clause >
39
39
40
- <emu-clause id =" sec-createdatetimeformat" type =" abstract operation" >
40
+ <emu-clause id =" sec-createdatetimeformat" type =" abstract operation" oldids = " sec-initializedatetimeformat " >
41
41
<h1 >
42
42
CreateDateTimeFormat (
43
43
_newTarget_ : a constructor,
47
47
_defaults_ : a String
48
48
): either a normal completion containing a DateTimeFormat object or a throw completion
49
49
</h1 >
50
- <dl class =" header" >
51
- </dl >
52
50
53
- <emu-alg >
54
- 1. Let _dateTimeFormat_ be ? OrdinaryCreateFromConstructor(_newTarget_ , *"%DateTimeFormat.prototype%"* , « ; [[InitializedDateTimeFormat]], [[Locale]], [[Calendar]], [[NumberingSystem]], [[TimeZone]], [[Weekday]], [[Era]], [[Year]], [[Month]], [[Day]], [[DayPeriod]], [[Hour]], [[Minute]], [[Second]], [[FractionalSecondDigits]], [[TimeZoneName]], [[HourCycle]], [[DateStyle]], [[TimeStyle]], [[Pattern]], [[RangePatterns]], [[BoundFormat]] » ; ).
55
- 1. Perform ? InitializeDateTimeFormat(_dateTimeFormat_ , _locales_ , _options_ , _required_ , _defaults_ ).
56
- 1. Return _dateTimeFormat_ .
57
- </emu-alg >
58
- </emu-clause >
59
-
60
- <emu-clause id =" sec-initializedatetimeformat" aoid =" InitializeDateTimeFormat" >
61
- <h1 >
62
- InitializeDateTimeFormat (
63
- _dateTimeFormat_ : an Object,
64
- _locales_ : an ECMAScript language value,
65
- _options_ : an ECMAScript language value,
66
- _required_ : a String,
67
- _defaults_ : a String
68
- ): either a normal completion containing a DateTimeFormat object or a throw completion
69
- </h1 >
70
51
<dl class =" header" >
71
- <dt >description</dt >
72
- <dd >It initializes _dateTimeFormat_ as a DateTimeFormat object.</dd >
73
52
</dl >
74
53
75
54
<emu-alg >
55
+ 1. Let _dateTimeFormat_ be ? OrdinaryCreateFromConstructor(_newTarget_ , *"%DateTimeFormat.prototype%"* , « ; [[InitializedDateTimeFormat]], [[Locale]], [[Calendar]], [[NumberingSystem]], [[TimeZone]], [[Weekday]], [[Era]], [[Year]], [[Month]], [[Day]], [[DayPeriod]], [[Hour]], [[Minute]], [[Second]], [[FractionalSecondDigits]], [[TimeZoneName]], [[HourCycle]], [[DateStyle]], [[TimeStyle]], [[Pattern]], [[RangePatterns]], [[BoundFormat]] » ; ).
76
56
1. Let _requestedLocales_ be ? CanonicalizeLocaleList(_locales_ ).
77
57
1. If _required_ is not *"any"* or _defaults_ is not *"date"* , then
78
58
1. Set _options_ to ? ToDateTimeOptions(_options_ , _required_ , _defaults_ ).
0 commit comments