source: node_modules/core-js-pure/internals/does-not-exceed-safe-integer.js

main
Last change on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 249 bytes
Line 
1'use strict';
2var $TypeError = TypeError;
3var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
4
5module.exports = function (it) {
6 if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');
7 return it;
8};
Note: See TracBrowser for help on using the repository browser.