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

F4 Finalna Verzija

Location:
imaps-frontend/node_modules/es-abstract/5
Files:
18 edited

Legend:

Unmodified
Added
Removed
  • imaps-frontend/node_modules/es-abstract/5/AbstractEqualityComparison.js

    r0c6b92a r79a0317  
    55var Type = require('./Type');
    66
     7var isObject = require('../helpers/isObject');
     8
    79// https://262.ecma-international.org/5.1/#sec-11.9.3
    810
    911module.exports = function AbstractEqualityComparison(x, y) {
    10         var xType = Type(x);
    11         var yType = Type(y);
    12         if (xType === yType) {
     12        if (Type(x) === Type(y)) {
    1313                return x === y; // ES6+ specified this shortcut anyways.
    1414        }
     
    1616                return true;
    1717        }
    18         if (xType === 'Number' && yType === 'String') {
     18        if (typeof x === 'number' && typeof y === 'string') {
    1919                return AbstractEqualityComparison(x, ToNumber(y));
    2020        }
    21         if (xType === 'String' && yType === 'Number') {
     21        if (typeof x === 'string' && typeof y === 'number') {
    2222                return AbstractEqualityComparison(ToNumber(x), y);
    2323        }
    24         if (xType === 'Boolean') {
     24        if (typeof x === 'boolean') {
    2525                return AbstractEqualityComparison(ToNumber(x), y);
    2626        }
    27         if (yType === 'Boolean') {
     27        if (typeof y === 'boolean') {
    2828                return AbstractEqualityComparison(x, ToNumber(y));
    2929        }
    30         if ((xType === 'String' || xType === 'Number') && yType === 'Object') {
     30        if ((typeof x === 'string' || typeof x === 'number') && isObject(y)) {
    3131                return AbstractEqualityComparison(x, ToPrimitive(y));
    3232        }
    33         if (xType === 'Object' && (yType === 'String' || yType === 'Number')) {
     33        if (isObject(x) && (typeof y === 'string' || typeof y === 'number')) {
    3434                return AbstractEqualityComparison(ToPrimitive(x), y);
    3535        }
  • imaps-frontend/node_modules/es-abstract/5/AbstractRelationalComparison.js

    r0c6b92a r79a0317  
    55var $Number = GetIntrinsic('%Number%');
    66var $TypeError = require('es-errors/type');
     7var $isNaN = require('math-intrinsics/isNaN');
     8var $isFinite = require('math-intrinsics/isFinite');
    79
    8 var $isNaN = require('../helpers/isNaN');
    9 var $isFinite = require('../helpers/isFinite');
    1010var isPrefixOf = require('../helpers/isPrefixOf');
    1111
  • imaps-frontend/node_modules/es-abstract/5/Canonicalize.js

    r0c6b92a r79a0317  
    33var $TypeError = require('es-errors/type');
    44
    5 var callBound = require('call-bind/callBound');
     5var callBound = require('call-bound');
    66
    77var $charCodeAt = callBound('String.prototype.charCodeAt');
  • imaps-frontend/node_modules/es-abstract/5/MakeDate.js

    r0c6b92a r79a0317  
    11'use strict';
    22
    3 var $isFinite = require('../helpers/isFinite');
     3var $isFinite = require('math-intrinsics/isFinite');
     4
    45var msPerDay = require('../helpers/timeConstants').msPerDay;
    56
  • imaps-frontend/node_modules/es-abstract/5/MakeDay.js

    r0c6b92a r79a0317  
    55var $DateUTC = GetIntrinsic('%Date.UTC%');
    66
    7 var $isFinite = require('../helpers/isFinite');
     7var $isFinite = require('math-intrinsics/isFinite');
    88
    99var DateFromTime = require('./DateFromTime');
  • imaps-frontend/node_modules/es-abstract/5/MakeTime.js

    r0c6b92a r79a0317  
    11'use strict';
    22
    3 var $isFinite = require('../helpers/isFinite');
     3var $isFinite = require('math-intrinsics/isFinite');
     4
    45var timeConstants = require('../helpers/timeConstants');
    56var msPerSecond = timeConstants.msPerSecond;
  • imaps-frontend/node_modules/es-abstract/5/MonthFromTime.js

    r0c6b92a r79a0317  
    11'use strict';
     2
     3var $RangeError = require('es-errors/range');
    24
    35var DayWithinYear = require('./DayWithinYear');
     
    4547                return 11;
    4648        }
     49
     50        throw new $RangeError('Assertion failed: `day` is out of range');
    4751};
  • imaps-frontend/node_modules/es-abstract/5/SameValue.js

    r0c6b92a r79a0317  
    11'use strict';
    22
    3 var $isNaN = require('../helpers/isNaN');
     3var $isNaN = require('math-intrinsics/isNaN');
    44
    55// http://262.ecma-international.org/5.1/#sec-9.12
  • imaps-frontend/node_modules/es-abstract/5/StrictEqualityComparison.js

    r0c6b92a r79a0317  
    66
    77module.exports = function StrictEqualityComparison(x, y) {
    8         var xType = Type(x);
    9         var yType = Type(y);
    10         if (xType !== yType) {
     8        if (Type(x) !== Type(y)) {
    119                return false;
    1210        }
    13         if (xType === 'Undefined' || xType === 'Null') {
     11        if (typeof x === 'undefined' || x === null) {
    1412                return true;
    1513        }
  • imaps-frontend/node_modules/es-abstract/5/TimeClip.js

    r0c6b92a r79a0317  
    44
    55var $Date = GetIntrinsic('%Date%');
    6 var $Number = GetIntrinsic('%Number%');
    76
    8 var $isFinite = require('../helpers/isFinite');
     7var $isFinite = require('math-intrinsics/isFinite');
     8var abs = require('math-intrinsics/abs');
    99
    10 var abs = require('./abs');
    1110var ToNumber = require('./ToNumber');
    1211
     
    1716                return NaN;
    1817        }
    19         return $Number(new $Date(ToNumber(time)));
     18        return +new $Date(ToNumber(time));
    2019};
    2120
  • imaps-frontend/node_modules/es-abstract/5/ToInteger.js

    r0c6b92a r79a0317  
    11'use strict';
    22
    3 var abs = require('./abs');
    4 var floor = require('./floor');
    53var ToNumber = require('./ToNumber');
    64
    7 var $isNaN = require('../helpers/isNaN');
    8 var $isFinite = require('../helpers/isFinite');
    9 var $sign = require('../helpers/sign');
     5var abs = require('math-intrinsics/abs');
     6var floor = require('math-intrinsics/floor');
     7var $isNaN = require('math-intrinsics/isNaN');
     8var $isFinite = require('math-intrinsics/isFinite');
     9var $sign = require('math-intrinsics/sign');
    1010
    1111// http://262.ecma-international.org/5.1/#sec-9.4
  • imaps-frontend/node_modules/es-abstract/5/ToNumber.js

    r0c6b92a r79a0317  
    33var ToPrimitive = require('./ToPrimitive');
    44
    5 var callBound = require('call-bind/callBound');
     5var callBound = require('call-bound');
    66
    77var $replace = callBound('String.prototype.replace');
     
    1111var isNonDecimal = safeRegexTester(/^0[ob]|^[+-]0x/);
    1212
     13var $Number = Number;
     14
    1315// http://262.ecma-international.org/5.1/#sec-9.3
    1416
    1517module.exports = function ToNumber(value) {
    16         var prim = ToPrimitive(value, Number);
     18        var prim = ToPrimitive(value, $Number);
    1719        if (typeof prim !== 'string') {
    18                 return +prim; // eslint-disable-line no-implicit-coercion
     20                return $Number(prim);
    1921        }
    2022
     
    2931        }
    3032
    31         return +trimmed; // eslint-disable-line no-implicit-coercion
     33        return +trimmed;
    3234};
  • imaps-frontend/node_modules/es-abstract/5/ToPropertyDescriptor.js

    r0c6b92a r79a0317  
    55var $TypeError = require('es-errors/type');
    66
    7 var Type = require('./Type');
     7var IsCallable = require('./IsCallable');
    88var ToBoolean = require('./ToBoolean');
    9 var IsCallable = require('./IsCallable');
     9
     10var isObject = require('../helpers/isObject');
    1011
    1112// https://262.ecma-international.org/5.1/#sec-8.10.5
    1213
    1314module.exports = function ToPropertyDescriptor(Obj) {
    14         if (Type(Obj) !== 'Object') {
     15        if (!isObject(Obj)) {
    1516                throw new $TypeError('ToPropertyDescriptor requires an object');
    1617        }
  • imaps-frontend/node_modules/es-abstract/5/ToUint16.js

    r0c6b92a r79a0317  
    11'use strict';
    22
    3 var abs = require('./abs');
    4 var floor = require('./floor');
    53var modulo = require('./modulo');
    64var ToNumber = require('./ToNumber');
    75
    8 var $isNaN = require('../helpers/isNaN');
    9 var $isFinite = require('../helpers/isFinite');
    10 var $sign = require('../helpers/sign');
     6var abs = require('math-intrinsics/abs');
     7var floor = require('math-intrinsics/floor');
     8var $isNaN = require('math-intrinsics/isNaN');
     9var $isFinite = require('math-intrinsics/isFinite');
     10var $sign = require('math-intrinsics/sign');
    1111
    1212// http://262.ecma-international.org/5.1/#sec-9.7
  • imaps-frontend/node_modules/es-abstract/5/Type.js

    r0c6b92a r79a0317  
    11'use strict';
     2
     3var isObject = require('../helpers/isObject');
    24
    35// https://262.ecma-international.org/5.1/#sec-8
     
    1012                return 'Undefined';
    1113        }
    12         if (typeof x === 'function' || typeof x === 'object') {
     14        if (isObject(x)) {
    1315                return 'Object';
    1416        }
  • imaps-frontend/node_modules/es-abstract/5/YearFromTime.js

    r0c6b92a r79a0317  
    55var $Date = GetIntrinsic('%Date%');
    66
    7 var callBound = require('call-bind/callBound');
     7var callBound = require('call-bound');
    88
    99var $getUTCFullYear = callBound('Date.prototype.getUTCFullYear');
  • imaps-frontend/node_modules/es-abstract/5/abs.js

    r0c6b92a r79a0317  
    11'use strict';
    22
    3 var GetIntrinsic = require('get-intrinsic');
    4 
    5 var $abs = GetIntrinsic('%Math.abs%');
     3var $abs = require('math-intrinsics/abs');
    64
    75// http://262.ecma-international.org/5.1/#sec-5.2
  • imaps-frontend/node_modules/es-abstract/5/floor.js

    r0c6b92a r79a0317  
    22
    33// var modulo = require('./modulo');
    4 var $floor = Math.floor;
     4var $floor = require('math-intrinsics/floor');
    55
    66// http://262.ecma-international.org/5.1/#sec-5.2
Note: See TracChangeset for help on using the changeset viewer.