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/2016
Files:
85 edited

Legend:

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

    r0c6b92a r79a0317  
    55var Type = require('./Type');
    66
     7var isObject = require('../helpers/isObject');
     8
    79// https://262.ecma-international.org/6.0/#sec-abstract-equality-comparison
    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' || xType === 'Symbol') && yType === 'Object') {
     30        if ((typeof x === 'string' || typeof x === 'number' || typeof x === 'symbol') && isObject(y)) {
    3131                return AbstractEqualityComparison(x, ToPrimitive(y));
    3232        }
    33         if (xType === 'Object' && (yType === 'String' || yType === 'Number' || yType === 'Symbol')) {
     33        if (isObject(x) && (typeof y === 'string' || typeof y === 'number' || typeof y === 'symbol')) {
    3434                return AbstractEqualityComparison(ToPrimitive(x), y);
    3535        }
  • imaps-frontend/node_modules/es-abstract/2016/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/2016/AdvanceStringIndex.js

    r0c6b92a r79a0317  
    11'use strict';
    22
    3 var isInteger = require('../helpers/isInteger');
     3var isInteger = require('math-intrinsics/isInteger');
     4var MAX_SAFE_INTEGER = require('math-intrinsics/constants/maxSafeInteger');
     5
    46var isLeadingSurrogate = require('../helpers/isLeadingSurrogate');
    57var isTrailingSurrogate = require('../helpers/isTrailingSurrogate');
    6 var MAX_SAFE_INTEGER = require('../helpers/maxSafeInteger');
    78
    89var $TypeError = require('es-errors/type');
    910
    10 var $charCodeAt = require('call-bind/callBound')('String.prototype.charCodeAt');
     11var $charCodeAt = require('call-bound')('String.prototype.charCodeAt');
    1112
    1213// https://262.ecma-international.org/6.0/#sec-advancestringindex
  • imaps-frontend/node_modules/es-abstract/2016/ArrayCreate.js

    r0c6b92a r79a0317  
    77var $SyntaxError = require('es-errors/syntax');
    88var $TypeError = require('es-errors/type');
    9 
    10 var isInteger = require('../helpers/isInteger');
    11 
    12 var hasProto = require('has-proto')();
    13 
    14 var MAX_ARRAY_LENGTH = Math.pow(2, 32) - 1;
    15 
    16 var $setProto = GetIntrinsic('%Object.setPrototypeOf%', true) || (
    17         hasProto
    18                 ? function (O, proto) {
    19                         O.__proto__ = proto; // eslint-disable-line no-proto, no-param-reassign
    20                         return O;
    21                 }
    22                 : null
    23 );
     9var isInteger = require('math-intrinsics/isInteger');
     10var MAX_ARRAY_LENGTH = require('math-intrinsics/constants/maxArrayLength');
     11var $setProto = require('set-proto');
    2412
    2513// https://262.ecma-international.org/6.0/#sec-arraycreate
  • imaps-frontend/node_modules/es-abstract/2016/ArraySpeciesCreate.js

    r0c6b92a r79a0317  
    66var $species = GetIntrinsic('%Symbol.species%', true);
    77var $TypeError = require('es-errors/type');
     8var isInteger = require('math-intrinsics/isInteger');
    89
    910var Get = require('./Get');
    1011var IsArray = require('./IsArray');
    1112var IsConstructor = require('./IsConstructor');
    12 var Type = require('./Type');
    1313
    14 var isInteger = require('../helpers/isInteger');
     14var isObject = require('../helpers/isObject');
    1515
    1616// https://262.ecma-international.org/6.0/#sec-arrayspeciescreate
     
    3030                //      Object.getPrototypeOf(Object.getPrototypeOf(Object.getPrototypeOf(Array))) === null ?
    3131                // }
    32                 if ($species && Type(C) === 'Object') {
     32                if ($species && isObject(C)) {
    3333                        C = Get(C, $species);
    3434                        if (C === null) {
  • imaps-frontend/node_modules/es-abstract/2016/Call.js

    r0c6b92a r79a0317  
    22
    33var GetIntrinsic = require('get-intrinsic');
    4 var callBound = require('call-bind/callBound');
     4var callBound = require('call-bound');
    55
    66var $TypeError = require('es-errors/type');
  • imaps-frontend/node_modules/es-abstract/2016/Canonicalize.js

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

    r0c6b92a r79a0317  
    22
    33var GetIntrinsic = require('get-intrinsic');
    4 var callBound = require('call-bind/callBound');
     4var callBound = require('call-bound');
    55
    66var $fromCharCode = GetIntrinsic('%String.fromCharCode%');
  • imaps-frontend/node_modules/es-abstract/2016/CreateDataProperty.js

    r0c6b92a r79a0317  
    33var $TypeError = require('es-errors/type');
    44
    5 var IsPropertyKey = require('./IsPropertyKey');
     5var isPropertyKey = require('../helpers/isPropertyKey');
    66var OrdinaryDefineOwnProperty = require('./OrdinaryDefineOwnProperty');
    7 var Type = require('./Type');
     7
     8var isObject = require('../helpers/isObject');
    89
    910// https://262.ecma-international.org/6.0/#sec-createdataproperty
    1011
    1112module.exports = function CreateDataProperty(O, P, V) {
    12         if (Type(O) !== 'Object') {
     13        if (!isObject(O)) {
    1314                throw new $TypeError('Assertion failed: Type(O) is not Object');
    1415        }
    15         if (!IsPropertyKey(P)) {
    16                 throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true');
     16        if (!isPropertyKey(P)) {
     17                throw new $TypeError('Assertion failed: P is not a Property Key');
    1718        }
    1819        var newDesc = {
  • imaps-frontend/node_modules/es-abstract/2016/CreateDataPropertyOrThrow.js

    r0c6b92a r79a0317  
    44
    55var CreateDataProperty = require('./CreateDataProperty');
    6 var IsPropertyKey = require('./IsPropertyKey');
    7 var Type = require('./Type');
     6
     7var isObject = require('../helpers/isObject');
     8var isPropertyKey = require('../helpers/isPropertyKey');
    89
    910// // https://262.ecma-international.org/6.0/#sec-createdatapropertyorthrow
    1011
    1112module.exports = function CreateDataPropertyOrThrow(O, P, V) {
    12         if (Type(O) !== 'Object') {
     13        if (!isObject(O)) {
    1314                throw new $TypeError('Assertion failed: Type(O) is not Object');
    1415        }
    15         if (!IsPropertyKey(P)) {
    16                 throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true');
     16        if (!isPropertyKey(P)) {
     17                throw new $TypeError('Assertion failed: P is not a Property Key');
    1718        }
    1819        var success = CreateDataProperty(O, P, V);
  • imaps-frontend/node_modules/es-abstract/2016/CreateHTML.js

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

    r0c6b92a r79a0317  
    11'use strict';
    22
    3 var callBound = require('call-bind/callBound');
     3var callBound = require('call-bound');
    44
    55var $TypeError = require('es-errors/type');
     
    1313var Type = require('./Type');
    1414
     15var isObject = require('../helpers/isObject');
     16
    1517var defaultElementTypes = ['Undefined', 'Null', 'Boolean', 'String', 'Symbol', 'Number', 'Object'];
    1618
     
    2123                : defaultElementTypes;
    2224
    23         if (Type(obj) !== 'Object') {
     25        if (!isObject(obj)) {
    2426                throw new $TypeError('Assertion failed: `obj` must be an Object');
    2527        }
  • imaps-frontend/node_modules/es-abstract/2016/CreateMethodProperty.js

    r0c6b92a r79a0317  
    77var FromPropertyDescriptor = require('./FromPropertyDescriptor');
    88var IsDataDescriptor = require('./IsDataDescriptor');
    9 var IsPropertyKey = require('./IsPropertyKey');
     9var isPropertyKey = require('../helpers/isPropertyKey');
    1010var SameValue = require('./SameValue');
    11 var Type = require('./Type');
     11
     12var isObject = require('../helpers/isObject');
    1213
    1314// https://262.ecma-international.org/6.0/#sec-createmethodproperty
    1415
    1516module.exports = function CreateMethodProperty(O, P, V) {
    16         if (Type(O) !== 'Object') {
     17        if (!isObject(O)) {
    1718                throw new $TypeError('Assertion failed: Type(O) is not Object');
    1819        }
    1920
    20         if (!IsPropertyKey(P)) {
    21                 throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true');
     21        if (!isPropertyKey(P)) {
     22                throw new $TypeError('Assertion failed: P is not a Property Key');
    2223        }
    2324
  • imaps-frontend/node_modules/es-abstract/2016/DefinePropertyOrThrow.js

    r0c6b92a r79a0317  
    88var FromPropertyDescriptor = require('./FromPropertyDescriptor');
    99var IsDataDescriptor = require('./IsDataDescriptor');
    10 var IsPropertyKey = require('./IsPropertyKey');
     10var isPropertyKey = require('../helpers/isPropertyKey');
    1111var SameValue = require('./SameValue');
    1212var ToPropertyDescriptor = require('./ToPropertyDescriptor');
    13 var Type = require('./Type');
     13
     14var isObject = require('../helpers/isObject');
    1415
    1516// https://262.ecma-international.org/6.0/#sec-definepropertyorthrow
    1617
    1718module.exports = function DefinePropertyOrThrow(O, P, desc) {
    18         if (Type(O) !== 'Object') {
     19        if (!isObject(O)) {
    1920                throw new $TypeError('Assertion failed: Type(O) is not Object');
    2021        }
    2122
    22         if (!IsPropertyKey(P)) {
    23                 throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true');
     23        if (!isPropertyKey(P)) {
     24                throw new $TypeError('Assertion failed: P is not a Property Key');
    2425        }
    2526
  • imaps-frontend/node_modules/es-abstract/2016/DeletePropertyOrThrow.js

    r0c6b92a r79a0317  
    33var $TypeError = require('es-errors/type');
    44
    5 var IsPropertyKey = require('./IsPropertyKey');
    6 var Type = require('./Type');
     5var isObject = require('../helpers/isObject');
     6var isPropertyKey = require('../helpers/isPropertyKey');
    77
    88// https://262.ecma-international.org/6.0/#sec-deletepropertyorthrow
    99
    1010module.exports = function DeletePropertyOrThrow(O, P) {
    11         if (Type(O) !== 'Object') {
     11        if (!isObject(O)) {
    1212                throw new $TypeError('Assertion failed: Type(O) is not Object');
    1313        }
    1414
    15         if (!IsPropertyKey(P)) {
    16                 throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true');
     15        if (!isPropertyKey(P)) {
     16                throw new $TypeError('Assertion failed: P is not a Property Key');
    1717        }
    1818
  • imaps-frontend/node_modules/es-abstract/2016/EnumerableOwnNames.js

    r0c6b92a r79a0317  
    55var keys = require('object-keys');
    66
    7 var Type = require('./Type');
     7var isObject = require('../helpers/isObject');
    88
    99// https://262.ecma-international.org/6.0/#sec-enumerableownnames
    1010
    1111module.exports = function EnumerableOwnNames(O) {
    12         if (Type(O) !== 'Object') {
     12        if (!isObject(O)) {
    1313                throw new $TypeError('Assertion failed: Type(O) is not Object');
    1414        }
  • imaps-frontend/node_modules/es-abstract/2016/Get.js

    r0c6b92a r79a0317  
    55var inspect = require('object-inspect');
    66
    7 var IsPropertyKey = require('./IsPropertyKey');
    8 var Type = require('./Type');
     7var isObject = require('../helpers/isObject');
     8var isPropertyKey = require('../helpers/isPropertyKey');
    99
    1010// https://262.ecma-international.org/6.0/#sec-get-o-p
     
    1212module.exports = function Get(O, P) {
    1313        // 7.3.1.1
    14         if (Type(O) !== 'Object') {
     14        if (!isObject(O)) {
    1515                throw new $TypeError('Assertion failed: Type(O) is not Object');
    1616        }
    1717        // 7.3.1.2
    18         if (!IsPropertyKey(P)) {
    19                 throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true, got ' + inspect(P));
     18        if (!isPropertyKey(P)) {
     19                throw new $TypeError('Assertion failed: P is not a Property Key, got ' + inspect(P));
    2020        }
    2121        // 7.3.1.3
  • imaps-frontend/node_modules/es-abstract/2016/GetIterator.js

    r0c6b92a r79a0317  
    88var GetMethod = require('./GetMethod');
    99var IsArray = require('./IsArray');
    10 var Type = require('./Type');
     10
     11var isObject = require('../helpers/isObject');
     12
     13var ES = {
     14        AdvanceStringIndex: AdvanceStringIndex,
     15        GetMethod: GetMethod,
     16        IsArray: IsArray
     17};
    1118
    1219// https://262.ecma-international.org/6.0/#sec-getiterator
     
    1522        var actualMethod = method;
    1623        if (arguments.length < 2) {
    17                 actualMethod = getIteratorMethod(
    18                         {
    19                                 AdvanceStringIndex: AdvanceStringIndex,
    20                                 GetMethod: GetMethod,
    21                                 IsArray: IsArray
    22                         },
    23                         obj
    24                 );
     24                actualMethod = getIteratorMethod(ES, obj);
    2525        }
    2626        var iterator = Call(actualMethod, obj);
    27         if (Type(iterator) !== 'Object') {
     27        if (!isObject(iterator)) {
    2828                throw new $TypeError('iterator must return an object');
    2929        }
  • imaps-frontend/node_modules/es-abstract/2016/GetMethod.js

    r0c6b92a r79a0317  
    55var GetV = require('./GetV');
    66var IsCallable = require('./IsCallable');
    7 var IsPropertyKey = require('./IsPropertyKey');
     7var isPropertyKey = require('../helpers/isPropertyKey');
    88
    99var inspect = require('object-inspect');
     
    1313module.exports = function GetMethod(O, P) {
    1414        // 7.3.9.1
    15         if (!IsPropertyKey(P)) {
    16                 throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true');
     15        if (!isPropertyKey(P)) {
     16                throw new $TypeError('Assertion failed: P is not a Property Key');
    1717        }
    1818
  • imaps-frontend/node_modules/es-abstract/2016/GetOwnPropertyKeys.js

    r0c6b92a r79a0317  
    1111var keys = require('object-keys');
    1212
    13 var esType = require('./Type');
     13var isObject = require('../helpers/isObject');
    1414
    1515// https://262.ecma-international.org/6.0/#sec-getownpropertykeys
    1616
    1717module.exports = function GetOwnPropertyKeys(O, Type) {
    18         if (esType(O) !== 'Object') {
     18        if (!isObject(O)) {
    1919                throw new $TypeError('Assertion failed: Type(O) is not Object');
    2020        }
  • imaps-frontend/node_modules/es-abstract/2016/GetPrototypeFromConstructor.js

    r0c6b92a r79a0317  
    99var Get = require('./Get');
    1010var IsConstructor = require('./IsConstructor');
    11 var Type = require('./Type');
     11
     12var isObject = require('../helpers/isObject');
    1213
    1314// https://262.ecma-international.org/6.0/#sec-getprototypefromconstructor
     
    1516module.exports = function GetPrototypeFromConstructor(constructor, intrinsicDefaultProto) {
    1617        var intrinsic = GetIntrinsic(intrinsicDefaultProto); // throws if not a valid intrinsic
    17         if (Type(intrinsic) !== 'Object') {
     18        if (!isObject(intrinsic)) {
    1819                throw new $TypeError('intrinsicDefaultProto must be an object');
    1920        }
     
    2223        }
    2324        var proto = Get(constructor, 'prototype');
    24         if (Type(proto) !== 'Object') {
     25        if (!isObject(proto)) {
    2526                if (!(constructor instanceof $Function)) {
    2627                        // ignore other realms, for now
  • imaps-frontend/node_modules/es-abstract/2016/GetSubstitution.js

    r0c6b92a r79a0317  
    88
    99var inspect = require('object-inspect');
    10 
     10var isInteger = require('math-intrinsics/isInteger');
    1111var regexTester = require('safe-regex-test');
    12 var callBound = require('call-bind/callBound');
     12var callBound = require('call-bound');
    1313var every = require('../helpers/every');
    1414
     
    2020var IsArray = require('./IsArray');
    2121
    22 var isInteger = require('../helpers/isInteger');
    2322var isStringOrUndefined = require('../helpers/isStringOrUndefined');
    2423
  • imaps-frontend/node_modules/es-abstract/2016/GetV.js

    r0c6b92a r79a0317  
    55var inspect = require('object-inspect');
    66
    7 var IsPropertyKey = require('./IsPropertyKey');
     7var isPropertyKey = require('../helpers/isPropertyKey');
    88// var ToObject = require('./ToObject');
    99
     
    1212module.exports = function GetV(V, P) {
    1313        // 7.3.2.1
    14         if (!IsPropertyKey(P)) {
    15                 throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true, got ' + inspect(P));
     14        if (!isPropertyKey(P)) {
     15                throw new $TypeError('Assertion failed: P is not a Property Key, got ' + inspect(P));
    1616        }
    1717
  • imaps-frontend/node_modules/es-abstract/2016/GetValueFromBuffer.js

    r0c6b92a r79a0317  
    66var $Uint8Array = GetIntrinsic('%Uint8Array%', true);
    77
    8 var callBound = require('call-bind/callBound');
     8var isInteger = require('math-intrinsics/isInteger');
     9var callBound = require('call-bound');
    910
    1011var $charAt = callBound('String.prototype.charAt');
     
    1617var bytesAsInteger = require('../helpers/bytesAsInteger');
    1718var defaultEndianness = require('../helpers/defaultEndianness');
    18 var isInteger = require('../helpers/isInteger');
    1919
    2020var IsDetachedBuffer = require('./IsDetachedBuffer');
     
    7676
    7777        if (type === 'Float32') { // step 3
    78                 return bytesAsFloat32(bytes, true);
     78                return bytesAsFloat32(bytes);
    7979        }
    8080
    8181        if (type === 'Float64') { // step 4
    82                 return bytesAsFloat64(bytes, true);
     82                return bytesAsFloat64(bytes);
    8383        }
    8484
  • imaps-frontend/node_modules/es-abstract/2016/HasOwnProperty.js

    r0c6b92a r79a0317  
    55var hasOwn = require('hasown');
    66
    7 var IsPropertyKey = require('./IsPropertyKey');
    8 var Type = require('./Type');
     7var isObject = require('../helpers/isObject');
     8var isPropertyKey = require('../helpers/isPropertyKey');
    99
    1010// https://262.ecma-international.org/6.0/#sec-hasownproperty
    1111
    1212module.exports = function HasOwnProperty(O, P) {
    13         if (Type(O) !== 'Object') {
     13        if (!isObject(O)) {
    1414                throw new $TypeError('Assertion failed: `O` must be an Object');
    1515        }
    16         if (!IsPropertyKey(P)) {
     16        if (!isPropertyKey(P)) {
    1717                throw new $TypeError('Assertion failed: `P` must be a Property Key');
    1818        }
  • imaps-frontend/node_modules/es-abstract/2016/HasProperty.js

    r0c6b92a r79a0317  
    33var $TypeError = require('es-errors/type');
    44
    5 var IsPropertyKey = require('./IsPropertyKey');
    6 var Type = require('./Type');
     5var isObject = require('../helpers/isObject');
     6var isPropertyKey = require('../helpers/isPropertyKey');
    77
    88// https://262.ecma-international.org/6.0/#sec-hasproperty
    99
    1010module.exports = function HasProperty(O, P) {
    11         if (Type(O) !== 'Object') {
     11        if (!isObject(O)) {
    1212                throw new $TypeError('Assertion failed: `O` must be an Object');
    1313        }
    14         if (!IsPropertyKey(P)) {
     14        if (!isPropertyKey(P)) {
    1515                throw new $TypeError('Assertion failed: `P` must be a Property Key');
    1616        }
  • imaps-frontend/node_modules/es-abstract/2016/InstanceofOperator.js

    r0c6b92a r79a0317  
    55var $TypeError = require('es-errors/type');
    66
    7 var $hasInstance = GetIntrinsic('Symbol.hasInstance', true);
     7var $hasInstance = GetIntrinsic('%Symbol.hasInstance%', true);
    88
    99var Call = require('./Call');
     
    1212var OrdinaryHasInstance = require('./OrdinaryHasInstance');
    1313var ToBoolean = require('./ToBoolean');
    14 var Type = require('./Type');
     14
     15var isObject = require('../helpers/isObject');
    1516
    1617// https://262.ecma-international.org/6.0/#sec-instanceofoperator
    1718
    1819module.exports = function InstanceofOperator(O, C) {
    19         if (Type(O) !== 'Object') {
     20        if (!isObject(O)) {
    2021                throw new $TypeError('Assertion failed: Type(O) is not Object');
    2122        }
  • imaps-frontend/node_modules/es-abstract/2016/IntegerIndexedElementGet.js

    r0c6b92a r79a0317  
    33var $SyntaxError = require('es-errors/syntax');
    44var $TypeError = require('es-errors/type');
     5var isNegativeZero = require('math-intrinsics/isNegativeZero');
    56
    67var GetValueFromBuffer = require('./GetValueFromBuffer');
    78var IsDetachedBuffer = require('./IsDetachedBuffer');
    89var IsInteger = require('./IsInteger');
    9 
    10 var isNegativeZero = require('../helpers/isNegativeZero');
    1110
    1211var typedArrayLength = require('typed-array-length');
  • imaps-frontend/node_modules/es-abstract/2016/IntegerIndexedElementSet.js

    r0c6b92a r79a0317  
    11'use strict';
    22
     3var $SyntaxError = require('es-errors/syntax');
    34var $TypeError = require('es-errors/type');
    45
     
    89var ToNumber = require('./ToNumber');
    910
    10 var isNegativeZero = require('is-negative-zero');
     11var isNegativeZero = require('math-intrinsics/isNegativeZero');
    1112var typedArrayBuffer = require('typed-array-buffer');
    1213var typedArrayByteOffset = require('typed-array-byte-offset');
     
    2526        if (!arrayTypeName) {
    2627                throw new $TypeError('`O` must be a TypedArray'); // step 2
     28        }
     29        if (arrayTypeName === 'BigInt64Array' || arrayTypeName === 'BigUint64Array') {
     30                throw new $SyntaxError('BigInt64Array and BigUint64Array do not exist until ES2020'); // step 2
    2731        }
    2832
  • imaps-frontend/node_modules/es-abstract/2016/InternalizeJSONProperty.js

    r0c6b92a r79a0317  
    1010var ToLength = require('./ToLength');
    1111var ToString = require('./ToString');
    12 var Type = require('./Type');
    1312
    1413var forEach = require('../helpers/forEach');
     14var isObject = require('../helpers/isObject');
    1515
    1616// https://262.ecma-international.org/6.0/#sec-internalizejsonproperty
     
    1919
    2020module.exports = function InternalizeJSONProperty(holder, name, reviver) {
    21         if (Type(holder) !== 'Object') {
     21        if (!isObject(holder)) {
    2222                throw new $TypeError('Assertion failed: `holder` is not an Object');
    2323        }
     
    3131        var val = Get(holder, name); // step 1
    3232
    33         if (Type(val) === 'Object') { // step 3
     33        if (isObject(val)) { // step 3
    3434                var isArray = IsArray(val); // step 3.a
    3535                if (isArray) { // step 3.c
  • imaps-frontend/node_modules/es-abstract/2016/Invoke.js

    r0c6b92a r79a0317  
    66var IsArray = require('./IsArray');
    77var GetV = require('./GetV');
    8 var IsPropertyKey = require('./IsPropertyKey');
     8var isPropertyKey = require('../helpers/isPropertyKey');
    99
    1010// https://262.ecma-international.org/6.0/#sec-invoke
    1111
    1212module.exports = function Invoke(O, P) {
    13         if (!IsPropertyKey(P)) {
     13        if (!isPropertyKey(P)) {
    1414                throw new $TypeError('Assertion failed: P must be a Property Key');
    1515        }
  • imaps-frontend/node_modules/es-abstract/2016/IsConcatSpreadable.js

    r0c6b92a r79a0317  
    88var IsArray = require('./IsArray');
    99var ToBoolean = require('./ToBoolean');
    10 var Type = require('./Type');
     10
     11var isObject = require('../helpers/isObject');
    1112
    1213// https://262.ecma-international.org/6.0/#sec-isconcatspreadable
    1314
    1415module.exports = function IsConcatSpreadable(O) {
    15         if (Type(O) !== 'Object') {
     16        if (!isObject(O)) {
    1617                return false;
    1718        }
  • imaps-frontend/node_modules/es-abstract/2016/IsInteger.js

    r0c6b92a r79a0317  
    11'use strict';
    22
    3 var isInteger = require('../helpers/isInteger');
     3var isInteger = require('math-intrinsics/isInteger');
    44
    55// https://262.ecma-international.org/6.0/#sec-isinteger
  • imaps-frontend/node_modules/es-abstract/2016/IsPromise.js

    r0c6b92a r79a0317  
    11'use strict';
    22
    3 var callBound = require('call-bind/callBound');
     3var callBound = require('call-bound');
    44
    55var $PromiseThen = callBound('Promise.prototype.then', true);
    66
    7 var Type = require('./Type');
     7var isObject = require('../helpers/isObject');
    88
    99// https://262.ecma-international.org/6.0/#sec-ispromise
    1010
    1111module.exports = function IsPromise(x) {
    12         if (Type(x) !== 'Object') {
     12        if (!isObject(x)) {
    1313                return false;
    1414        }
  • imaps-frontend/node_modules/es-abstract/2016/IsPropertyKey.js

    r0c6b92a r79a0317  
    11'use strict';
     2
     3var isPropertyKey = require('../helpers/isPropertyKey');
    24
    35// https://262.ecma-international.org/6.0/#sec-ispropertykey
    46
    57module.exports = function IsPropertyKey(argument) {
    6         return typeof argument === 'string' || typeof argument === 'symbol';
     8        return isPropertyKey(argument);
    79};
  • imaps-frontend/node_modules/es-abstract/2016/IsRegExp.js

    r0c6b92a r79a0317  
    99var ToBoolean = require('./ToBoolean');
    1010
     11var isObject = require('../helpers/isObject');
     12
    1113// https://262.ecma-international.org/6.0/#sec-isregexp
    1214
    1315module.exports = function IsRegExp(argument) {
    14         if (!argument || typeof argument !== 'object') {
     16        if (!isObject(argument)) {
    1517                return false;
    1618        }
  • imaps-frontend/node_modules/es-abstract/2016/IterableToArrayLike.js

    r0c6b92a r79a0317  
    11'use strict';
    22
    3 var callBound = require('call-bind/callBound');
     3var callBound = require('call-bound');
    44var $arrayPush = callBound('Array.prototype.push');
    55
  • imaps-frontend/node_modules/es-abstract/2016/IteratorClose.js

    r0c6b92a r79a0317  
    77var GetMethod = require('./GetMethod');
    88var IsCallable = require('./IsCallable');
    9 var Type = require('./Type');
     9
     10var isObject = require('../helpers/isObject');
    1011
    1112// https://262.ecma-international.org/6.0/#sec-iteratorclose
    1213
    1314module.exports = function IteratorClose(iterator, completion) {
    14         if (Type(iterator) !== 'Object') {
     15        if (!isObject(iterator)) {
    1516                throw new $TypeError('Assertion failed: Type(iterator) is not Object');
    1617        }
     
    4243        completionThunk = null; // ensure it's not called twice.
    4344
    44         if (Type(innerResult) !== 'Object') {
     45        if (!isObject(innerResult)) {
    4546                throw new $TypeError('iterator .return must return an object');
    4647        }
  • imaps-frontend/node_modules/es-abstract/2016/IteratorComplete.js

    r0c6b92a r79a0317  
    55var Get = require('./Get');
    66var ToBoolean = require('./ToBoolean');
    7 var Type = require('./Type');
     7
     8var isObject = require('../helpers/isObject');
    89
    910// https://262.ecma-international.org/6.0/#sec-iteratorcomplete
    1011
    1112module.exports = function IteratorComplete(iterResult) {
    12         if (Type(iterResult) !== 'Object') {
     13        if (!isObject(iterResult)) {
    1314                throw new $TypeError('Assertion failed: Type(iterResult) is not Object');
    1415        }
  • imaps-frontend/node_modules/es-abstract/2016/IteratorNext.js

    r0c6b92a r79a0317  
    44
    55var Invoke = require('./Invoke');
    6 var Type = require('./Type');
     6
     7var isObject = require('../helpers/isObject');
    78
    89// https://262.ecma-international.org/6.0/#sec-iteratornext
     
    1011module.exports = function IteratorNext(iterator, value) {
    1112        var result = Invoke(iterator, 'next', arguments.length < 2 ? [] : [value]);
    12         if (Type(result) !== 'Object') {
     13        if (!isObject(result)) {
    1314                throw new $TypeError('iterator next must return an object');
    1415        }
  • imaps-frontend/node_modules/es-abstract/2016/IteratorValue.js

    r0c6b92a r79a0317  
    44
    55var Get = require('./Get');
    6 var Type = require('./Type');
     6
     7var isObject = require('../helpers/isObject');
    78
    89// https://262.ecma-international.org/6.0/#sec-iteratorvalue
    910
    1011module.exports = function IteratorValue(iterResult) {
    11         if (Type(iterResult) !== 'Object') {
     12        if (!isObject(iterResult)) {
    1213                throw new $TypeError('Assertion failed: Type(iterResult) is not Object');
    1314        }
  • imaps-frontend/node_modules/es-abstract/2016/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/2016/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/2016/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/2016/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/2016/ObjectCreate.js

    r0c6b92a r79a0317  
    88
    99var IsArray = require('./IsArray');
    10 var Type = require('./Type');
    1110
    1211var forEach = require('../helpers/forEach');
     12var isObject = require('../helpers/isObject');
    1313
    1414var SLOT = require('internal-slot');
     
    1919
    2020module.exports = function ObjectCreate(proto, internalSlotsList) {
    21         if (proto !== null && Type(proto) !== 'Object') {
     21        if (proto !== null && !isObject(proto)) {
    2222                throw new $TypeError('Assertion failed: `proto` must be null or an object');
    2323        }
  • imaps-frontend/node_modules/es-abstract/2016/ObjectDefineProperties.js

    r0c6b92a r79a0317  
    11'use strict';
    22
    3 var callBound = require('call-bind/callBound');
     3var callBound = require('call-bound');
    44
    55var DefinePropertyOrThrow = require('./DefinePropertyOrThrow');
     
    1010var forEach = require('../helpers/forEach');
    1111var getOwnPropertyDescriptor = require('gopd');
    12 var OwnPropertyKeys = require('../helpers/OwnPropertyKeys');
     12var OwnPropertyKeys = require('own-keys');
    1313
    1414var $push = callBound('Array.prototype.push');
    1515
    1616// https://262.ecma-international.org/6.0/#sec-objectdefineproperties
     17
     18/** @type {<T extends Record<PropertyKey, unknown> = {}>(O: T, Properties: object) => T} */
    1719module.exports = function ObjectDefineProperties(O, Properties) {
    1820        var props = ToObject(Properties); // step 1
    1921        var keys = OwnPropertyKeys(props); // step 2
     22        /** @type {[string | symbol, import('../types').Descriptor][]} */
    2023        var descriptors = []; // step 3
    2124
  • imaps-frontend/node_modules/es-abstract/2016/OrdinaryDefineOwnProperty.js

    r0c6b92a r79a0317  
    99var IsAccessorDescriptor = require('./IsAccessorDescriptor');
    1010var IsExtensible = require('./IsExtensible');
    11 var IsPropertyKey = require('./IsPropertyKey');
     11var isPropertyKey = require('../helpers/isPropertyKey');
    1212var ToPropertyDescriptor = require('./ToPropertyDescriptor');
    1313var SameValue = require('./SameValue');
    14 var Type = require('./Type');
    1514var ValidateAndApplyPropertyDescriptor = require('./ValidateAndApplyPropertyDescriptor');
     15
     16var isObject = require('../helpers/isObject');
    1617
    1718// https://262.ecma-international.org/6.0/#sec-ordinarydefineownproperty
    1819
    1920module.exports = function OrdinaryDefineOwnProperty(O, P, Desc) {
    20         if (Type(O) !== 'Object') {
     21        if (!isObject(O)) {
    2122                throw new $TypeError('Assertion failed: O must be an Object');
    2223        }
    23         if (!IsPropertyKey(P)) {
     24        if (!isPropertyKey(P)) {
    2425                throw new $TypeError('Assertion failed: P must be a Property Key');
    2526        }
  • imaps-frontend/node_modules/es-abstract/2016/OrdinaryGetOwnProperty.js

    r0c6b92a r79a0317  
    44var $TypeError = require('es-errors/type');
    55
    6 var callBound = require('call-bind/callBound');
     6var callBound = require('call-bound');
    77
    88var $isEnumerable = callBound('Object.prototype.propertyIsEnumerable');
     
    1111
    1212var IsArray = require('./IsArray');
    13 var IsPropertyKey = require('./IsPropertyKey');
     13var isPropertyKey = require('../helpers/isPropertyKey');
    1414var IsRegExp = require('./IsRegExp');
    1515var ToPropertyDescriptor = require('./ToPropertyDescriptor');
    16 var Type = require('./Type');
     16
     17var isObject = require('../helpers/isObject');
    1718
    1819// https://262.ecma-international.org/6.0/#sec-ordinarygetownproperty
    1920
    2021module.exports = function OrdinaryGetOwnProperty(O, P) {
    21         if (Type(O) !== 'Object') {
     22        if (!isObject(O)) {
    2223                throw new $TypeError('Assertion failed: O must be an Object');
    2324        }
    24         if (!IsPropertyKey(P)) {
     25        if (!isPropertyKey(P)) {
    2526                throw new $TypeError('Assertion failed: P must be a Property Key');
    2627        }
  • imaps-frontend/node_modules/es-abstract/2016/OrdinaryGetPrototypeOf.js

    r0c6b92a r79a0317  
    33var $TypeError = require('es-errors/type');
    44
    5 var $getProto = require('../helpers/getProto');
    6 
    7 var Type = require('./Type');
     5var $getProto = require('get-proto');
     6var isObject = require('../helpers/isObject');
    87
    98// https://262.ecma-international.org/7.0/#sec-ordinarygetprototypeof
    109
    1110module.exports = function OrdinaryGetPrototypeOf(O) {
    12         if (Type(O) !== 'Object') {
     11        if (!isObject(O)) {
    1312                throw new $TypeError('Assertion failed: O must be an Object');
    1413        }
  • imaps-frontend/node_modules/es-abstract/2016/OrdinaryHasInstance.js

    r0c6b92a r79a0317  
    55var Get = require('./Get');
    66var IsCallable = require('./IsCallable');
    7 var Type = require('./Type');
     7
     8var isObject = require('../helpers/isObject');
    89
    910// https://262.ecma-international.org/6.0/#sec-ordinaryhasinstance
     
    1314                return false;
    1415        }
    15         if (Type(O) !== 'Object') {
     16        if (!isObject(O)) {
    1617                return false;
    1718        }
    1819        var P = Get(C, 'prototype');
    19         if (Type(P) !== 'Object') {
     20        if (!isObject(P)) {
    2021                throw new $TypeError('OrdinaryHasInstance called on an object with an invalid prototype property.');
    2122        }
  • imaps-frontend/node_modules/es-abstract/2016/OrdinaryHasProperty.js

    r0c6b92a r79a0317  
    33var $TypeError = require('es-errors/type');
    44
    5 var IsPropertyKey = require('./IsPropertyKey');
    6 var Type = require('./Type');
     5var isObject = require('../helpers/isObject');
     6var isPropertyKey = require('../helpers/isPropertyKey');
    77
    88// https://262.ecma-international.org/6.0/#sec-ordinaryhasproperty
    99
    1010module.exports = function OrdinaryHasProperty(O, P) {
    11         if (Type(O) !== 'Object') {
     11        if (!isObject(O)) {
    1212                throw new $TypeError('Assertion failed: Type(O) is not Object');
    1313        }
    14         if (!IsPropertyKey(P)) {
     14        if (!isPropertyKey(P)) {
    1515                throw new $TypeError('Assertion failed: P must be a Property Key');
    1616        }
  • imaps-frontend/node_modules/es-abstract/2016/OrdinarySetPrototypeOf.js

    r0c6b92a r79a0317  
    22
    33var $TypeError = require('es-errors/type');
    4 
    5 var $setProto = require('../helpers/setProto');
     4var $setProto = require('set-proto');
    65
    76var OrdinaryGetPrototypeOf = require('./OrdinaryGetPrototypeOf');
     7
     8var isObject = require('../helpers/isObject');
    89
    910// https://262.ecma-international.org/7.0/#sec-ordinarysetprototypeof
    1011
    1112module.exports = function OrdinarySetPrototypeOf(O, V) {
    12         if (typeof V !== 'object') {
     13        if (V !== null && !isObject(V)) {
    1314                throw new $TypeError('Assertion failed: V must be Object or Null');
    1415        }
  • imaps-frontend/node_modules/es-abstract/2016/QuoteJSONString.js

    r0c6b92a r79a0317  
    33var $TypeError = require('es-errors/type');
    44
    5 var callBound = require('call-bind/callBound');
     5var callBound = require('call-bound');
    66var forEach = require('../helpers/forEach');
    77
     
    2828        var product = '"';
    2929        if (value) {
    30                 forEach($strSplit(value), function (C) {
     30                forEach($strSplit(value, ''), function (C) {
    3131                        if (C === '"' || C === '\\') {
    3232                                product += '\u005C' + C;
  • imaps-frontend/node_modules/es-abstract/2016/RegExpExec.js

    r0c6b92a r79a0317  
    33var $TypeError = require('es-errors/type');
    44
    5 var regexExec = require('call-bind/callBound')('RegExp.prototype.exec');
     5var regexExec = require('call-bound')('RegExp.prototype.exec');
    66
    77var Call = require('./Call');
    88var Get = require('./Get');
    99var IsCallable = require('./IsCallable');
    10 var Type = require('./Type');
     10
     11var isObject = require('../helpers/isObject');
    1112
    1213// https://262.ecma-international.org/6.0/#sec-regexpexec
    1314
    1415module.exports = function RegExpExec(R, S) {
    15         if (Type(R) !== 'Object') {
     16        if (!isObject(R)) {
    1617                throw new $TypeError('Assertion failed: `R` must be an Object');
    1718        }
     
    2223        if (IsCallable(exec)) {
    2324                var result = Call(exec, R, [S]);
    24                 if (typeof result === 'object') {
     25                if (result === null || isObject(result)) {
    2526                        return result;
    2627                }
  • imaps-frontend/node_modules/es-abstract/2016/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/2016/SameValueZero.js

    r0c6b92a r79a0317  
    11'use strict';
    22
    3 var $isNaN = require('../helpers/isNaN');
     3var $isNaN = require('math-intrinsics/isNaN');
    44
    55// https://262.ecma-international.org/6.0/#sec-samevaluezero
  • imaps-frontend/node_modules/es-abstract/2016/Set.js

    r0c6b92a r79a0317  
    33var $TypeError = require('es-errors/type');
    44
    5 var IsPropertyKey = require('./IsPropertyKey');
     5var isPropertyKey = require('../helpers/isPropertyKey');
    66var SameValue = require('./SameValue');
    7 var Type = require('./Type');
     7
     8var isObject = require('../helpers/isObject');
    89
    910// IE 9 does not throw in strict mode when writability/configurability/extensibility is violated
     
    2021
    2122module.exports = function Set(O, P, V, Throw) {
    22         if (Type(O) !== 'Object') {
     23        if (!isObject(O)) {
    2324                throw new $TypeError('Assertion failed: `O` must be an Object');
    2425        }
    25         if (!IsPropertyKey(P)) {
     26        if (!isPropertyKey(P)) {
    2627                throw new $TypeError('Assertion failed: `P` must be a Property Key');
    2728        }
  • imaps-frontend/node_modules/es-abstract/2016/SetIntegrityLevel.js

    r0c6b92a r79a0317  
    1414var IsAccessorDescriptor = require('./IsAccessorDescriptor');
    1515var ToPropertyDescriptor = require('./ToPropertyDescriptor');
    16 var Type = require('./Type');
     16
     17var isObject = require('../helpers/isObject');
    1718
    1819// https://262.ecma-international.org/6.0/#sec-setintegritylevel
    1920
    2021module.exports = function SetIntegrityLevel(O, level) {
    21         if (Type(O) !== 'Object') {
     22        if (!isObject(O)) {
    2223                throw new $TypeError('Assertion failed: Type(O) is not Object');
    2324        }
  • imaps-frontend/node_modules/es-abstract/2016/SetValueInBuffer.js

    r0c6b92a r79a0317  
    66var $Uint8Array = GetIntrinsic('%Uint8Array%', true);
    77
    8 var isInteger = require('../helpers/isInteger');
     8var isInteger = require('math-intrinsics/isInteger');
    99
    1010var IsDetachedBuffer = require('./IsDetachedBuffer');
     
    2424var TypeToAO = {
    2525        __proto__: null,
    26         Int8: ToInt8,
    27         Uint8: ToUint8,
    28         Uint8C: ToUint8Clamp,
    29         Int16: ToInt16,
    30         Uint16: ToUint16,
    31         Int32: ToInt32,
    32         Uint32: ToUint32
     26        $Int8: ToInt8,
     27        $Uint8: ToUint8,
     28        $Uint8C: ToUint8Clamp,
     29        $Int16: ToInt16,
     30        $Uint16: ToUint16,
     31        $Int32: ToInt32,
     32        $Uint32: ToUint32
    3333};
    3434
     
    9494                var n = elementSize; // step 3.a
    9595
    96                 var convOp = TypeToAO[type]; // step 3.b
     96                var convOp = TypeToAO['$' + type]; // step 3.b
    9797
    9898                var intValue = convOp(value); // step 3.c
  • imaps-frontend/node_modules/es-abstract/2016/SpeciesConstructor.js

    r0c6b92a r79a0317  
    77
    88var IsConstructor = require('./IsConstructor');
    9 var Type = require('./Type');
     9
     10var isObject = require('../helpers/isObject');
    1011
    1112// https://262.ecma-international.org/6.0/#sec-speciesconstructor
    1213
    1314module.exports = function SpeciesConstructor(O, defaultConstructor) {
    14         if (Type(O) !== 'Object') {
     15        if (!isObject(O)) {
    1516                throw new $TypeError('Assertion failed: Type(O) is not Object');
    1617        }
     
    1920                return defaultConstructor;
    2021        }
    21         if (Type(C) !== 'Object') {
     22        if (!isObject(C)) {
    2223                throw new $TypeError('O.constructor is not an Object');
    2324        }
  • imaps-frontend/node_modules/es-abstract/2016/SplitMatch.js

    r0c6b92a r79a0317  
    11'use strict';
    22
    3 var callBound = require('call-bind/callBound');
     3var callBound = require('call-bound');
    44
    55var $TypeError = require('es-errors/type');
    6 
    7 var isInteger = require('../helpers/isInteger');
     6var isInteger = require('math-intrinsics/isInteger');
    87
    98var $charAt = callBound('String.prototype.charAt');
  • imaps-frontend/node_modules/es-abstract/2016/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/2016/StringCreate.js

    r0c6b92a r79a0317  
    77var $SyntaxError = require('es-errors/syntax');
    88var $TypeError = require('es-errors/type');
     9var setProto = require('set-proto');
    910
    1011var DefinePropertyOrThrow = require('./DefinePropertyOrThrow');
    11 
    12 var setProto = require('../helpers/setProto');
    1312
    1413// https://262.ecma-international.org/6.0/#sec-stringcreate
  • imaps-frontend/node_modules/es-abstract/2016/SymbolDescriptiveString.js

    r0c6b92a r79a0317  
    33var $TypeError = require('es-errors/type');
    44
    5 var callBound = require('call-bind/callBound');
     5var callBound = require('call-bound');
    66
    77var $SymbolToString = callBound('Symbol.prototype.toString', true);
  • imaps-frontend/node_modules/es-abstract/2016/TestIntegrityLevel.js

    r0c6b92a r79a0317  
    55
    66var every = require('../helpers/every');
    7 var OwnPropertyKeys = require('../helpers/OwnPropertyKeys');
     7var OwnPropertyKeys = require('own-keys');
    88
    99var IsDataDescriptor = require('./IsDataDescriptor');
    1010var IsExtensible = require('./IsExtensible');
    1111var ToPropertyDescriptor = require('./ToPropertyDescriptor');
    12 var Type = require('./Type');
     12
     13var isObject = require('../helpers/isObject');
    1314
    1415// https://262.ecma-international.org/6.0/#sec-testintegritylevel
    1516
    1617module.exports = function TestIntegrityLevel(O, level) {
    17         if (Type(O) !== 'Object') {
     18        if (!isObject(O)) {
    1819                throw new $TypeError('Assertion failed: Type(O) is not Object');
    1920        }
     
    2223        }
    2324        var status = IsExtensible(O);
    24         if (status) {
     25        if (status || !$gOPD) {
    2526                return false;
    2627        }
  • imaps-frontend/node_modules/es-abstract/2016/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/2016/ToDateString.js

    r0c6b92a r79a0317  
    77var $String = GetIntrinsic('%String%');
    88
    9 var $isNaN = require('../helpers/isNaN');
     9var $isNaN = require('math-intrinsics/isNaN');
    1010
    1111// https://262.ecma-international.org/6.0/#sec-todatestring
  • imaps-frontend/node_modules/es-abstract/2016/ToLength.js

    r0c6b92a r79a0317  
    11'use strict';
    22
    3 var MAX_SAFE_INTEGER = require('../helpers/maxSafeInteger');
     3var MAX_SAFE_INTEGER = require('math-intrinsics/constants/maxSafeInteger');
    44
    55var ToInteger = require('./ToInteger');
  • imaps-frontend/node_modules/es-abstract/2016/ToNumber.js

    r0c6b92a r79a0317  
    88var $parseInteger = GetIntrinsic('%parseInt%');
    99
    10 var callBound = require('call-bind/callBound');
     10var callBound = require('call-bound');
    1111var regexTester = require('safe-regex-test');
    1212var isPrimitive = require('../helpers/isPrimitive');
     
    4545
    4646        }
    47         return $Number(value);
     47        return +value;
    4848};
  • imaps-frontend/node_modules/es-abstract/2016/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/2016/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/2016/ToUint8.js

    r0c6b92a r79a0317  
    33var ToNumber = require('./ToNumber');
    44
    5 var $isNaN = require('../helpers/isNaN');
    6 var $isFinite = require('../helpers/isFinite');
    7 var $sign = require('../helpers/sign');
    8 
    9 var abs = require('./abs');
    10 var floor = require('./floor');
    11 var modulo = require('./modulo');
     5var $isNaN = require('math-intrinsics/isNaN');
     6var $isFinite = require('math-intrinsics/isFinite');
     7var $sign = require('math-intrinsics/sign');
     8var abs = require('math-intrinsics/abs');
     9var floor = require('math-intrinsics/floor');
     10var modulo = require('math-intrinsics/mod');
    1211
    1312// https://262.ecma-international.org/6.0/#sec-touint8
  • imaps-frontend/node_modules/es-abstract/2016/ToUint8Clamp.js

    r0c6b92a r79a0317  
    44var floor = require('./floor');
    55
    6 var $isNaN = require('../helpers/isNaN');
     6var $isNaN = require('math-intrinsics/isNaN');
    77
    88// https://262.ecma-international.org/6.0/#sec-touint8clamp
  • imaps-frontend/node_modules/es-abstract/2016/ValidateAndApplyPropertyDescriptor.js

    r0c6b92a r79a0317  
    1111var IsDataDescriptor = require('./IsDataDescriptor');
    1212var IsGenericDescriptor = require('./IsGenericDescriptor');
    13 var IsPropertyKey = require('./IsPropertyKey');
     13var isPropertyKey = require('../helpers/isPropertyKey');
    1414var SameValue = require('./SameValue');
    15 var Type = require('./Type');
     15
     16var isObject = require('../helpers/isObject');
    1617
    1718// https://262.ecma-international.org/6.0/#sec-validateandapplypropertydescriptor
     
    2122module.exports = function ValidateAndApplyPropertyDescriptor(O, P, extensible, Desc, current) {
    2223        // this uses the ES2017+ logic, since it fixes a number of bugs in the ES2015 logic.
    23         var oType = Type(O);
    24         if (oType !== 'Undefined' && oType !== 'Object') {
     24        if (typeof O !== 'undefined' && !isObject(O)) {
    2525                throw new $TypeError('Assertion failed: O must be undefined or an Object');
    2626        }
     
    3434                throw new $TypeError('Assertion failed: current must be a Property Descriptor, or undefined');
    3535        }
    36         if (oType !== 'Undefined' && !IsPropertyKey(P)) {
     36        if (typeof O !== 'undefined' && !isPropertyKey(P)) {
    3737                throw new $TypeError('Assertion failed: if O is not undefined, P must be a Property Key');
    3838        }
     
    4242                }
    4343                if (IsGenericDescriptor(Desc) || IsDataDescriptor(Desc)) {
    44                         if (oType !== 'Undefined') {
     44                        if (typeof O !== 'undefined') {
    4545                                DefineOwnProperty(
    4646                                        IsDataDescriptor,
     
    6161                                throw new $TypeError('Assertion failed: Desc is not an accessor descriptor');
    6262                        }
    63                         if (oType !== 'Undefined') {
     63                        if (typeof O !== 'undefined') {
    6464                                return DefineOwnProperty(
    6565                                        IsDataDescriptor,
     
    9696                }
    9797                if (IsDataDescriptor(current)) {
    98                         if (oType !== 'Undefined') {
     98                        if (typeof O !== 'undefined') {
    9999                                DefineOwnProperty(
    100100                                        IsDataDescriptor,
     
    110110                                );
    111111                        }
    112                 } else if (oType !== 'Undefined') {
     112                } else if (typeof O !== 'undefined') {
    113113                        DefineOwnProperty(
    114114                                IsDataDescriptor,
     
    147147                throw new $TypeError('Assertion failed: current and Desc are not both data, both accessors, or one accessor and one data.');
    148148        }
    149         if (oType !== 'Undefined') {
     149        if (typeof O !== 'undefined') {
    150150                return DefineOwnProperty(
    151151                        IsDataDescriptor,
  • imaps-frontend/node_modules/es-abstract/2016/ValidateTypedArray.js

    r0c6b92a r79a0317  
    44
    55var IsDetachedBuffer = require('./IsDetachedBuffer');
    6 var Type = require('./Type');
     6
     7var isObject = require('../helpers/isObject');
    78
    89var isTypedArray = require('is-typed-array');
     
    1213
    1314module.exports = function ValidateTypedArray(O) {
    14         if (Type(O) !== 'Object') {
     15        if (!isObject(O)) {
    1516                throw new $TypeError('Assertion failed: `O` must be an Object'); // step 1
    1617        }
  • imaps-frontend/node_modules/es-abstract/2016/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/2016/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/2016/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
  • imaps-frontend/node_modules/es-abstract/2016/max.js

    r0c6b92a r79a0317  
    11'use strict';
    2 
    3 var GetIntrinsic = require('get-intrinsic');
    42
    53// https://262.ecma-international.org/6.0/#sec-algorithm-conventions
    64
    7 module.exports = GetIntrinsic('%Math.max%');
     5module.exports = require('math-intrinsics/max');
  • imaps-frontend/node_modules/es-abstract/2016/min.js

    r0c6b92a r79a0317  
    11'use strict';
    2 
    3 var GetIntrinsic = require('get-intrinsic');
    42
    53// https://262.ecma-international.org/6.0/#sec-algorithm-conventions
    64
    7 module.exports = GetIntrinsic('%Math.min%');
     5module.exports = require('math-intrinsics/min');
  • imaps-frontend/node_modules/es-abstract/2016/thisBooleanValue.js

    r0c6b92a r79a0317  
    11'use strict';
    22
    3 var $BooleanValueOf = require('call-bind/callBound')('Boolean.prototype.valueOf');
     3var $BooleanValueOf = require('call-bound')('Boolean.prototype.valueOf');
    44
    55// https://262.ecma-international.org/6.0/#sec-properties-of-the-boolean-prototype-object
  • imaps-frontend/node_modules/es-abstract/2016/thisNumberValue.js

    r0c6b92a r79a0317  
    11'use strict';
    22
    3 var callBound = require('call-bind/callBound');
     3var callBound = require('call-bound');
    44
    55var $NumberValueOf = callBound('Number.prototype.valueOf');
  • imaps-frontend/node_modules/es-abstract/2016/thisStringValue.js

    r0c6b92a r79a0317  
    11'use strict';
    22
    3 var $StringValueOf = require('call-bind/callBound')('String.prototype.valueOf');
     3var $StringValueOf = require('call-bound')('String.prototype.valueOf');
    44
    55// https://262.ecma-international.org/6.0/#sec-properties-of-the-string-prototype-object
  • imaps-frontend/node_modules/es-abstract/2016/thisTimeValue.js

    r0c6b92a r79a0317  
    11'use strict';
    22
    3 var $DateGetTime = require('call-bind/callBound')('Date.prototype.getTime');
     3var timeValue = require('../helpers/timeValue');
    44
    55// https://262.ecma-international.org/6.0/#sec-properties-of-the-date-prototype-object
    66
    77module.exports = function thisTimeValue(value) {
    8         return $DateGetTime(value);
     8        return timeValue(value);
    99};
Note: See TracChangeset for help on using the changeset viewer.