Skip to content

Commit 9c7c1b9

Browse files
committed
Editorial: Remove single-use _localeData_ aliases
1 parent f3af2fd commit 9c7c1b9

7 files changed

+7
-14
lines changed

spec/datetimeformat.html

+1-2
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,7 @@ <h1>
7979
1. If _hour12_ is not *undefined*, then
8080
1. Set _hourCycle_ to *null*.
8181
1. Set _opt_.[[hc]] to _hourCycle_.
82-
1. Let _localeData_ be %Intl.DateTimeFormat%.[[LocaleData]].
83-
1. Let _r_ be ResolveLocale(%Intl.DateTimeFormat%.[[AvailableLocales]], _requestedLocales_, _opt_, %Intl.DateTimeFormat%.[[RelevantExtensionKeys]], _localeData_).
82+
1. Let _r_ be ResolveLocale(%Intl.DateTimeFormat%.[[AvailableLocales]], _requestedLocales_, _opt_, %Intl.DateTimeFormat%.[[RelevantExtensionKeys]], %Intl.DateTimeFormat%.[[LocaleData]]).
8483
1. Set _dateTimeFormat_.[[Locale]] to _r_.[[Locale]].
8584
1. Let _resolvedCalendar_ be _r_.[[ca]].
8685
1. Set _dateTimeFormat_.[[Calendar]] to _resolvedCalendar_.

spec/displaynames.html

+1-2
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,9 @@ <h1>Intl.DisplayNames ( _locales_, _options_ )</h1>
2222
1. If _options_ is *undefined*, throw a *TypeError* exception.
2323
1. Set _options_ to ? GetOptionsObject(_options_).
2424
1. Let _opt_ be a new Record.
25-
1. Let _localeData_ be %Intl.DisplayNames%.[[LocaleData]].
2625
1. Let _matcher_ be ? GetOption(_options_, *"localeMatcher"*, ~string~, &laquo; *"lookup"*, *"best fit"* &raquo;, *"best fit"*).
2726
1. Set _opt_.[[localeMatcher]] to _matcher_.
28-
1. Let _r_ be ResolveLocale(%Intl.DisplayNames%.[[AvailableLocales]], _requestedLocales_, _opt_, %Intl.DisplayNames%.[[RelevantExtensionKeys]], _localeData_).
27+
1. Let _r_ be ResolveLocale(%Intl.DisplayNames%.[[AvailableLocales]], _requestedLocales_, _opt_, %Intl.DisplayNames%.[[RelevantExtensionKeys]], %Intl.DisplayNames%.[[LocaleData]]).
2928
1. Let _style_ be ? GetOption(_options_, *"style"*, ~string~, &laquo; *"narrow"*, *"short"*, *"long"* &raquo;, *"long"*).
3029
1. Set _displayNames_.[[Style]] to _style_.
3130
1. Let _type_ be ? GetOption(_options_, *"type"*, ~string~, &laquo; *"language"*, *"region"*, *"script"*, *"currency"*, *"calendar"*, *"dateTimeField"* &raquo;, *undefined*).

spec/listformat.html

+1-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ <h1>Intl.ListFormat ( [ _locales_ [ , _options_ ] ] )</h1>
2323
1. Let _opt_ be a new Record.
2424
1. Let _matcher_ be ? GetOption(_options_, *"localeMatcher"*, ~string~, &laquo; *"lookup"*, *"best fit"* &raquo;, *"best fit"*).
2525
1. Set _opt_.[[localeMatcher]] to _matcher_.
26-
1. Let _localeData_ be %Intl.ListFormat%.[[LocaleData]].
27-
1. Let _r_ be ResolveLocale(%Intl.ListFormat%.[[AvailableLocales]], _requestedLocales_, _opt_, %Intl.ListFormat%.[[RelevantExtensionKeys]], _localeData_).
26+
1. Let _r_ be ResolveLocale(%Intl.ListFormat%.[[AvailableLocales]], _requestedLocales_, _opt_, %Intl.ListFormat%.[[RelevantExtensionKeys]], %Intl.ListFormat%.[[LocaleData]]).
2827
1. Set _listFormat_.[[Locale]] to _r_.[[Locale]].
2928
1. Let _type_ be ? GetOption(_options_, *"type"*, ~string~, &laquo; *"conjunction"*, *"disjunction"*, *"unit"* &raquo;, *"conjunction"*).
3029
1. Set _listFormat_.[[Type]] to _type_.

spec/numberformat.html

