@@ -30,13 +30,13 @@ <h1>Intl.Collator ( [ _locales_ [ , _options_ ] ] )</h1>
3030 1. Else,
3131 1. Let _localeData_ be %Intl.Collator%.[[SearchLocaleData]].
3232 1. Let _optionsResolution_ be ? ResolveOptions(%Intl.Collator%, _localeData_ , CreateArrayFromList(_requestedLocales_ ), _options_ ).
33- 1. Let _r_ be _optionsResolution_ .[[ResolvedLocale]].
34- 1. Set _collator_ .[[Locale]] to _r_ .[[Locale]].
35- 1. If _r_ .[[co]] is *null* , let _collation_ be *"default"* . Otherwise, let _collation_ be _r_ .[[co]].
33+ 1. Let _resolvedLocale_ be _optionsResolution_ .[[ResolvedLocale]].
34+ 1. Set _collator_ .[[Locale]] to _resolvedLocale_ .[[Locale]].
35+ 1. If _resolvedLocale_ .[[co]] is *null* , let _collation_ be *"default"* . Otherwise, let _collation_ be _resolvedLocale_ .[[co]].
3636 1. Set _collator_ .[[Collation]] to _collation_ .
37- 1. Set _collator_ .[[Numeric]] to SameValue(_r_ .[[kn]], *"true"* ).
38- 1. Set _collator_ .[[CaseFirst]] to _r_ .[[kf]].
39- 1. Let _resolvedLocaleData_ be _r_ .[[LocaleData]].
37+ 1. Set _collator_ .[[Numeric]] to SameValue(_resolvedLocale_ .[[kn]], *"true"* ).
38+ 1. Set _collator_ .[[CaseFirst]] to _resolvedLocale_ .[[kf]].
39+ 1. Let _resolvedLocaleData_ be _resolvedLocale_ .[[LocaleData]].
4040 1. If _usage_ is *"sort"* , let _defaultSensitivity_ be *"variant"* . Otherwise, let _defaultSensitivity_ be _resolvedLocaleData_ .[[sensitivity]].
4141 1. Set _collator_ .[[Sensitivity]] to ? GetOption(_options_ , *"sensitivity"* , ~string~ , « *"base"* , *"accent"* , *"case"* , *"variant"* », _defaultSensitivity_ ).
4242 1. Let _defaultIgnorePunctuation_ be _resolvedLocaleData_ .[[ignorePunctuation]].
@@ -128,14 +128,14 @@ <h1>Intl.Collator.prototype.resolvedOptions ( )</h1>
128128 1. Perform ? RequireInternalSlot(_collator_ , [[InitializedCollator]]).
129129 1. Let _options_ be OrdinaryObjectCreate(%Object.prototype%).
130130 1. For each row of <emu-xref href =" #table-collator-resolvedoptions-properties" ></emu-xref >, except the header row, in table order, do
131- 1. Let _p_ be the Property value of the current row.
132- 1. Let _v_ be the value of _collator_ 's internal slot whose name is the Internal Slot value of the current row.
131+ 1. Let _propertyKey_ be the Property value of the current row.
132+ 1. Let _value_ be the value of _collator_ 's internal slot whose name is the Internal Slot value of the current row.
133133 1. If the current row has an Extension Key value, then
134134 1. Let _extensionKey_ be the Extension Key value of the current row.
135135 1. If %Intl.Collator%.[[RelevantExtensionKeys]] does not contain _extensionKey_ , then
136- 1. Set _v_ to *undefined* .
137- 1. If _v_ is not *undefined* , then
138- 1. Perform ! CreateDataPropertyOrThrow(_options_ , _p_ , _v_ ).
136+ 1. Set _value_ to *undefined* .
137+ 1. If _value_ is not *undefined* , then
138+ 1. Perform ! CreateDataPropertyOrThrow(_options_ , _propertyKey_ , _value_ ).
139139 1. Return _options_ .
140140 </emu-alg >
141141
@@ -198,9 +198,9 @@ <h1>get Intl.Collator.prototype.compare</h1>
198198 1. Let _collator_ be the *this* value.
199199 1. Perform ? RequireInternalSlot(_collator_ , [[InitializedCollator]]).
200200 1. If _collator_ .[[BoundCompare]] is *undefined* , then
201- 1. Let _F_ be a new built-in function object as defined in <emu-xref href =" #sec-collator-compare-functions" ></emu-xref >.
202- 1. Set _F_ .[[Collator]] to _collator_ .
203- 1. Set _collator_ .[[BoundCompare]] to _F_ .
201+ 1. Let _func_ be a new built-in function object as defined in <emu-xref href =" #sec-collator-compare-functions" ></emu-xref >.
202+ 1. Set _func_ .[[Collator]] to _collator_ .
203+ 1. Set _collator_ .[[BoundCompare]] to _func_ .
204204 1. Return _collator_ .[[BoundCompare]].
205205 </emu-alg >
206206
@@ -212,16 +212,16 @@ <h1>get Intl.Collator.prototype.compare</h1>
212212 <h1 >Collator Compare Functions</h1 >
213213
214214 <p >A Collator compare function is an anonymous built-in function that has a [[Collator]] internal slot.</p >
215- <p >When a Collator compare function _F_ is called with arguments _x_ and _y_ , the following steps are taken:</p >
215+ <p >When a Collator compare function _func_ is called with arguments _x_ and _y_ , the following steps are taken:</p >
216216
217217 <emu-alg >
218- 1. Let _collator_ be _F_ .[[Collator]].
218+ 1. Let _collator_ be _func_ .[[Collator]].
219219 1. Assert: _collator_ is an Object and _collator_ has an [[InitializedCollator]] internal slot.
220220 1. If _x_ is not provided, let _x_ be *undefined* .
221221 1. If _y_ is not provided, let _y_ be *undefined* .
222- 1. Let _X_ be ? ToString(_x_ ).
223- 1. Let _Y_ be ? ToString(_y_ ).
224- 1. Return CompareStrings(_collator_ , _X_ , _Y_ ).
222+ 1. Let _xString_ be ? ToString(_x_ ).
223+ 1. Let _yString_ be ? ToString(_y_ ).
224+ 1. Return CompareStrings(_collator_ , _xString_ , _yString_ ).
225225 </emu-alg >
226226
227227 <p >The *"length"* property of a Collator compare function is *2* <sub >𝔽</sub >.</p >
0 commit comments