Skip to content

Commit 0409774

Browse files
anbaptomato
authored andcommitted
Editorial: Revert normative changes from #2243
Ensure inputs like `-0.5` are still throwing a RangeError instead of being treated as `0`.
1 parent c775ebe commit 0409774

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/abstractops.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -282,9 +282,9 @@ <h1>ToSecondsStringPrecision ( _normalizedOptions_ )</h1>
282282
[[Unit]]: *"nanosecond"*,
283283
[[Increment]]: 1
284284
}.
285-
1. If _fractionalDigitsVal_ is *NaN*, throw a *RangeError* exception.
286-
1. Set _fractionalDigitCount_ to ? ToIntegerThrowOnInfinity(_fractionalDigitsVal_).
287-
1. If _fractionalDigitCount_ &lt; 0 or _fractionalDigitCount_ &gt; 9, throw a *RangeError* exception.
285+
1. If _fractionalDigitsVal_ is *NaN*, *+&infin;*<sub>𝔽</sub>, or *-&infin;*<sub>𝔽</sub>, throw a *RangeError* exception.
286+
1. If ℝ(_fractionalDigitsVal_) &lt; 0 or ℝ(_fractionalDigitsVal_) > 9, throw a *RangeError* exception.
287+
1. Let _fractionalDigitCount_ be floor(ℝ(_fractionalDigitsVal_)).
288288
1. If _fractionalDigitCount_ is 0, then
289289
1. Return the Record {
290290
[[Precision]]: 0,

0 commit comments

Comments
 (0)