asd/asd-pc/node_modules/core-js/internals/does-not-exceed-safe-integer.js
愉快的大福 eb8378e551 init
2024-11-21 11:06:22 +08:00

8 lines
235 B
JavaScript

var $TypeError = TypeError;
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
module.exports = function (it) {
if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');
return it;
};