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/2018
Files:
103 edited

Legend:

Unmodified
Added
Removed
  • imaps-frontend/node_modules/es-abstract/2018/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/2018/AbstractRelationalComparison.js

    r0c6b92a r79a0317  
    55var $Number = GetIntrinsic('%Number%');
    66var $TypeError = require('es-errors/type');
    7 
    8 var $isNaN = require('../helpers/isNaN');
    9 var $isFinite = require('../helpers/isFinite');
     7var $isNaN = require('math-intrinsics/isNaN');
     8var $isFinite = require('math-intrinsics/isFinite');
    109
    1110var IsStringPrefix = require('./IsStringPrefix');
  • imaps-frontend/node_modules/es-abstract/2018/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/2018/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/2018/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/2018/AsyncIteratorClose.js

    r0c6b92a r79a0317  
    1010var CompletionRecord = require('./CompletionRecord');
    1111var GetMethod = require('./GetMethod');
    12 var Type = require('./Type');
    1312
     13var isObject = require('../helpers/isObject');
    1414var isIteratorRecord = require('../helpers/records/iterator-record-2023');
    1515
    16 var callBound = require('call-bind/callBound');
     16var callBound = require('call-bound');
    1717
    1818var $then = callBound('Promise.prototype.then', true);
     
    4747                                }),
    4848                                function (innerResult) {
    49                                         if (Type(innerResult) !== 'Object') {
     49                                        if (!isObject(innerResult)) {
    5050                                                throw new $TypeError('`innerResult` must be an Object'); // step 10
    5151                                        }
  • imaps-frontend/node_modules/es-abstract/2018/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/2018/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/2018/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/2018/CopyDataProperties.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');
    7 var OwnPropertyKeys = require('../helpers/OwnPropertyKeys');
     7var OwnPropertyKeys = require('own-keys');
    88
    99var $isEnumerable = callBound('Object.prototype.propertyIsEnumerable');
     
    1313var IsArray = require('./IsArray');
    1414var IsInteger = require('./IsInteger');
    15 var IsPropertyKey = require('./IsPropertyKey');
     15var isPropertyKey = require('../helpers/isPropertyKey');
    1616var SameValue = require('./SameValue');
    1717var ToNumber = require('./ToNumber');
    1818var ToObject = require('./ToObject');
    19 var Type = require('./Type');
     19
     20var isObject = require('../helpers/isObject');
    2021
    2122// https://262.ecma-international.org/9.0/#sec-copydataproperties
    2223
    2324module.exports = function CopyDataProperties(target, source, excludedItems) {
    24         if (Type(target) !== 'Object') {
     25        if (!isObject(target)) {
    2526                throw new $TypeError('Assertion failed: "target" must be an Object');
    2627        }
     
    3031        }
    3132        for (var i = 0; i < excludedItems.length; i += 1) {
    32                 if (!IsPropertyKey(excludedItems[i])) {
     33                if (!isPropertyKey(excludedItems[i])) {
    3334                        throw new $TypeError('Assertion failed: "excludedItems" must be a List of Property Keys');
    3435                }
  • imaps-frontend/node_modules/es-abstract/2018/CreateAsyncFromSyncIterator.js

    r0c6b92a r79a0317  
    1616var ObjectCreate = require('./ObjectCreate');
    1717var PromiseResolve = require('./PromiseResolve');
    18 var Type = require('./Type');
    1918
     19var isObject = require('../helpers/isObject');
    2020var isIteratorRecord = require('../helpers/records/iterator-record-2023');
    2121
    2222var SLOT = require('internal-slot');
    2323
    24 var callBound = require('call-bind/callBound');
     24var callBound = require('call-bound');
    2525
    2626var $then = callBound('Promise.prototype.then', true);
    2727
    2828var AsyncFromSyncIteratorContinuation = function AsyncFromSyncIteratorContinuation(result) {
    29         if (Type(result) !== 'Object') {
     29        if (!isObject(result)) {
    3030                throw new $TypeError('Assertion failed: Type(O) is not Object');
    3131        }
     
    102102                                result = Call(iteratorReturn, syncIterator); // step 9.a
    103103                        }
    104                         if (Type(result) !== 'Object') { // step 11
     104                        if (!isObject(result)) { // step 11
    105105                                Call(reject, undefined, [new $TypeError('Iterator `return` method returned a non-object value.')]); // step 11.a
    106106                                return;
     
    138138                                result = Call(throwMethod, syncIterator); // step 9.a
    139139                        }
    140                         if (Type(result) !== 'Object') { // step 11
     140                        if (!isObject(result)) { // step 11
    141141                                Call(reject, undefined, [new $TypeError('Iterator `throw` method returned a non-object value.')]); // step 11.a
    142142                                return;
  • imaps-frontend/node_modules/es-abstract/2018/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/2018/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/2018/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/2018/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/2018/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/2018/DateString.js

    r0c6b92a r79a0317  
    66var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
    77
    8 var $isNaN = require('../helpers/isNaN');
     8var $isNaN = require('math-intrinsics/isNaN');
    99var padTimeComponent = require('../helpers/padTimeComponent');
    1010
  • imaps-frontend/node_modules/es-abstract/2018/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/2018/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/2018/EnumerableOwnPropertyNames.js

    r0c6b92a r79a0317  
    11'use strict';
    2 
    3 var GetIntrinsic = require('get-intrinsic');
    42
    53var $TypeError = require('es-errors/type');
    64
    75var objectKeys = require('object-keys');
    8 
    9 var callBound = require('call-bind/callBound');
    10 
    11 var callBind = require('call-bind');
     6var safePushApply = require('safe-push-apply');
     7var callBound = require('call-bound');
    128
    139var $isEnumerable = callBound('Object.prototype.propertyIsEnumerable');
    14 var $pushApply = callBind.apply(GetIntrinsic('%Array.prototype.push%'));
    1510
    1611var forEach = require('../helpers/forEach');
    17 
    18 var Type = require('./Type');
     12var isObject = require('../helpers/isObject');
    1913
    2014// https://262.ecma-international.org/8.0/#sec-enumerableownproperties
    2115
    2216module.exports = function EnumerableOwnPropertyNames(O, kind) {
    23         if (Type(O) !== 'Object') {
     17        if (!isObject(O)) {
    2418                throw new $TypeError('Assertion failed: Type(O) is not Object');
    2519        }
     
    3327                forEach(keys, function (key) {
    3428                        if ($isEnumerable(O, key)) {
    35                                 $pushApply(results, [
     29                                safePushApply(results, [
    3630                                        kind === 'value' ? O[key] : [key, O[key]]
    3731                                ]);
  • imaps-frontend/node_modules/es-abstract/2018/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/2018/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/2018/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/2018/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/2018/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/2018/GetSubstitution.js

    r0c6b92a r79a0317  
    33var $TypeError = require('es-errors/type');
    44
    5 var callBound = require('call-bind/callBound');
     5var callBound = require('call-bound');
    66var regexTester = require('safe-regex-test');
    77var every = require('../helpers/every');
     
    1515
    1616var inspect = require('object-inspect');
     17var isInteger = require('math-intrinsics/isInteger');
    1718
    1819var Get = require('./Get');
     
    2122var ToString = require('./ToString');
    2223
    23 var isInteger = require('../helpers/isInteger');
    2424var isStringOrUndefined = require('../helpers/isStringOrUndefined');
    2525
  • imaps-frontend/node_modules/es-abstract/2018/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/2018/GetValueFromBuffer.js

    r0c6b92a r79a0317  
    55var $SyntaxError = require('es-errors/syntax');
    66var $TypeError = require('es-errors/type');
     7var isInteger = require('math-intrinsics/isInteger');
    78var $Uint8Array = GetIntrinsic('%Uint8Array%', true);
    89
    9 var callBound = require('call-bind/callBound');
     10var callBound = require('call-bound');
    1011
    1112var $slice = callBound('Array.prototype.slice');
    12 
    13 var isInteger = require('../helpers/isInteger');
    1413
    1514var IsDetachedBuffer = require('./IsDetachedBuffer');
  • imaps-frontend/node_modules/es-abstract/2018/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/2018/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/2018/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/2018/IntegerIndexedElementGet.js

    r0c6b92a r79a0317  
    88var IsInteger = require('./IsInteger');
    99
    10 var isNegativeZero = require('../helpers/isNegativeZero');
     10var isNegativeZero = require('math-intrinsics/isNegativeZero');
    1111
    1212var typedArrayLength = require('typed-array-length');
  • imaps-frontend/node_modules/es-abstract/2018/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/2018/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/9.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 2
     33        if (isObject(val)) { // step 2
    3434                var isArray = IsArray(val); // step 2.a
    3535                if (isArray) { // step 2.b
  • imaps-frontend/node_modules/es-abstract/2018/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/2018/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/2018/IsDetachedBuffer.js

    r0c6b92a r79a0317  
    55var $byteLength = require('array-buffer-byte-length');
    66var availableTypedArrays = require('available-typed-arrays')();
    7 var callBound = require('call-bind/callBound');
     7var callBound = require('call-bound');
    88var isArrayBuffer = require('is-array-buffer');
    99var isSharedArrayBuffer = require('is-shared-array-buffer');
  • imaps-frontend/node_modules/es-abstract/2018/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/2018/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/2018/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/2018/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/2018/IsSharedArrayBuffer.js

    r0c6b92a r79a0317  
    33var $TypeError = require('es-errors/type');
    44
    5 var Type = require('./Type');
     5var isObject = require('../helpers/isObject');
    66
    77var isSharedArrayBuffer = require('is-shared-array-buffer');
     
    1010
    1111module.exports = function IsSharedArrayBuffer(obj) {
    12         if (Type(obj) !== 'Object') {
     12        if (!isObject(obj)) {
    1313                throw new $TypeError('Assertion failed: Type(O) is not Object');
    1414        }
  • imaps-frontend/node_modules/es-abstract/2018/IsStringPrefix.js

    r0c6b92a r79a0317  
    55var isPrefixOf = require('../helpers/isPrefixOf');
    66
    7 // var callBound = require('call-bind/callBound');
     7// var callBound = require('call-bound');
    88
    99// var $charAt = callBound('String.prototype.charAt');
  • imaps-frontend/node_modules/es-abstract/2018/IsWordChar.js

    r0c6b92a r79a0317  
    33var $TypeError = require('es-errors/type');
    44
    5 var callBound = require('call-bind/callBound');
     5var callBound = require('call-bound');
    66
    77var $indexOf = callBound('String.prototype.indexOf');
  • imaps-frontend/node_modules/es-abstract/2018/IterableToList.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/2018/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/2018/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/2018/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/2018/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/2018/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/2018/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/2018/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/2018/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/2018/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/2018/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/2018/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/2018/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/2018/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/2018/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/2018/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/2018/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/2018/OrdinaryToPrimitive.js

    r0c6b92a r79a0317  
    66var Get = require('./Get');
    77var IsCallable = require('./IsCallable');
    8 var Type = require('./Type');
     8
     9var isObject = require('../helpers/isObject');
    910
    1011var inspect = require('object-inspect');
     
    1314
    1415module.exports = function OrdinaryToPrimitive(O, hint) {
    15         if (Type(O) !== 'Object') {
     16        if (!isObject(O)) {
    1617                throw new $TypeError('Assertion failed: Type(O) is not Object');
    1718        }
     
    2728                if (IsCallable(method)) {
    2829                        var result = Call(method, O);
    29                         if (Type(result) !== 'Object') {
     30                        if (!isObject(result)) {
    3031                                return result;
    3132                        }
  • imaps-frontend/node_modules/es-abstract/2018/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
     
    3131        var product = '"';
    3232        if (value) {
    33                 forEach($strSplit(value), function (C) {
     33                forEach($strSplit(value, ''), function (C) {
    3434                        if (hasOwn(escapes, C)) {
    3535                                product += escapes[C];
  • imaps-frontend/node_modules/es-abstract/2018/RawBytesToNumber.js

    r0c6b92a r79a0317  
    11'use strict';
    22
    3 var callBound = require('call-bind/callBound');
     3var callBound = require('call-bound');
    44
    55var $RangeError = require('es-errors/range');
  • imaps-frontend/node_modules/es-abstract/2018/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/2018/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/2018/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/2018/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/2018/SetFunctionLength.js

    r0c6b92a r79a0317  
    22
    33var $TypeError = require('es-errors/type');
     4var isInteger = require('math-intrinsics/isInteger');
    45
    56var DefinePropertyOrThrow = require('./DefinePropertyOrThrow');
    67var HasOwnProperty = require('./HasOwnProperty');
    78var IsExtensible = require('./IsExtensible');
    8 
    9 var isInteger = require('../helpers/isInteger');
    109
    1110// https://262.ecma-international.org/9.0/#sec-setfunctionlength
  • imaps-frontend/node_modules/es-abstract/2018/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/2018/SetValueInBuffer.js

    r0c6b92a r79a0317  
    33var GetIntrinsic = require('get-intrinsic');
    44
     5var $SyntaxError = require('es-errors/syntax');
    56var $TypeError = require('es-errors/type');
    67var $Uint8Array = GetIntrinsic('%Uint8Array%', true);
    78
    8 var isInteger = require('../helpers/isInteger');
     9var isInteger = require('math-intrinsics/isInteger');
    910
    1011var IsDetachedBuffer = require('./IsDetachedBuffer');
    11 var ToInt16 = require('./ToInt16');
    12 var ToInt32 = require('./ToInt32');
    13 var ToInt8 = require('./ToInt8');
    14 var ToUint16 = require('./ToUint16');
    15 var ToUint32 = require('./ToUint32');
    16 var ToUint8 = require('./ToUint8');
    17 var ToUint8Clamp = require('./ToUint8Clamp');
     12var NumberToRawBytes = require('./NumberToRawBytes');
    1813
    1914var isArrayBuffer = require('is-array-buffer');
     15var isSharedArrayBuffer = require('is-shared-array-buffer');
    2016var hasOwn = require('hasown');
    2117
    2218var tableTAO = require('./tables/typed-array-objects');
    2319
    24 var TypeToAO = {
    25         __proto__: null,
    26         Int8: ToInt8,
    27         Uint8: ToUint8,
    28         Uint8C: ToUint8Clamp,
    29         Int16: ToInt16,
    30         Uint16: ToUint16,
    31         Int32: ToInt32,
    32         Uint32: ToUint32
    33 };
    34 
    3520var defaultEndianness = require('../helpers/defaultEndianness');
    3621var forEach = require('../helpers/forEach');
    37 var integerToNBytes = require('../helpers/integerToNBytes');
    38 var valueToFloat32Bytes = require('../helpers/valueToFloat32Bytes');
    39 var valueToFloat64Bytes = require('../helpers/valueToFloat64Bytes');
    4022
    41 // https://262.ecma-international.org/6.0/#sec-setvalueinbuffer
     23// https://262.ecma-international.org/8.0/#sec-setvalueinbuffer
    4224
    43 module.exports = function SetValueInBuffer(arrayBuffer, byteIndex, type, value) {
    44         if (!isArrayBuffer(arrayBuffer)) {
    45                 throw new $TypeError('Assertion failed: `arrayBuffer` must be an ArrayBuffer');
     25/* eslint max-params: 0 */
     26
     27module.exports = function SetValueInBuffer(arrayBuffer, byteIndex, type, value, isTypedArray, order) {
     28        var isSAB = isSharedArrayBuffer(arrayBuffer);
     29        if (!isArrayBuffer(arrayBuffer) && !isSAB) {
     30                throw new $TypeError('Assertion failed: `arrayBuffer` must be an ArrayBuffer or a SharedArrayBuffer');
    4631        }
    4732
     
    5843        }
    5944
    60         if (arguments.length > 4 && typeof arguments[4] !== 'boolean') {
     45        if (typeof isTypedArray !== 'boolean') {
     46                throw new $TypeError('Assertion failed: `isTypedArray` must be a boolean');
     47        }
     48        if (order !== 'SeqCst' && order !== 'Unordered' && order !== 'Init') {
     49                throw new $TypeError('Assertion failed: `order` must be `"SeqCst"`, `"Unordered"`, or `"Init"`');
     50        }
     51
     52        if (arguments.length > 6 && typeof arguments[6] !== 'boolean') {
    6153                throw new $TypeError('Assertion failed: `isLittleEndian` must be a boolean, if present');
    6254        }
     
    7466        // 4. Assert: Type(value) is Number.
    7567
    76         // 5. Let block be arrayBuffer’s [[ArrayBufferData]] internal slot.
     68        // 5. Let block be arrayBuffer.[[ArrayBufferData]].
    7769
    78         // 6. Assert: block is not undefined.
     70        var elementSize = tableTAO.size['$' + type]; // step 6
    7971
    80         var elementSize = tableTAO.size['$' + type]; // step 7
    81         if (!elementSize) {
    82                 throw new $TypeError('Assertion failed: `type` must be one of "Int8", "Uint8", "Uint8C", "Int16", "Uint16", "Int32", "Uint32", "Float32", or "Float64"');
     72        // 7. If isLittleEndian is not present, set isLittleEndian to to the value of the [[LittleEndian]] field of the surrounding agent's Agent Record.
     73        var isLittleEndian = arguments.length > 6 ? arguments[6] : defaultEndianness === 'little'; // step 8
     74
     75        var rawBytes = NumberToRawBytes(type, value, isLittleEndian); // step 8
     76
     77        if (isSAB) { // step 9
     78                /*
     79                        Let execution be the [[CandidateExecution]] field of the surrounding agent's Agent Record.
     80                        Let eventList be the [[EventList]] field of the element in execution.[[EventsRecords]] whose [[AgentSignifier]] is AgentSignifier().
     81                        If isTypedArray is true and IsNoTearConfiguration(type, order) is true, let noTear be true; otherwise let noTear be false.
     82                        Append WriteSharedMemory { [[Order]]: order, [[NoTear]]: noTear, [[Block]]: block, [[ByteIndex]]: byteIndex, [[ElementSize]]: elementSize, [[Payload]]: rawBytes } to eventList.
     83                */
     84                throw new $SyntaxError('SharedArrayBuffer is not supported by this implementation');
     85        } else {
     86                // 10. Store the individual bytes of rawBytes into block, in order, starting at block[byteIndex].
     87                var arr = new $Uint8Array(arrayBuffer, byteIndex, elementSize);
     88                forEach(rawBytes, function (rawByte, i) {
     89                        arr[i] = rawByte;
     90                });
    8391        }
    8492
    85         // 8. If isLittleEndian is not present, set isLittleEndian to either true or false. The choice is implementation dependent and should be the alternative that is most efficient for the implementation. An implementation must use the same value each time this step is executed and the same value must be used for the corresponding step in the GetValueFromBuffer abstract operation.
    86         var isLittleEndian = arguments.length > 4 ? arguments[4] : defaultEndianness === 'little'; // step 8
    87 
    88         var rawBytes;
    89         if (type === 'Float32') { // step 1
    90                 rawBytes = valueToFloat32Bytes(value, isLittleEndian);
    91         } else if (type === 'Float64') { // step 2
    92                 rawBytes = valueToFloat64Bytes(value, isLittleEndian);
    93         } else {
    94                 var n = elementSize; // step 3.a
    95 
    96                 var convOp = TypeToAO[type]; // step 3.b
    97 
    98                 var intValue = convOp(value); // step 3.c
    99 
    100                 rawBytes = integerToNBytes(intValue, n, isLittleEndian); // step 3.d, 3.e, 4
    101         }
    102 
    103         // 12. Store the individual bytes of rawBytes into block, in order, starting at block[byteIndex].
    104         var arr = new $Uint8Array(arrayBuffer, byteIndex, elementSize);
    105         forEach(rawBytes, function (rawByte, i) {
    106                 arr[i] = rawByte;
    107         });
    108 
    109         // 13. Return NormalCompletion(undefined).
     93        // 11. Return NormalCompletion(undefined).
    11094};
  • imaps-frontend/node_modules/es-abstract/2018/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/2018/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/2018/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/2018/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/2018/StringGetOwnProperty.js

    r0c6b92a r79a0317  
    33var $TypeError = require('es-errors/type');
    44
    5 var callBound = require('call-bind/callBound');
     5var callBound = require('call-bound');
    66var $charAt = callBound('String.prototype.charAt');
    77var $stringToString = callBound('String.prototype.toString');
     
    99var CanonicalNumericIndexString = require('./CanonicalNumericIndexString');
    1010var IsInteger = require('./IsInteger');
    11 var IsPropertyKey = require('./IsPropertyKey');
    12 var Type = require('./Type');
    1311
    14 var isNegativeZero = require('is-negative-zero');
     12var isObject = require('../helpers/isObject');
     13var isPropertyKey = require('../helpers/isPropertyKey');
     14
     15var isNegativeZero = require('math-intrinsics/isNegativeZero');
    1516
    1617// https://262.ecma-international.org/8.0/#sec-stringgetownproperty
     
    1819module.exports = function StringGetOwnProperty(S, P) {
    1920        var str;
    20         if (Type(S) === 'Object') {
     21        if (isObject(S)) {
    2122                try {
    2223                        str = $stringToString(S);
     
    2627                throw new $TypeError('Assertion failed: `S` must be a boxed string object');
    2728        }
    28         if (!IsPropertyKey(P)) {
    29                 throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true');
     29        if (!isPropertyKey(P)) {
     30                throw new $TypeError('Assertion failed: P is not a Property Key');
    3031        }
    3132        if (typeof P !== 'string') {
  • imaps-frontend/node_modules/es-abstract/2018/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/2018/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/2018/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/2018/TimeString.js

    r0c6b92a r79a0317  
    33var $TypeError = require('es-errors/type');
    44
    5 var $isNaN = require('../helpers/isNaN');
     5var $isNaN = require('math-intrinsics/isNaN');
    66var padTimeComponent = require('../helpers/padTimeComponent');
    77
  • imaps-frontend/node_modules/es-abstract/2018/TimeZoneString.js

    r0c6b92a r79a0317  
    66var $TypeError = require('es-errors/type');
    77
    8 var isNaN = require('../helpers/isNaN');
     8var isNaN = require('math-intrinsics/isNaN');
    99
    10 var callBound = require('call-bind/callBound');
     10var callBound = require('call-bound');
    1111
    1212var $indexOf = callBound('String.prototype.indexOf');
  • imaps-frontend/node_modules/es-abstract/2018/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/2018/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/2018/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/2018/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/2018/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/2018/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/2018/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/2018/UnicodeEscape.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/2018/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/2018/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/2018/WordCharacters.js

    r0c6b92a r79a0317  
    33var $TypeError = require('es-errors/type');
    44
    5 var callBound = require('call-bind/callBound');
     5var callBound = require('call-bound');
    66var $indexOf = callBound('String.prototype.indexOf', true);
    77
     
    1010var caseFolding = require('../helpers/caseFolding.json');
    1111var forEach = require('../helpers/forEach');
    12 var OwnPropertyKeys = require('../helpers/OwnPropertyKeys');
     12var OwnPropertyKeys = require('own-keys');
    1313
    1414var A = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_'; // step 1
  • imaps-frontend/node_modules/es-abstract/2018/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/2018/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/2018/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/2018/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/2018/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/2018/tables/typed-array-objects.js

    r0c6b92a r79a0317  
    11'use strict';
    22
    3 // https://262.ecma-international.org/8.0/#table-59
     3// https://262.ecma-international.org/8.0/#table-49
    44
    55module.exports = {
  • imaps-frontend/node_modules/es-abstract/2018/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/2018/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/2018/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/2018/thisSymbolValue.js

    r0c6b92a r79a0317  
    22
    33var $SyntaxError = require('es-errors/syntax');
    4 var callBound = require('call-bind/callBound');
     4var callBound = require('call-bound');
    55
    66var $SymbolValueOf = callBound('Symbol.prototype.valueOf', true);
     
    99
    1010module.exports = function thisSymbolValue(value) {
     11        if (typeof value === 'symbol') {
     12                return value;
     13        }
     14
    1115        if (!$SymbolValueOf) {
    1216                throw new $SyntaxError('Symbols are not supported; thisSymbolValue requires that `value` be a Symbol or a Symbol object');
    1317        }
    14         if (typeof value === 'symbol') {
    15                 return value;
    16         }
     18
    1719        return $SymbolValueOf(value);
    1820};
  • imaps-frontend/node_modules/es-abstract/2018/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.