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/2023/StringToNumber.js

    r0c6b92a r79a0317  
    33var GetIntrinsic = require('get-intrinsic');
    44
    5 var $Number = GetIntrinsic('%Number%');
    65var $RegExp = GetIntrinsic('%RegExp%');
    76var $TypeError = require('es-errors/type');
    87var $parseInteger = GetIntrinsic('%parseInt%');
    98
    10 var callBound = require('call-bind/callBound');
     9var callBound = require('call-bound');
    1110var regexTester = require('safe-regex-test');
    1211
     
    2827        }
    2928        if (isBinary(argument)) {
    30                 return $Number($parseInteger($strSlice(argument, 2), 2));
     29                return +$parseInteger($strSlice(argument, 2), 2);
    3130        }
    3231        if (isOctal(argument)) {
    33                 return $Number($parseInteger($strSlice(argument, 2), 8));
     32                return +$parseInteger($strSlice(argument, 2), 8);
    3433        }
    3534        if (hasNonWS(argument) || isInvalidHexLiteral(argument)) {
     
    4039                return StringToNumber(trimmed);
    4140        }
    42         return $Number(argument);
     41        return +argument;
    4342};
Note: See TracChangeset for help on using the changeset viewer.