Skip to content

Commit

Permalink
Deploying to gh-pages from @ 62fe5db 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-allen committed Oct 11, 2024
1 parent 94ff370 commit eac694f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4612,7 +4612,7 @@ <h1><span class="secnum">16.3.5</span> Intl.PluralRules.prototype.resolvedOption
This function provides access to the locale and options computed during initialization of the object.
</p>

<emu-alg><ol><li>Let <var>pr</var> be the <emu-val>this</emu-val> value.</li><li>Perform ?&nbsp;<emu-xref aoid="RequireInternalSlot"><a href="https://tc39.es/ecma262/#sec-requireinternalslot">RequireInternalSlot</a></emu-xref>(<var>pr</var>, <var class="field">[[InitializedPluralRules]]</var>).</li><li>Let <var>options</var> be <emu-xref aoid="OrdinaryObjectCreate"><a href="https://tc39.es/ecma262/#sec-ordinaryobjectcreate">OrdinaryObjectCreate</a></emu-xref>(<emu-xref href="#sec-properties-of-the-object-prototype-object"><a href="https://tc39.es/ecma262/#sec-properties-of-the-object-prototype-object">%Object.prototype%</a></emu-xref>).</li><li>Let <var>pluralCategories</var> be a <emu-xref href="#sec-list-and-record-specification-type"><a href="https://tc39.es/ecma262/#sec-list-and-record-specification-type">List</a></emu-xref> of Strings containing all possible results of <emu-xref href="#sec-pluralruleselect" id="_ref_142"><a href="#sec-pluralruleselect">PluralRuleSelect</a></emu-xref> for the selected locale <var>pr</var>.<var class="field">[[Locale]]</var>.</li><li>For each row of <emu-xref href="#table-pluralrules-resolvedoptions-properties" id="_ref_143"><a href="#table-pluralrules-resolvedoptions-properties">Table 25</a></emu-xref>, except the header row, in table order, do<ol><li>Let <var>p</var> be the Property value of the current row.</li><li>If <var>p</var> is <emu-val>"pluralCategories"</emu-val>, then<ol><li>Let <var>v</var> be <emu-xref aoid="CreateArrayFromList"><a href="https://tc39.es/ecma262/#sec-createarrayfromlist">CreateArrayFromList</a></emu-xref>(<var>pluralCategories</var>).</li></ol></li><li>Else,<ol><li>Let <var>v</var> be the value of <var>pr</var>'s internal slot whose name is the Internal Slot value of the current row.</li></ol></li><li>If <var>v</var> is not <emu-val>undefined</emu-val>, then<ol><li>If there is a Conversion value in the current row, then<ol><li><emu-xref href="#assert"><a href="https://tc39.es/ecma262/#assert">Assert</a></emu-xref>: The Conversion value of the current row is <emu-const>number</emu-const>.</li><li>Set <var>v</var> to <emu-xref aoid="𝔽"><a href="https://tc39.es/ecma262/#𝔽">𝔽</a></emu-xref>(<var>v</var>).</li></ol></li><li>Perform !&nbsp;<emu-xref aoid="CreateDataPropertyOrThrow"><a href="https://tc39.es/ecma262/#sec-createdatapropertyorthrow">CreateDataPropertyOrThrow</a></emu-xref>(<var>options</var>, <var>p</var>, <var>v</var>).</li></ol></li></ol></li><li>Return <var>options</var>.</li></ol></emu-alg>
<emu-alg><ol><li>Let <var>pr</var> be the <emu-val>this</emu-val> value.</li><li>Perform ?&nbsp;<emu-xref aoid="RequireInternalSlot"><a href="https://tc39.es/ecma262/#sec-requireinternalslot">RequireInternalSlot</a></emu-xref>(<var>pr</var>, <var class="field">[[InitializedPluralRules]]</var>).</li><li>Let <var>options</var> be <emu-xref aoid="OrdinaryObjectCreate"><a href="https://tc39.es/ecma262/#sec-ordinaryobjectcreate">OrdinaryObjectCreate</a></emu-xref>(<emu-xref href="#sec-properties-of-the-object-prototype-object"><a href="https://tc39.es/ecma262/#sec-properties-of-the-object-prototype-object">%Object.prototype%</a></emu-xref>).</li><li>Let <var>pluralCategories</var> be a <emu-xref href="#sec-list-and-record-specification-type"><a href="https://tc39.es/ecma262/#sec-list-and-record-specification-type">List</a></emu-xref> of Strings containing all possible results of <emu-xref href="#sec-pluralruleselect" id="_ref_142"><a href="#sec-pluralruleselect">PluralRuleSelect</a></emu-xref> for the selected locale <var>pr</var>.<var class="field">[[Locale]]</var>, sorted according to the following order: <emu-val>"zero"</emu-val>, <emu-val>"one"</emu-val>, <emu-val>"two"</emu-val>, <emu-val>"few"</emu-val>, <emu-val>"many"</emu-val>, <emu-val>"other"</emu-val>.</li><li>For each row of <emu-xref href="#table-pluralrules-resolvedoptions-properties" id="_ref_143"><a href="#table-pluralrules-resolvedoptions-properties">Table 25</a></emu-xref>, except the header row, in table order, do<ol><li>Let <var>p</var> be the Property value of the current row.</li><li>If <var>p</var> is <emu-val>"pluralCategories"</emu-val>, then<ol><li>Let <var>v</var> be <emu-xref aoid="CreateArrayFromList"><a href="https://tc39.es/ecma262/#sec-createarrayfromlist">CreateArrayFromList</a></emu-xref>(<var>pluralCategories</var>).</li></ol></li><li>Else,<ol><li>Let <var>v</var> be the value of <var>pr</var>'s internal slot whose name is the Internal Slot value of the current row.</li></ol></li><li>If <var>v</var> is not <emu-val>undefined</emu-val>, then<ol><li>If there is a Conversion value in the current row, then<ol><li><emu-xref href="#assert"><a href="https://tc39.es/ecma262/#assert">Assert</a></emu-xref>: The Conversion value of the current row is <emu-const>number</emu-const>.</li><li>Set <var>v</var> to <emu-xref aoid="𝔽"><a href="https://tc39.es/ecma262/#𝔽">𝔽</a></emu-xref>(<var>v</var>).</li></ol></li><li>Perform !&nbsp;<emu-xref aoid="CreateDataPropertyOrThrow"><a href="https://tc39.es/ecma262/#sec-createdatapropertyorthrow">CreateDataPropertyOrThrow</a></emu-xref>(<var>options</var>, <var>p</var>, <var>v</var>).</li></ol></li></ol></li><li>Return <var>options</var>.</li></ol></emu-alg>

<emu-table id="table-pluralrules-resolvedoptions-properties"><figure><figcaption>Table 25: Resolved Options of PluralRules Instances</figcaption>

Expand Down

0 comments on commit eac694f

Please sign in to comment.