You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<li>is the initial value of the the <emu-val>"Amount"</emu-val> property of the Decimal128 object.</li>
3476
3476
<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>
<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>) < 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>) > 34, throw a <emu-val>RangeError</emu-val> exception.</li><li>Let <var>decimal</var> be ? <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 ? <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> ยป).</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>) < 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>) > 34, throw a <emu-val>RangeError</emu-val> exception.</li><li>Let <var>decimal</var> be ? <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 ? <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> ยป).</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>
3482
3482
</emu-clause>
3483
3483
</emu-clause>
3484
3484
</emu-clause>
@@ -3760,7 +3760,7 @@ <h1><span class="secnum">3</span> Properties of the Decimal128.Amount Prototype<
<p>This method returns a Boolean value indicating whether a Decimal128.Amount object is equal to another Decimal128.Amount object.</p>
3762
3762
<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 ? <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 ? <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 ? <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 ? <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 ? <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 ? <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 ? <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 ? <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>
0 commit comments