source:
frontend/node_modules/core-js/internals/does-not-exceed-safe-integer.js
| Last change on this file was 9af201e, checked in by , 11 days ago | |
|---|---|
|
|
| File size: 253 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 new $TypeError('Maximum allowed index exceeded'); |
| 7 | return it; |
| 8 | }; |
Note:
See TracBrowser
for help on using the repository browser.
