Ignore:
Timestamp:
01/21/25 03:08:24 (3 days ago)
Author:
stefan toskovski <stefantoska84@…>
Branches:
main
Parents:
0c6b92a
Message:

F4 Finalna Verzija

File:
1 edited

Legend:

Unmodified
Added
Removed
  • imaps-frontend/node_modules/es-abstract/2024/ToIndex.js

    r0c6b92a r79a0317  
    55var ToIntegerOrInfinity = require('./ToIntegerOrInfinity');
    66
    7 var maxSafeInteger = require('../helpers/maxSafeInteger');
     7var MAX_SAFE_INTEGER = require('math-intrinsics/constants/maxSafeInteger');
    88
    99// https://262.ecma-international.org/15.0/#sec-toindex
     
    1414        }
    1515        var integer = ToIntegerOrInfinity(value);
    16         if (integer < 0 || integer >= maxSafeInteger) {
     16        if (integer < 0 || integer >= MAX_SAFE_INTEGER) {
    1717                throw new $RangeError('index must be >= 0 and < 2 ** 53 - 1');
    1818        }
Note: See TracChangeset for help on using the changeset viewer.