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
ToIntegerIfIntegral no longer needs to be defined by Temporal, as it's now
part of ECMA-402. However, when Temporal becomes part of ECMA-262, we do
need to move ToIntegerIfIntegral into ECMA-262. Put it in a <del> block in
intl.html. We can keep the new definition in its current place in the spec
while adjusting its ID.
<dd>It returns *true* if its arguments form valid input from which to construct a `Temporal.Duration`, and *false* otherwise.</dd>
1169
+
<dd>It returns *true* if its arguments form valid input from which to construct a <del>Duration Record</del><ins>Temporal.Duration</ins>, and *false* otherwise.</dd>
1170
1170
</dl>
1171
1171
<emu-alg>
1172
1172
1. Let _sign_ be 0.
@@ -1181,9 +1181,9 @@ <h1>
1181
1181
1. If abs(_years_) ≥ 2<sup>32</sup>, return *false*.
1182
1182
1. If abs(_months_) ≥ 2<sup>32</sup>, return *false*.
1183
1183
1. If abs(_weeks_) ≥ 2<sup>32</sup>, return *false*.
1. NOTE: The above step cannot be implemented directly using floating-point arithmetic. Multiplying by 10<sup>-3</sup>, 10<sup>-6</sup>, and 10<sup>-9</sup> respectively may be imprecise when _milliseconds_, _microseconds_, or _nanoseconds_ is an unsafe integer. This multiplication can be implemented in C++ with an implementation of `std::remquo()` with sufficient bits in the quotient. String manipulation will also give an exact result, since the multiplication is by a power of 10.
1186
-
1. If abs(_totalFractionalSeconds_) ≥ 2<sup>53</sup>, return *false*.
1186
+
1. If abs(_normalizedSeconds_) ≥ 2<sup>53</sup>, return *false*.
1. NOTE: The above step cannot be implemented directly using floating-point arithmetic. Multiplying by 10<sup>-3</sup>, 10<sup>-6</sup>, and 10<sup>-9</sup> respectively may be imprecise when _milliseconds_, _microseconds_, or _nanoseconds_ is an unsafe integer. This multiplication can be implemented in C++ with an implementation of `std::remquo()` with sufficient bits in the quotient. String manipulation will also give an exact result, since the multiplication is by a power of 10.
1370
+
1. If abs(_normalizedSeconds_) ≥ 2<sup>53</sup>, return *false*.
0 commit comments