Skip to content

Commit

Permalink
Editorial: Remove single-use _localeData_ aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
gibson042 committed Feb 27, 2024
1 parent f7fad57 commit 3a03129
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 14 deletions.
3 changes: 1 addition & 2 deletions spec/datetimeformat.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@ <h1>
1. If _hour12_ is not *undefined*, then
1. Set _hourCycle_ to *null*.
1. Set _opt_.[[hc]] to _hourCycle_.
1. Let _localeData_ be %Intl.DateTimeFormat%.[[LocaleData]].
1. Let _r_ be ResolveLocale(%Intl.DateTimeFormat%.[[AvailableLocales]], _requestedLocales_, _opt_, %Intl.DateTimeFormat%.[[RelevantExtensionKeys]], _localeData_).
1. Let _r_ be ResolveLocale(%Intl.DateTimeFormat%.[[AvailableLocales]], _requestedLocales_, _opt_, %Intl.DateTimeFormat%.[[RelevantExtensionKeys]], %Intl.DateTimeFormat%.[[LocaleData]]).
1. Set _dateTimeFormat_.[[Locale]] to _r_.[[Locale]].
1. Let _resolvedCalendar_ be _r_.[[ca]].
1. Set _dateTimeFormat_.[[Calendar]] to _resolvedCalendar_.
Expand Down
3 changes: 1 addition & 2 deletions spec/displaynames.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,9 @@ <h1>Intl.DisplayNames ( _locales_, _options_ )</h1>
1. If _options_ is *undefined*, throw a *TypeError* exception.
1. Set _options_ to ? GetOptionsObject(_options_).
1. Let _opt_ be a new Record.
1. Let _localeData_ be %Intl.DisplayNames%.[[LocaleData]].
1. Let _matcher_ be ? GetOption(_options_, *"localeMatcher"*, ~string~, &laquo; *"lookup"*, *"best fit"* &raquo;, *"best fit"*).
1. Set _opt_.[[localeMatcher]] to _matcher_.
1. Let _r_ be ResolveLocale(%Intl.DisplayNames%.[[AvailableLocales]], _requestedLocales_, _opt_, %Intl.DisplayNames%.[[RelevantExtensionKeys]], _localeData_).
1. Let _r_ be ResolveLocale(%Intl.DisplayNames%.[[AvailableLocales]], _requestedLocales_, _opt_, %Intl.DisplayNames%.[[RelevantExtensionKeys]], %Intl.DisplayNames%.[[LocaleData]]).
1. Let _style_ be ? GetOption(_options_, *"style"*, ~string~, &laquo; *"narrow"*, *"short"*, *"long"* &raquo;, *"long"*).
1. Set _displayNames_.[[Style]] to _style_.
1. Let _type_ be ? GetOption(_options_, *"type"*, ~string~, &laquo; *"language"*, *"region"*, *"script"*, *"currency"*, *"calendar"*, *"dateTimeField"* &raquo;, *undefined*).
Expand Down
3 changes: 1 addition & 2 deletions spec/listformat.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ <h1>Intl.ListFormat ( [ _locales_ [ , _options_ ] ] )</h1>
1. Let _opt_ be a new Record.
1. Let _matcher_ be ? GetOption(_options_, *"localeMatcher"*, ~string~, &laquo; *"lookup"*, *"best fit"* &raquo;, *"best fit"*).
1. Set _opt_.[[localeMatcher]] to _matcher_.
1. Let _localeData_ be %Intl.ListFormat%.[[LocaleData]].
1. Let _r_ be ResolveLocale(%Intl.ListFormat%.[[AvailableLocales]], _requestedLocales_, _opt_, %Intl.ListFormat%.[[RelevantExtensionKeys]], _localeData_).
1. Let _r_ be ResolveLocale(%Intl.ListFormat%.[[AvailableLocales]], _requestedLocales_, _opt_, %Intl.ListFormat%.[[RelevantExtensionKeys]], %Intl.ListFormat%.[[LocaleData]]).
1. Set _listFormat_.[[Locale]] to _r_.[[Locale]].
1. Let _type_ be ? GetOption(_options_, *"type"*, ~string~, &laquo; *"conjunction"*, *"disjunction"*, *"unit"* &raquo;, *"conjunction"*).
1. Set _listFormat_.[[Type]] to _type_.
Expand Down
3 changes: 1 addition & 2 deletions spec/numberformat.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ <h1>
1. If _numberingSystem_ is not *undefined*, then
1. If _numberingSystem_ cannot be matched by the <code>type</code> Unicode locale nonterminal, throw a *RangeError* exception.
1. Set _opt_.[[nu]] to _numberingSystem_.
1. Let _localeData_ be %Intl.NumberFormat%.[[LocaleData]].
1. Let _r_ be ResolveLocale(%Intl.NumberFormat%.[[AvailableLocales]], _requestedLocales_, _opt_, %Intl.NumberFormat%.[[RelevantExtensionKeys]], _localeData_).
1. Let _r_ be ResolveLocale(%Intl.NumberFormat%.[[AvailableLocales]], _requestedLocales_, _opt_, %Intl.NumberFormat%.[[RelevantExtensionKeys]], %Intl.NumberFormat%.[[LocaleData]]).
1. Set _numberFormat_.[[Locale]] to _r_.[[Locale]].
1. Set _numberFormat_.[[LocaleData]] to _r_.[[LocaleData]].
1. Set _numberFormat_.[[NumberingSystem]] to _r_.[[nu]].
Expand Down
3 changes: 1 addition & 2 deletions spec/pluralrules.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ <h1>
1. Let _t_ be ? GetOption(_options_, *"type"*, ~string~, &laquo; *"cardinal"*, *"ordinal"* &raquo;, *"cardinal"*).
1. Set _pluralRules_.[[Type]] to _t_.
1. Perform ? SetNumberFormatDigitOptions(_pluralRules_, _options_, 0, 3, *"standard"*).
1. Let _localeData_ be %Intl.PluralRules%.[[LocaleData]].
1. Let _r_ be ResolveLocale(%Intl.PluralRules%.[[AvailableLocales]], _requestedLocales_, _opt_, %Intl.PluralRules%.[[RelevantExtensionKeys]], _localeData_).
1. Let _r_ be ResolveLocale(%Intl.PluralRules%.[[AvailableLocales]], _requestedLocales_, _opt_, %Intl.PluralRules%.[[RelevantExtensionKeys]], %Intl.PluralRules%.[[LocaleData]]).
1. Set _pluralRules_.[[Locale]] to _r_.[[Locale]].
1. Return _pluralRules_.
</emu-alg>
Expand Down
3 changes: 1 addition & 2 deletions spec/relativetimeformat.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ <h1>
1. If _numberingSystem_ is not *undefined*, then
1. If _numberingSystem_ cannot be matched by the <code>type</code> Unicode locale nonterminal, throw a *RangeError* exception.
1. Set _opt_.[[nu]] to _numberingSystem_.
1. Let _localeData_ be %Intl.RelativeTimeFormat%.[[LocaleData]].
1. Let _r_ be ResolveLocale(%Intl.RelativeTimeFormat%.[[AvailableLocales]], _requestedLocales_, _opt_, %Intl.RelativeTimeFormat%.[[RelevantExtensionKeys]], _localeData_).
1. Let _r_ be ResolveLocale(%Intl.RelativeTimeFormat%.[[AvailableLocales]], _requestedLocales_, _opt_, %Intl.RelativeTimeFormat%.[[RelevantExtensionKeys]], %Intl.RelativeTimeFormat%.[[LocaleData]]).
1. Let _locale_ be _r_.[[Locale]].
1. Set _relativeTimeFormat_.[[Locale]] to _locale_.
1. Set _relativeTimeFormat_.[[LocaleData]] to _r_.[[LocaleData]].
Expand Down
3 changes: 1 addition & 2 deletions spec/segmenter.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ <h1>Intl.Segmenter ( [ _locales_ [ , _options_ ] ] )</h1>
1. Let _opt_ be a new Record.
1. Let _matcher_ be ? GetOption(_options_, *"localeMatcher"*, ~string~, &laquo; *"lookup"*, *"best fit"* &raquo;, *"best fit"*).
1. Set _opt_.[[localeMatcher]] to _matcher_.
1. Let _localeData_ be %Intl.Segmenter%.[[LocaleData]].
1. Let _r_ be ResolveLocale(%Intl.Segmenter%.[[AvailableLocales]], _requestedLocales_, _opt_, %Intl.Segmenter%.[[RelevantExtensionKeys]], _localeData_).
1. Let _r_ be ResolveLocale(%Intl.Segmenter%.[[AvailableLocales]], _requestedLocales_, _opt_, %Intl.Segmenter%.[[RelevantExtensionKeys]], %Intl.Segmenter%.[[LocaleData]]).
1. Set _segmenter_.[[Locale]] to _r_.[[Locale]].
1. Let _granularity_ be ? GetOption(_options_, *"granularity"*, ~string~, &laquo; *"grapheme"*, *"word"*, *"sentence"* &raquo;, *"grapheme"*).
1. Set _segmenter_.[[SegmenterGranularity]] to _granularity_.
Expand Down

0 comments on commit 3a03129

Please sign in to comment.