Skip to content

Commit 8127f59

Browse files
committed
fixup: [spec] npm run build
1 parent d8830a2 commit 8127f59

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

โ€Žindex.htmlโ€Ž

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3474,11 +3474,11 @@ <h1><span class="secnum">1.2.2.1</span> The Decimal128.Amount Constructor</h1>
34743474
<li>is <dfn tabindex="-1">%Decimal128Amount%</dfn>.</li>
34753475
<li>is the initial value of the the <emu-val>"Amount"</emu-val> property of the Decimal128 object.</li>
34763476
<li>creates and initializes a new Decimal128.Amount object when called as a <emu-xref href="#constructor"><a href="https://tc39.es/ecma262/#constructor">constructor</a></emu-xref></li>
3477-
<li>may be used as the value of an <emu-val>extends</emu-val> clause of a class definition. Subclass <emu-xref href="#constructor"><a href="https://tc39.es/ecma262/#constructor">constructors</a></emu-xref> that intend to inherit the specified Decimal128.Amount behaviour must include a <emu-val>super</emu-val> call to the Decimal128.Amount <emu-xref href="#constructor"><a href="https://tc39.es/ecma262/#constructor">constructor</a></emu-xref> to create and initialize the subclass instance with the <var class="field">[[Decimal128AmountData]]</var> and <var class="field">[[Decimal128AmountPrecision]]</var> internal slots.</li>
3477+
<li>may be used as the value of an <emu-val>extends</emu-val> clause of a class definition. Subclass <emu-xref href="#constructor"><a href="https://tc39.es/ecma262/#constructor">constructors</a></emu-xref> that intend to inherit the specified Decimal128.Amount behaviour must include a <emu-val>super</emu-val> call to the Decimal128.Amount <emu-xref href="#constructor"><a href="https://tc39.es/ecma262/#constructor">constructor</a></emu-xref> to create and initialize the subclass instance with the <var class="field">[[Decimal128AmountData]]</var> and <var class="field">[[Decimal128AmountSignificantDigits]]</var> internal slots.</li>
34783478
</ul>
34793479
<emu-clause id="sec-the-decimal128-amount-constructor-value">
34803480
<h1><span class="secnum">1.2.2.1.1</span> Decimal128.Amount ( <var>s</var>, <var>precision</var> )</h1>
3481-
<emu-alg><ol><li>If NewTarget is <emu-val>undefined</emu-val>, throw a <emu-val>TypeError</emu-val> exception.</li><li>If <var>s</var> <emu-xref href="#sec-ecmascript-language-types-string-type"><a href="https://tc39.es/ecma262/#sec-ecmascript-language-types-string-type">is not a String</a></emu-xref>, throw a <emu-val>TypeError</emu-val> exception.</li><li>If <var>precision</var> <emu-xref href="#sec-ecmascript-language-types-number-type"><a href="https://tc39.es/ecma262/#sec-ecmascript-language-types-number-type">is not a Number</a></emu-xref>, throw a <emu-val>TypeError</emu-val> exception.</li><li>If <var>precision</var> is <emu-val>NaN</emu-val><sub>๐”ฝ</sub>, <emu-val>+โˆž</emu-val><sub>๐”ฝ</sub> or <emu-val>+โˆž</emu-val><sub>๐”ฝ</sub>, throw a <emu-val>RangeError</emu-val> exception.</li><li>If <emu-xref aoid="โ„"><a href="https://tc39.es/ecma262/#โ„">โ„</a></emu-xref>(<var>precision</var>) &lt; 0, throw a <emu-val>RangeError</emu-val> exception.</li><li>If <emu-xref aoid="โ„"><a href="https://tc39.es/ecma262/#โ„">โ„</a></emu-xref>(<var>precision</var>) is not an <emu-xref href="#integer"><a href="https://tc39.es/ecma262/#integer">integer</a></emu-xref>, throw a <emu-val>RangeError</emu-val> exception.</li><li>If <emu-xref aoid="โ„"><a href="https://tc39.es/ecma262/#โ„">โ„</a></emu-xref>(<var>precision</var>) &gt; 34, throw a <emu-val>RangeError</emu-val> exception.</li><li>Let <var>decimal</var> be ?&nbsp;<emu-xref aoid="Construct"><a href="https://tc39.es/ecma262/#sec-construct">Construct</a></emu-xref>(<emu-xref href="#sec-the-decimal-constructor" id="_ref_113"><a href="#sec-the-decimal-constructor">%Decimal128%</a></emu-xref>, <var>s</var>).</li><li>Let <var>O</var> be ?&nbsp;<emu-xref aoid="OrdinaryCreateFromConstructor"><a href="https://tc39.es/ecma262/#sec-ordinarycreatefromconstructor">OrdinaryCreateFromConstructor</a></emu-xref>(NewTarget, <emu-val>"%Decimal128Amount.prototype%"</emu-val>, ยซ <var class="field">[[Decimal128AmountData]]</var>, <var class="field">[[Decimal128AmountPrecision]]</var>&nbsp;ยป).</li><li>Set <var>O</var>.<var class="field">[[Decimal128AmountData]]</var> to <var>decimal</var>.<var class="field">[[Decimal128Data]]</var>.</li><li>Set <var>O</var>.<var class="field">[[Decimal128AmountPrecision]]</var> to <var>precision</var>.</li><li>Return <var>O</var>.</li></ol></emu-alg>
3481+
<emu-alg><ol><li>If NewTarget is <emu-val>undefined</emu-val>, throw a <emu-val>TypeError</emu-val> exception.</li><li>If <var>s</var> <emu-xref href="#sec-ecmascript-language-types-string-type"><a href="https://tc39.es/ecma262/#sec-ecmascript-language-types-string-type">is not a String</a></emu-xref>, throw a <emu-val>TypeError</emu-val> exception.</li><li>If <var>precision</var> <emu-xref href="#sec-ecmascript-language-types-number-type"><a href="https://tc39.es/ecma262/#sec-ecmascript-language-types-number-type">is not a Number</a></emu-xref>, throw a <emu-val>TypeError</emu-val> exception.</li><li>If <var>precision</var> is <emu-val>NaN</emu-val><sub>๐”ฝ</sub>, <emu-val>+โˆž</emu-val><sub>๐”ฝ</sub> or <emu-val>+โˆž</emu-val><sub>๐”ฝ</sub>, throw a <emu-val>RangeError</emu-val> exception.</li><li>If <emu-xref aoid="โ„"><a href="https://tc39.es/ecma262/#โ„">โ„</a></emu-xref>(<var>precision</var>) &lt; 0, throw a <emu-val>RangeError</emu-val> exception.</li><li>If <emu-xref aoid="โ„"><a href="https://tc39.es/ecma262/#โ„">โ„</a></emu-xref>(<var>precision</var>) is not an <emu-xref href="#integer"><a href="https://tc39.es/ecma262/#integer">integer</a></emu-xref>, throw a <emu-val>RangeError</emu-val> exception.</li><li>If <emu-xref aoid="โ„"><a href="https://tc39.es/ecma262/#โ„">โ„</a></emu-xref>(<var>precision</var>) &gt; 34, throw a <emu-val>RangeError</emu-val> exception.</li><li>Let <var>decimal</var> be ?&nbsp;<emu-xref aoid="Construct"><a href="https://tc39.es/ecma262/#sec-construct">Construct</a></emu-xref>(<emu-xref href="#sec-the-decimal-constructor" id="_ref_113"><a href="#sec-the-decimal-constructor">%Decimal128%</a></emu-xref>, <var>s</var>).</li><li>Let <var>O</var> be ?&nbsp;<emu-xref aoid="OrdinaryCreateFromConstructor"><a href="https://tc39.es/ecma262/#sec-ordinarycreatefromconstructor">OrdinaryCreateFromConstructor</a></emu-xref>(NewTarget, <emu-val>"%Decimal128Amount.prototype%"</emu-val>, ยซ <var class="field">[[Decimal128AmountData]]</var>, <var class="field">[[Decimal128AmountSignificantDigits]]</var>&nbsp;ยป).</li><li>Set <var>O</var>.<var class="field">[[Decimal128AmountData]]</var> to <var>decimal</var>.<var class="field">[[Decimal128Data]]</var>.</li><li>Set <var>O</var>.<var class="field">[[Decimal128AmountSignificantDigits]]</var> to <var>precision</var>.</li><li>Return <var>O</var>.</li></ol></emu-alg>
34823482
</emu-clause>
34833483
</emu-clause>
34843484
</emu-clause>
@@ -3760,7 +3760,7 @@ <h1><span class="secnum">3</span> Properties of the Decimal128.Amount Prototype<
37603760
<h1><span class="secnum">3.1</span> Decimal128.Amount.prototype.equals ( <var>x</var> )</h1>
37613761
<p>This method returns a Boolean value indicating whether a Decimal128.Amount object is equal to another Decimal128.Amount object.</p>
37623762
<p>It performs the following steps when called:</p>
3763-
<emu-alg><ol><li>Let <var>O</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>O</var>, <var class="field">[[Decimal128AmountData]]</var>).</li><li>Perform ?&nbsp;<emu-xref aoid="RequireInternalSlot"><a href="https://tc39.es/ecma262/#sec-requireinternalslot">RequireInternalSlot</a></emu-xref>(<var>O</var>, <var class="field">[[Decimal128AmountPrecision]]</var>).</li><li>Perform ?&nbsp;<emu-xref aoid="RequireInternalSlot"><a href="https://tc39.es/ecma262/#sec-requireinternalslot">RequireInternalSlot</a></emu-xref>(<var>x</var>, <var class="field">[[Decimal128AmountData]]</var>).</li><li>Perform ?&nbsp;<emu-xref aoid="RequireInternalSlot"><a href="https://tc39.es/ecma262/#sec-requireinternalslot">RequireInternalSlot</a></emu-xref>(<var>x</var>, <var class="field">[[Decimal128AmountPrecision]]</var>).</li><li>Let <var>d1</var> be <var>O</var>.<var class="field">[[Decimal128AmountData]]</var>.</li><li>Let <var>d2</var> be <var>x</var>.<var class="field">[[Decimal128AmountData]]</var>.</li><li><emu-xref href="#assert"><a href="https://tc39.es/ecma262/#assert">Assert</a></emu-xref>: <var>d1</var> is a <emu-xref href="#dfn-decimal128-finite" id="_ref_261"><a href="#dfn-decimal128-finite">finite</a></emu-xref> <emu-xref href="#def-decimal128-value" id="_ref_262"><a href="#def-decimal128-value">Decimal128 value</a></emu-xref>.</li><li><emu-xref href="#assert"><a href="https://tc39.es/ecma262/#assert">Assert</a></emu-xref>: <var>d2</var> is a <emu-xref href="#dfn-decimal128-finite" id="_ref_263"><a href="#dfn-decimal128-finite">finite</a></emu-xref> <emu-xref href="#def-decimal128-value" id="_ref_264"><a href="#def-decimal128-value">Decimal128 value</a></emu-xref>.</li><li>If <var>d1</var> is either <emu-val>+0</emu-val><sub>๐”ป</sub> or <emu-val>-0</emu-val><sub>๐”ป</sub>, set <var>d1</var> to 0.</li><li>If <var>d2</var> is either <emu-val>+0</emu-val><sub>๐”ป</sub> or <emu-val>-0</emu-val><sub>๐”ป</sub>, set <var>d2</var> to 0.</li><li>If <var>d1</var> โ‰  <var>d2</var>, return <emu-val>false</emu-val>.</li><li>Let <var>precision1</var> be <var>O</var>.<var class="field">[[Decimal128AmountPrecision]]</var>.</li><li>Let <var>precision2</var> be <var>x</var>.<var class="field">[[Decimal128AmountPrecision]]</var>.</li><li><emu-xref href="#assert"><a href="https://tc39.es/ecma262/#assert">Assert</a></emu-xref>: <var>precision1</var> is a non-negative <emu-xref href="#integer"><a href="https://tc39.es/ecma262/#integer">integer</a></emu-xref>.</li><li><emu-xref href="#assert"><a href="https://tc39.es/ecma262/#assert">Assert</a></emu-xref>: <var>precision2</var> is a non-negative <emu-xref href="#integer"><a href="https://tc39.es/ecma262/#integer">integer</a></emu-xref>.</li><li>If <var>precision1</var> = <var>precision2</var>, return <emu-val>true</emu-val>.</li><li>Otherwise, return <emu-val>false</emu-val>.</li></ol></emu-alg>
3763+
<emu-alg><ol><li>Let <var>O</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>O</var>, <var class="field">[[Decimal128AmountData]]</var>).</li><li>Perform ?&nbsp;<emu-xref aoid="RequireInternalSlot"><a href="https://tc39.es/ecma262/#sec-requireinternalslot">RequireInternalSlot</a></emu-xref>(<var>O</var>, <var class="field">[[Decimal128AmountSignificantDigits]]</var>).</li><li>Perform ?&nbsp;<emu-xref aoid="RequireInternalSlot"><a href="https://tc39.es/ecma262/#sec-requireinternalslot">RequireInternalSlot</a></emu-xref>(<var>x</var>, <var class="field">[[Decimal128AmountData]]</var>).</li><li>Perform ?&nbsp;<emu-xref aoid="RequireInternalSlot"><a href="https://tc39.es/ecma262/#sec-requireinternalslot">RequireInternalSlot</a></emu-xref>(<var>x</var>, <var class="field">[[Decimal128AmountSignificantDigits]]</var>).</li><li>Let <var>d1</var> be <var>O</var>.<var class="field">[[Decimal128AmountData]]</var>.</li><li>Let <var>d2</var> be <var>x</var>.<var class="field">[[Decimal128AmountData]]</var>.</li><li><emu-xref href="#assert"><a href="https://tc39.es/ecma262/#assert">Assert</a></emu-xref>: <var>d1</var> is a <emu-xref href="#dfn-decimal128-finite" id="_ref_261"><a href="#dfn-decimal128-finite">finite</a></emu-xref> <emu-xref href="#def-decimal128-value" id="_ref_262"><a href="#def-decimal128-value">Decimal128 value</a></emu-xref>.</li><li><emu-xref href="#assert"><a href="https://tc39.es/ecma262/#assert">Assert</a></emu-xref>: <var>d2</var> is a <emu-xref href="#dfn-decimal128-finite" id="_ref_263"><a href="#dfn-decimal128-finite">finite</a></emu-xref> <emu-xref href="#def-decimal128-value" id="_ref_264"><a href="#def-decimal128-value">Decimal128 value</a></emu-xref>.</li><li>If <var>d1</var> is either <emu-val>+0</emu-val><sub>๐”ป</sub> or <emu-val>-0</emu-val><sub>๐”ป</sub>, set <var>d1</var> to 0.</li><li>If <var>d2</var> is either <emu-val>+0</emu-val><sub>๐”ป</sub> or <emu-val>-0</emu-val><sub>๐”ป</sub>, set <var>d2</var> to 0.</li><li>If <var>d1</var> โ‰  <var>d2</var>, return <emu-val>false</emu-val>.</li><li>Let <var>precision1</var> be <var>O</var>.<var class="field">[[Decimal128AmountSignificantDigits]]</var>.</li><li>Let <var>precision2</var> be <var>x</var>.<var class="field">[[Decimal128AmountSignificantDigits]]</var>.</li><li><emu-xref href="#assert"><a href="https://tc39.es/ecma262/#assert">Assert</a></emu-xref>: <var>precision1</var> is a non-negative <emu-xref href="#integer"><a href="https://tc39.es/ecma262/#integer">integer</a></emu-xref>.</li><li><emu-xref href="#assert"><a href="https://tc39.es/ecma262/#assert">Assert</a></emu-xref>: <var>precision2</var> is a non-negative <emu-xref href="#integer"><a href="https://tc39.es/ecma262/#integer">integer</a></emu-xref>.</li><li>If <var>precision1</var> = <var>precision2</var>, return <emu-val>true</emu-val>.</li><li>Otherwise, return <emu-val>false</emu-val>.</li></ol></emu-alg>
37643764
</emu-clause>
37653765
</emu-clause>
37663766

0 commit comments

Comments
ย (0)
โšก