Skip to content

Commit a606142

Browse files
committed
Normative: Replace Locale.prototype.getVariants with Locale.prototype.variants
1 parent 49e60ec commit a606142

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

spec/locale.html

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -217,20 +217,6 @@ <h1>get Intl.Locale.prototype.collation</h1>
217217
</emu-alg>
218218
</emu-clause>
219219

220-
<emu-clause id="sec-Intl.Locale.prototype.getVariants">
221-
<h1>Intl.Locale.prototype.getVariants ( )</h1>
222-
223-
<emu-alg>
224-
1. Let _loc_ be the *this* value.
225-
1. Perform ? RequireInternalSlot(_loc_, [[InitializedLocale]]).
226-
1. Let _variantsString_ be GetLocaleVariants(_loc_.[[Locale]]).
227-
1. If _variantsString_ is *undefined*, then
228-
1. Return ! ArrayCreate(0).
229-
1. Let _variantsList_ be StringSplitToList(_variantsString_, *"-"*).
230-
1. Return CreateArrayFromList(_variantsList_).
231-
</emu-alg>
232-
</emu-clause>
233-
234220
<emu-clause id="sec-Intl.Locale.prototype.hourCycle">
235221
<h1>get Intl.Locale.prototype.hourCycle</h1>
236222
<p>`Intl.Locale.prototype.hourCycle` is an accessor property whose set accessor function is *undefined*. Its get accessor function performs the following steps:</p>
@@ -324,6 +310,16 @@ <h1>Intl.Locale.prototype.toString ( )</h1>
324310
</emu-alg>
325311
</emu-clause>
326312

313+
<emu-clause id="sec-Intl.Locale.prototype.variants">
314+
<h1>get Intl.Locale.prototype.variants</h1>
315+
<p>`Intl.Locale.prototype.variants` is an accessor property whose set accessor function is *undefined*. Its get accessor function performs the following steps:</p>
316+
<emu-alg>
317+
1. Let _loc_ be the *this* value.
318+
1. Perform ? RequireInternalSlot(_loc_, [[InitializedLocale]]).
319+
1. Return GetLocaleVariants(_loc_.[[Locale]]).
320+
</emu-alg>
321+
</emu-clause>
322+
327323
<emu-clause id="sec-intl.locale.prototype-%symbol.tostringtag%" oldids="sec-Intl.Locale.prototype-@@tostringtag">
328324
<h1>Intl.Locale.prototype [ %Symbol.toStringTag% ]</h1>
329325

0 commit comments

Comments
 (0)