Skip to content

Commit 6e3b70d

Browse files
anbaryzokuken
authored andcommitted
Editorial: Inline InitializeDateTimeFormat into CreateDateTimeFormat
1 parent b6ed64b commit 6e3b70d

File tree

1 file changed

+2
-22
lines changed

1 file changed

+2
-22
lines changed

spec/datetimeformat.html

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ <h1>ChainDateTimeFormat ( _dateTimeFormat_, _newTarget_, _this_ )</h1>
3737
</emu-normative-optional>
3838
</emu-clause>
3939

40-
<emu-clause id="sec-createdatetimeformat" type="abstract operation">
40+
<emu-clause id="sec-createdatetimeformat" type="abstract operation" oldids="sec-initializedatetimeformat">
4141
<h1>
4242
CreateDateTimeFormat (
4343
_newTarget_: a constructor,
@@ -47,32 +47,12 @@ <h1>
4747
_defaults_: a String
4848
): either a normal completion containing a DateTimeFormat object or a throw completion
4949
</h1>
50-
<dl class="header">
51-
</dl>
5250

53-
<emu-alg>
54-
1. Let _dateTimeFormat_ be ? OrdinaryCreateFromConstructor(_newTarget_, *"%DateTimeFormat.prototype%"*, &laquo; [[InitializedDateTimeFormat]], [[Locale]], [[Calendar]], [[NumberingSystem]], [[TimeZone]], [[Weekday]], [[Era]], [[Year]], [[Month]], [[Day]], [[DayPeriod]], [[Hour]], [[Minute]], [[Second]], [[FractionalSecondDigits]], [[TimeZoneName]], [[HourCycle]], [[DateStyle]], [[TimeStyle]], [[Pattern]], [[RangePatterns]], [[BoundFormat]] &raquo;).
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>
7051
<dl class="header">
71-
<dt>description</dt>
72-
<dd>It initializes _dateTimeFormat_ as a DateTimeFormat object.</dd>
7352
</dl>
7453

7554
<emu-alg>
55+
1. Let _dateTimeFormat_ be ? OrdinaryCreateFromConstructor(_newTarget_, *"%DateTimeFormat.prototype%"*, &laquo; [[InitializedDateTimeFormat]], [[Locale]], [[Calendar]], [[NumberingSystem]], [[TimeZone]], [[Weekday]], [[Era]], [[Year]], [[Month]], [[Day]], [[DayPeriod]], [[Hour]], [[Minute]], [[Second]], [[FractionalSecondDigits]], [[TimeZoneName]], [[HourCycle]], [[DateStyle]], [[TimeStyle]], [[Pattern]], [[RangePatterns]], [[BoundFormat]] &raquo;).
7656
1. Let _requestedLocales_ be ? CanonicalizeLocaleList(_locales_).
7757
1. If _required_ is not *"any"* or _defaults_ is not *"date"*, then
7858
1. Set _options_ to ? ToDateTimeOptions(_options_, _required_, _defaults_).

0 commit comments

Comments
 (0)