Skip to content

Commit

Permalink
Editorial: Rename _dataLocaleData_ aliases to the more accurate _reso…
Browse files Browse the repository at this point in the history
…lvedLocaleData_
  • Loading branch information
gibson042 committed Dec 15, 2023
1 parent 494be7a commit f669ae0
Showing 4 changed files with 14 additions and 14 deletions.
12 changes: 6 additions & 6 deletions spec/datetimeformat.html
Original file line number Diff line number Diff line change
@@ -86,15 +86,15 @@ <h1>
1. Set _dateTimeFormat_.[[Calendar]] to _resolvedCalendar_.
1. Set _dateTimeFormat_.[[NumberingSystem]] to _r_.[[nu]].
1. Let _dataLocale_ be _r_.[[dataLocale]].
1. Let _dataLocaleData_ be _localeData_.[[&lt;_dataLocale_&gt;]].
1. Let _resolvedLocaleData_ be _localeData_.[[&lt;_dataLocale_&gt;]].
1. If _hour12_ is *true*, then
1. Let _hc_ be _dataLocaleData_.[[hourCycle12]].
1. Let _hc_ be _resolvedLocaleData_.[[hourCycle12]].
1. Else if _hour12_ is *false*, then
1. Let _hc_ be _dataLocaleData_.[[hourCycle24]].
1. Let _hc_ be _resolvedLocaleData_.[[hourCycle24]].
1. Else,
1. Assert: _hour12_ is *undefined*.
1. Let _hc_ be _r_.[[hc]].
1. If _hc_ is *null*, set _hc_ to _dataLocaleData_.[[hourCycle]].
1. If _hc_ is *null*, set _hc_ to _resolvedLocaleData_.[[hourCycle]].
1. Set _dateTimeFormat_.[[HourCycle]] to _hc_.
1. Let _timeZone_ be ? Get(_options_, *"timeZone"*).
1. If _timeZone_ is *undefined*, then
@@ -139,7 +139,7 @@ <h1>
1. Throw a *TypeError* exception.
1. If _required_ is ~time~ and _dateStyle_ is not *undefined*, then
1. Throw a *TypeError* exception.
1. Let _styles_ be _dataLocaleData_.[[styles]].[[&lt;_resolvedCalendar_&gt;]].
1. Let _styles_ be _resolvedLocaleData_.[[styles]].[[&lt;_resolvedCalendar_&gt;]].
1. Let _bestFormat_ be DateTimeStyleFormat(_dateStyle_, _timeStyle_, _styles_).
1. Else,
1. Let _needDefaults_ be *true*.
@@ -157,7 +157,7 @@ <h1>
1. If _needDefaults_ is *true* and _defaults_ is either ~time~ or ~all~, then
1. For each property name _prop_ of &laquo; *"hour"*, *"minute"*, *"second"* &raquo;, do
1. Set _formatOptions_.[[&lt;_prop_&gt;]] to *"numeric"*.
1. Let _formats_ be _dataLocaleData_.[[formats]].[[&lt;_resolvedCalendar_&gt;]].
1. Let _formats_ be _resolvedLocaleData_.[[formats]].[[&lt;_resolvedCalendar_&gt;]].
1. If _formatMatcher_ is *"basic"*, then
1. Let _bestFormat_ be BasicFormatMatcher(_formatOptions_, _formats_).
1. Else,
4 changes: 2 additions & 2 deletions spec/displaynames.html
Original file line number Diff line number Diff line change
@@ -35,8 +35,8 @@ <h1>Intl.DisplayNames ( _locales_, _options_ )</h1>
1. Set _displayNames_.[[Fallback]] to _fallback_.
1. Set _displayNames_.[[Locale]] to _r_.[[locale]].
1. Let _dataLocale_ be _r_.[[dataLocale]].
1. Let _dataLocaleData_ be _localeData_.[[&lt;_dataLocale_&gt;]].
1. Let _types_ be _dataLocaleData_.[[types]].
1. Let _resolvedLocaleData_ be _localeData_.[[&lt;_dataLocale_&gt;]].
1. Let _types_ be _resolvedLocaleData_.[[types]].
1. Assert: _types_ is a Record (see <emu-xref href="#sec-Intl.DisplayNames-internal-slots"></emu-xref>).
1. Let _languageDisplay_ be ? GetOption(_options_, *"languageDisplay"*, ~string~, &laquo; *"dialect"*, *"standard"* &raquo;, *"dialect"*).
1. Let _typeFields_ be _types_.[[&lt;_type_&gt;]].
4 changes: 2 additions & 2 deletions spec/listformat.html
Original file line number Diff line number Diff line change
@@ -31,8 +31,8 @@ <h1>Intl.ListFormat ( [ _locales_ [ , _options_ ] ] )</h1>
1. Let _style_ be ? GetOption(_options_, *"style"*, ~string~, &laquo; *"long"*, *"short"*, *"narrow"* &raquo;, *"long"*).
1. Set _listFormat_.[[Style]] to _style_.
1. Let _dataLocale_ be _r_.[[dataLocale]].
1. Let _dataLocaleData_ be _localeData_.[[&lt;_dataLocale_&gt;]].
1. Let _dataLocaleTypes_ be _dataLocaleData_.[[&lt;_type_&gt;]].
1. Let _resolvedLocaleData_ be _localeData_.[[&lt;_dataLocale_&gt;]].
1. Let _dataLocaleTypes_ be _resolvedLocaleData_.[[&lt;_type_&gt;]].
1. Set _listFormat_.[[Templates]] to _dataLocaleTypes_.[[&lt;_style_&gt;]].
1. Return _listFormat_.
</emu-alg>
8 changes: 4 additions & 4 deletions spec/numberformat.html
Original file line number Diff line number Diff line change
@@ -1461,8 +1461,8 @@ <h1>
<emu-alg>
1. Let _localeData_ be %NumberFormat%.[[LocaleData]].
1. Let _dataLocale_ be _numberFormat_.[[DataLocale]].
1. Let _dataLocaleData_ be _localeData_.[[&lt;_dataLocale_&gt;]].
1. Let _patterns_ be _dataLocaleData_.[[patterns]].
1. Let _resolvedLocaleData_ be _localeData_.[[&lt;_dataLocale_&gt;]].
1. Let _patterns_ be _resolvedLocaleData_.[[patterns]].
1. Assert: _patterns_ is a Record (see <emu-xref href="#sec-intl.numberformat-internal-slots"></emu-xref>).
1. Let _style_ be _numberFormat_.[[Style]].
1. If _style_ is *"percent"*, then
@@ -1550,8 +1550,8 @@ <h1>
<emu-alg>
1. Let _localeData_ be %NumberFormat%.[[LocaleData]].
1. Let _dataLocale_ be _numberFormat_.[[DataLocale]].
1. Let _dataLocaleData_ be _localeData_.[[&lt;_dataLocale_&gt;]].
1. Let _notationSubPatterns_ be _dataLocaleData_.[[notationSubPatterns]].
1. Let _resolvedLocaleData_ be _localeData_.[[&lt;_dataLocale_&gt;]].
1. Let _notationSubPatterns_ be _resolvedLocaleData_.[[notationSubPatterns]].
1. Assert: _notationSubPatterns_ is a Record (see <emu-xref href="#sec-intl.numberformat-internal-slots"></emu-xref>).
1. Let _notation_ be _numberFormat_.[[Notation]].
1. If _notation_ is *"scientific"* or _notation_ is *"engineering"*, then

0 comments on commit f669ae0

Please sign in to comment.