+1-2
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,7 @@ <h1>
6868
1. If _numberingSystem_ is not *undefined*, then
6969
1. If _numberingSystem_ cannot be matched by the <code>type</code> Unicode locale nonterminal, throw a *RangeError* exception.
7070
1. Set _opt_.[[nu]] to _numberingSystem_.
71-
1. Let _localeData_ be %Intl.NumberFormat%.[[LocaleData]].
72-
1. Let _r_ be ResolveLocale(%Intl.NumberFormat%.[[AvailableLocales]], _requestedLocales_, _opt_, %Intl.NumberFormat%.[[RelevantExtensionKeys]], _localeData_).
71+
1. Let _r_ be ResolveLocale(%Intl.NumberFormat%.[[AvailableLocales]], _requestedLocales_, _opt_, %Intl.NumberFormat%.[[RelevantExtensionKeys]], %Intl.NumberFormat%.[[LocaleData]]).
7372
1. Set _numberFormat_.[[Locale]] to _r_.[[Locale]].
7473
1. Set _numberFormat_.[[LocaleData]] to _r_.[[LocaleData]].
7574
1. Set _numberFormat_.[[NumberingSystem]] to _r_.[[nu]].

spec/pluralrules.html

+1-2
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ <h1>
4343
1. Let _t_ be ? GetOption(_options_, *"type"*, ~string~, &laquo; *"cardinal"*, *"ordinal"* &raquo;, *"cardinal"*).
4444
1. Set _pluralRules_.[[Type]] to _t_.
4545
1. Perform ? SetNumberFormatDigitOptions(_pluralRules_, _options_, 0, 3, *"standard"*).
46-
1. Let _localeData_ be %Intl.PluralRules%.[[LocaleData]].
47-
1. Let _r_ be ResolveLocale(%Intl.PluralRules%.[[AvailableLocales]], _requestedLocales_, _opt_, %Intl.PluralRules%.[[RelevantExtensionKeys]], _localeData_).
46+
1. Let _r_ be ResolveLocale(%Intl.PluralRules%.[[AvailableLocales]], _requestedLocales_, _opt_, %Intl.PluralRules%.[[RelevantExtensionKeys]], %Intl.PluralRules%.[[LocaleData]]).
4847
1. Set _pluralRules_.[[Locale]] to _r_.[[Locale]].
4948
1. Return _pluralRules_.
5049
</emu-alg>

spec/relativetimeformat.html

+1-2
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ <h1>
4646
1. If _numberingSystem_ is not *undefined*, then
4747
1. If _numberingSystem_ cannot be matched by the <code>type</code> Unicode locale nonterminal, throw a *RangeError* exception.
4848
1. Set _opt_.[[nu]] to _numberingSystem_.
49-
1. Let _localeData_ be %Intl.RelativeTimeFormat%.[[LocaleData]].
50-
1. Let _r_ be ResolveLocale(%Intl.RelativeTimeFormat%.[[AvailableLocales]], _requestedLocales_, _opt_, %Intl.RelativeTimeFormat%.[[RelevantExtensionKeys]], _localeData_).
49+
1. Let _r_ be ResolveLocale(%Intl.RelativeTimeFormat%.[[AvailableLocales]], _requestedLocales_, _opt_, %Intl.RelativeTimeFormat%.[[RelevantExtensionKeys]], %Intl.RelativeTimeFormat%.[[LocaleData]]).
5150
1. Let _locale_ be _r_.[[Locale]].
5251
1. Set _relativeTimeFormat_.[[Locale]] to _locale_.
5352
1. Set _relativeTimeFormat_.[[LocaleData]] to _r_.[[LocaleData]].

spec/segmenter.html

+1-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ <h1>Intl.Segmenter ( [ _locales_ [ , _options_ ] ] )</h1>
2424
1. Let _opt_ be a new Record.
2525
1. Let _matcher_ be ? GetOption(_options_, *"localeMatcher"*, ~string~, &laquo; *"lookup"*, *"best fit"* &raquo;, *"best fit"*).
2626
1. Set _opt_.[[localeMatcher]] to _matcher_.
27-
1. Let _localeData_ be %Intl.Segmenter%.[[LocaleData]].
28-
1. Let _r_ be ResolveLocale(%Intl.Segmenter%.[[AvailableLocales]], _requestedLocales_, _opt_, %Intl.Segmenter%.[[RelevantExtensionKeys]], _localeData_).
27+
1. Let _r_ be ResolveLocale(%Intl.Segmenter%.[[AvailableLocales]], _requestedLocales_, _opt_, %Intl.Segmenter%.[[RelevantExtensionKeys]], %Intl.Segmenter%.[[LocaleData]]).
2928
1. Set _segmenter_.[[Locale]] to _r_.[[Locale]].
3029
1. Let _granularity_ be ? GetOption(_options_, *"granularity"*, ~string~, &laquo; *"grapheme"*, *"word"*, *"sentence"* &raquo;, *"grapheme"*).
3130
1. Set _segmenter_.[[SegmenterGranularity]] to _granularity_.

0 commit comments

Comments
 (0)