Skip to content

Commit 6636d1b

Browse files
committed
make Math. sumPrecise count validation slightly more correct
1 parent 65d79c7 commit 6636d1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core-js/modules/es.math.sum-precise.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ $({ target: 'Math', stat: true }, {
4141
var state = MINUS_ZERO;
4242

4343
iterate(items, function (n) {
44-
if (++count >= MAX_SAFE_INTEGER) throw new $RangeError('Maximum allowed index exceeded');
44+
if (++count > MAX_SAFE_INTEGER) throw new $RangeError('Maximum allowed index exceeded');
4545
if (typeof n != 'number') throw new $TypeError('Value is not a number');
4646
if (state !== NOT_A_NUMBER) {
4747
// eslint-disable-next-line no-self-compare -- NaN check

0 commit comments

Comments
 (0)