source:
imaps-frontend/node_modules/core-js/internals/does-not-exceed-safe-integer.js
Last change on this file was 79a0317, checked in by , 4 days ago | |
---|---|
|
|
File size: 249 bytes |
Line | |
---|---|
1 | 'use strict'; |
2 | var $TypeError = TypeError; |
3 | var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991 |
4 | |
5 | module.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.