first
This commit is contained in:
8
node_modules/core-js/internals/does-not-exceed-safe-integer.js
generated
vendored
Normal file
8
node_modules/core-js/internals/does-not-exceed-safe-integer.js
generated
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
'use strict';
|
||||
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;
|
||||
};
|
Reference in New Issue
Block a user