Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/es-abstract/2024/ToIndex.js
r0c6b92a r79a0317 5 5 var ToIntegerOrInfinity = require('./ToIntegerOrInfinity'); 6 6 7 var maxSafeInteger = require('../helpers/maxSafeInteger');7 var MAX_SAFE_INTEGER = require('math-intrinsics/constants/maxSafeInteger'); 8 8 9 9 // https://262.ecma-international.org/15.0/#sec-toindex … … 14 14 } 15 15 var integer = ToIntegerOrInfinity(value); 16 if (integer < 0 || integer >= maxSafeInteger) {16 if (integer < 0 || integer >= MAX_SAFE_INTEGER) { 17 17 throw new $RangeError('index must be >= 0 and < 2 ** 53 - 1'); 18 18 }
Note:
See TracChangeset
for help on using the changeset viewer.