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/2020
Files:
117 edited

Legend:

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

    r0c6b92a r79a0317  
    77var Type = require('./Type');
    88
    9 var isNaN = require('../helpers/isNaN');
     9var isNaN = require('math-intrinsics/isNaN');
     10var isObject = require('../helpers/isObject');
    1011
    1112// https://262.ecma-international.org/11.0/#sec-abstract-equality-comparison
    1213
    1314module.exports = function AbstractEqualityComparison(x, y) {
    14         var xType = Type(x);
    15         var yType = Type(y);
    16         if (xType === yType) {
     15        if (Type(x) === Type(y)) {
    1716                return StrictEqualityComparison(x, y);
    1817        }
     
    2019                return true;
    2120        }
    22         if (xType === 'Number' && yType === 'String') {
     21        if (typeof x === 'number' && typeof y === 'string') {
    2322                return AbstractEqualityComparison(x, ToNumber(y));
    2423        }
    25         if (xType === 'String' && yType === 'Number') {
     24        if (typeof x === 'string' && typeof y === 'number') {
    2625                return AbstractEqualityComparison(ToNumber(x), y);
    2726        }
    28         if (xType === 'BigInt' && yType === 'String') {
     27        if (typeof x === 'bigint' && typeof y === 'string') {
    2928                var n = StringToBigInt(y);
    3029                if (isNaN(n)) {
     
    3332                return AbstractEqualityComparison(x, n);
    3433        }
    35         if (xType === 'String' && yType === 'BigInt') {
     34        if (typeof x === 'string' && typeof y === 'bigint') {
    3635                return AbstractEqualityComparison(y, x);
    3736        }
    38         if (xType === 'Boolean') {
     37        if (typeof x === 'boolean') {
    3938                return AbstractEqualityComparison(ToNumber(x), y);
    4039        }
    41         if (yType === 'Boolean') {
     40        if (typeof y === 'boolean') {
    4241                return AbstractEqualityComparison(x, ToNumber(y));
    4342        }
    44         if ((xType === 'String' || xType === 'Number' || xType === 'BigInt' || xType === 'Symbol') && yType === 'Object') {
     43        if ((typeof x === 'string' || typeof x === 'number' || typeof x === 'bigint' || typeof x === 'symbol') && isObject(y)) {
    4544                return AbstractEqualityComparison(x, ToPrimitive(y));
    4645        }
    47         if (xType === 'Object' && (yType === 'String' || yType === 'Number' || yType === 'BigInt' || yType === 'Symbol')) {
     46        if (isObject(x) && (typeof y === 'string' || typeof y === 'number' || typeof y === 'bigint' || typeof y === 'symbol')) {
    4847                return AbstractEqualityComparison(ToPrimitive(x), y);
    4948        }
    50         if ((xType === 'BigInt' && yType === 'Number') || (xType === 'Number' && yType === 'BigInt')) {
     49        if ((typeof x === 'bigint' && typeof y === 'number') || (typeof x === 'number' && typeof y === 'bigint')) {
    5150                if (isNaN(x) || isNaN(y) || x === Infinity || y === Infinity || x === -Infinity || y === -Infinity) {
    5251                        return false;
  • imaps-frontend/node_modules/es-abstract/2020/AbstractRelationalComparison.js

    r0c6b92a r79a0317  
    66var $TypeError = require('es-errors/type');
    77
    8 var $isNaN = require('../helpers/isNaN');
     8var $isNaN = require('math-intrinsics/isNaN');
    99
    1010var IsStringPrefix = require('./IsStringPrefix');
     
    4343        }
    4444
    45         var pxType = Type(px);
    46         var pyType = Type(py);
    4745        var nx;
    4846        var ny;
    49         if (pxType === 'BigInt' && pyType === 'String') {
     47        if (typeof px === 'bigint' && typeof py === 'string') {
    5048                ny = StringToBigInt(py);
    5149                if ($isNaN(ny)) {
     
    5452                return BigIntLessThan(px, ny);
    5553        }
    56         if (pxType === 'String' && pyType === 'BigInt') {
     54        if (typeof px === 'string' && typeof py === 'bigint') {
    5755                nx = StringToBigInt(px);
    5856                if ($isNaN(nx)) {
     
    6462        nx = ToNumeric(px);
    6563        ny = ToNumeric(py);
    66         var nxType = Type(nx);
    67         if (nxType === Type(ny)) {
    68                 return nxType === 'Number' ? NumberLessThan(nx, ny) : BigIntLessThan(nx, ny);
     64        if (Type(nx) === Type(ny)) {
     65                return typeof nx === 'number' ? NumberLessThan(nx, ny) : BigIntLessThan(nx, ny);
    6966        }
    7067
  • imaps-frontend/node_modules/es-abstract/2020/AddEntriesFromIterable.js

    r0c6b92a r79a0317  
    1313var IteratorValue = require('./IteratorValue');
    1414var ThrowCompletion = require('./ThrowCompletion');
    15 var Type = require('./Type');
     15
     16var isObject = require('../helpers/isObject');
    1617
    1718// https://262.ecma-international.org/10.0/#sec-add-entries-from-iterable
     
    3132                }
    3233                var nextItem = IteratorValue(next);
    33                 if (Type(nextItem) !== 'Object') {
     34                if (!isObject(nextItem)) {
    3435                        var error = ThrowCompletion(new $TypeError('iterator next must return an Object, got ' + inspect(nextItem)));
    3536                        return IteratorClose(iteratorRecord, error);
  • imaps-frontend/node_modules/es-abstract/2020/AdvanceStringIndex.js

    r0c6b92a r79a0317  
    33var CodePointAt = require('./CodePointAt');
    44
    5 var isInteger = require('../helpers/isInteger');
    6 var MAX_SAFE_INTEGER = require('../helpers/maxSafeInteger');
    7 
    85var $TypeError = require('es-errors/type');
     6var isInteger = require('math-intrinsics/isInteger');
     7var MAX_SAFE_INTEGER = require('math-intrinsics/constants/maxSafeInteger');
    98
    109// https://262.ecma-international.org/11.0/#sec-advancestringindex
  • imaps-frontend/node_modules/es-abstract/2020/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/2020/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/2020/AsyncFromSyncIteratorContinuation.js

    r0c6b92a r79a0317  
    77var $Promise = GetIntrinsic('%Promise%', true);
    88
    9 var callBound = require('call-bind/callBound');
     9var callBound = require('call-bound');
    1010
    1111var CreateIterResultObject = require('./CreateIterResultObject');
     
    1313var IteratorValue = require('./IteratorValue');
    1414var PromiseResolve = require('./PromiseResolve');
    15 var Type = require('./Type');
     15
     16var isObject = require('../helpers/isObject');
    1617
    1718var $then = callBound('Promise.prototype.then', true);
     
    2021
    2122module.exports = function AsyncFromSyncIteratorContinuation(result) {
    22         if (Type(result) !== 'Object') {
     23        if (!isObject(result)) {
    2324                throw new $TypeError('Assertion failed: Type(O) is not Object');
    2425        }
  • imaps-frontend/node_modules/es-abstract/2020/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/2020/BigIntBitwiseOp.js

    r0c6b92a r79a0317  
    33var $TypeError = require('es-errors/type');
    44// var $BigInt = GetIntrinsic('%BigInt%', true);
    5 // var $pow = GetIntrinsic('%Math.pow%');
     5// var $pow = require('math-intrinsics/pow');
    66
    77// var BinaryAnd = require('./BinaryAnd');
  • imaps-frontend/node_modules/es-abstract/2020/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/2020/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/2020/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/2020/CodePointAt.js

    r0c6b92a r79a0317  
    22
    33var $TypeError = require('es-errors/type');
    4 var callBound = require('call-bind/callBound');
     4var callBound = require('call-bound');
    55var isLeadingSurrogate = require('../helpers/isLeadingSurrogate');
    66var isTrailingSurrogate = require('../helpers/isTrailingSurrogate');
  • imaps-frontend/node_modules/es-abstract/2020/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');
    77var every = require('../helpers/every');
    8 var OwnPropertyKeys = require('../helpers/OwnPropertyKeys');
     8var OwnPropertyKeys = require('own-keys');
    99
    1010var $isEnumerable = callBound('Object.prototype.propertyIsEnumerable');
     
    1414var IsArray = require('./IsArray');
    1515var IsInteger = require('./IsInteger');
    16 var IsPropertyKey = require('./IsPropertyKey');
     16var isPropertyKey = require('../helpers/isPropertyKey');
    1717var SameValue = require('./SameValue');
    1818var ToNumber = require('./ToNumber');
    1919var ToObject = require('./ToObject');
    20 var Type = require('./Type');
     20
     21var isObject = require('../helpers/isObject');
    2122
    2223// https://262.ecma-international.org/11.0/#sec-copydataproperties
    2324
    2425module.exports = function CopyDataProperties(target, source, excludedItems) {
    25         if (Type(target) !== 'Object') {
     26        if (!isObject(target)) {
    2627                throw new $TypeError('Assertion failed: "target" must be an Object');
    2728        }
    2829
    29         if (!IsArray(excludedItems) || !every(excludedItems, IsPropertyKey)) {
     30        if (!IsArray(excludedItems) || !every(excludedItems, isPropertyKey)) {
    3031                throw new $TypeError('Assertion failed: "excludedItems" must be a List of Property Keys');
    3132        }
  • imaps-frontend/node_modules/es-abstract/2020/CreateAsyncFromSyncIterator.js

    r0c6b92a r79a0317  
    1414var IteratorNext = require('./IteratorNext');
    1515var OrdinaryObjectCreate = require('./OrdinaryObjectCreate');
    16 var Type = require('./Type');
    1716
     17var isObject = require('../helpers/isObject');
    1818var isIteratorRecord = require('../helpers/records/iterator-record-2023');
    1919
     
    7070                                result = Call(iteratorReturn, syncIterator); // step 9.a
    7171                        }
    72                         if (Type(result) !== 'Object') { // step 11
     72                        if (!isObject(result)) { // step 11
    7373                                Call(reject, undefined, [new $TypeError('Iterator `return` method returned a non-object value.')]); // step 11.a
    7474                                return;
     
    106106                                result = Call(throwMethod, syncIterator); // step 9.a
    107107                        }
    108                         if (Type(result) !== 'Object') { // step 11
     108                        if (!isObject(result)) { // step 11
    109109                                Call(reject, undefined, [new $TypeError('Iterator `throw` method returned a non-object value.')]); // step 11.a
    110110                                return;
  • imaps-frontend/node_modules/es-abstract/2020/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/2020/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/2020/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/2020/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', 'BigInt', 'Object'];
    1618
    1719// https://262.ecma-international.org/11.0/#sec-createlistfromarraylike
    1820
     21/** @type {(obj: object, elementTypes?: typeof defaultElementTypes) => unknown[]} */
    1922module.exports = function CreateListFromArrayLike(obj) {
    2023        var elementTypes = arguments.length > 1
     
    2225                : defaultElementTypes;
    2326
    24         if (Type(obj) !== 'Object') {
     27        if (!isObject(obj)) {
    2528                throw new $TypeError('Assertion failed: `obj` must be an Object');
    2629        }
     
    2932        }
    3033        var len = LengthOfArrayLike(obj);
     34        /** @type {(typeof elementTypes)[]} */
    3135        var list = [];
    3236        var index = 0;
  • imaps-frontend/node_modules/es-abstract/2020/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/2020/CreateRegExpStringIterator.js

    r0c6b92a r79a0317  
    1616var ToLength = require('./ToLength');
    1717var ToString = require('./ToString');
    18 var Type = require('./Type');
     18
     19var isObject = require('../helpers/isObject');
    1920
    2021var SLOT = require('internal-slot');
     
    4445var RegExpStringIteratorNext = function next() {
    4546        var O = this; // eslint-disable-line no-invalid-this
    46         if (Type(O) !== 'Object') {
     47        if (!isObject(O)) {
    4748                throw new $TypeError('receiver must be an object');
    4849        }
  • imaps-frontend/node_modules/es-abstract/2020/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/2020/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/2020/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/2020/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/2020/FlattenIntoArray.js

    r0c6b92a r79a0317  
    33var $TypeError = require('es-errors/type');
    44
    5 var MAX_SAFE_INTEGER = require('../helpers/maxSafeInteger');
     5var MAX_SAFE_INTEGER = require('math-intrinsics/constants/maxSafeInteger');
    66
    77var Call = require('./Call');
  • imaps-frontend/node_modules/es-abstract/2020/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/2020/GetIterator.js

    r0c6b92a r79a0317  
    1515var GetMethod = require('./GetMethod');
    1616var IsArray = require('./IsArray');
    17 var Type = require('./Type');
     17
     18var isObject = require('../helpers/isObject');
     19
     20var ES = {
     21        AdvanceStringIndex: AdvanceStringIndex,
     22        GetMethod: GetMethod,
     23        IsArray: IsArray
     24};
    1825
    1926// https://262.ecma-international.org/11.0/#sec-getiterator
     
    3845                        }
    3946                } else {
    40                         actualMethod = getIteratorMethod(
    41                                 {
    42                                         AdvanceStringIndex: AdvanceStringIndex,
    43                                         GetMethod: GetMethod,
    44                                         IsArray: IsArray
    45                                 },
    46                                 obj
    47                         );
     47                        actualMethod = getIteratorMethod(ES, obj);
    4848                }
    4949        }
    5050        var iterator = Call(actualMethod, obj);
    51         if (Type(iterator) !== 'Object') {
     51        if (!isObject(iterator)) {
    5252                throw new $TypeError('iterator must return an object');
    5353        }
  • imaps-frontend/node_modules/es-abstract/2020/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/2020/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/2020/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/2020/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/2020/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/2020/GetValueFromBuffer.js

    r0c6b92a r79a0317  
    66var $TypeError = require('es-errors/type');
    77var $Uint8Array = GetIntrinsic('%Uint8Array%', true);
     8var isInteger = require('math-intrinsics/isInteger');
    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/2020/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/2020/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/2020/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/2020/InternalizeJSONProperty.js

    r0c6b92a r79a0317  
    1010var LengthOfArrayLike = require('./LengthOfArrayLike');
    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/11.0/#sec-internalizejsonproperty
    1717
    1818module.exports = function InternalizeJSONProperty(holder, name, reviver) {
    19         if (Type(holder) !== 'Object') {
     19        if (!isObject(holder)) {
    2020                throw new $TypeError('Assertion failed: `holder` is not an Object');
    2121        }
     
    2929        var val = Get(holder, name); // step 1
    3030
    31         if (Type(val) === 'Object') { // step 2
     31        if (isObject(val)) { // step 2
    3232                var isArray = IsArray(val); // step 2.a
    3333                if (isArray) { // step 2.b
  • imaps-frontend/node_modules/es-abstract/2020/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/2020/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/2020/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/2020/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/2020/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/2020/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/2020/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/2020/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/2020/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/2020/IsValidIntegerIndex.js

    r0c6b92a r79a0317  
    55var IsInteger = require('./IsInteger');
    66
    7 var isNegativeZero = require('../helpers/isNegativeZero');
     7var isNegativeZero = require('math-intrinsics/isNegativeZero');
    88
    99var isTypedArray = require('is-typed-array');
  • imaps-frontend/node_modules/es-abstract/2020/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/2020/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/2020/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/2020/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/2020/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/2020/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/2020/LengthOfArrayLike.js

    r0c6b92a r79a0317  
    55var Get = require('./Get');
    66var ToLength = require('./ToLength');
    7 var Type = require('./Type');
     7
     8var isObject = require('../helpers/isObject');
    89
    910// https://262.ecma-international.org/11.0/#sec-lengthofarraylike
    1011
    1112module.exports = function LengthOfArrayLike(obj) {
    12         if (Type(obj) !== 'Object') {
     13        if (!isObject(obj)) {
    1314                throw new $TypeError('Assertion failed: `obj` must be an Object');
    1415        }
  • imaps-frontend/node_modules/es-abstract/2020/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/2020/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/2020/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/2020/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/2020/Number/divide.js

    r0c6b92a r79a0317  
    22
    33var $TypeError = require('es-errors/type');
    4 
    5 var isFinite = require('../../helpers/isFinite');
    6 var isNaN = require('../../helpers/isNaN');
     4var isFinite = require('math-intrinsics/isFinite');
     5var isNaN = require('math-intrinsics/isNaN');
    76
    87// https://262.ecma-international.org/11.0/#sec-numeric-types-number-divide
  • imaps-frontend/node_modules/es-abstract/2020/Number/exponentiate.js

    r0c6b92a r79a0317  
    11'use strict';
    22
    3 var GetIntrinsic = require('get-intrinsic');
    4 // var isNegativeZero = require('is-negative-zero');
    5 
    6 var $pow = GetIntrinsic('%Math.pow%');
     3// var isNegativeZero = require('math-intrinsics/isNegativeZero');
     4var $pow = require('math-intrinsics/pow');
    75
    86var $TypeError = require('es-errors/type');
    97
    108/*
    11 var abs = require('../../helpers/abs');
    12 var isFinite = require('../../helpers/isFinite');
    13 var isNaN = require('../../helpers/isNaN');
     9var abs = require('math-intrinsics/abs');
     10var isFinite = require('math-intrinsics/isFinite');
     11var isNaN = require('math-intrinsics/isNaN');
    1412
    15 var IsInteger = require('../IsInteger');
     13var IsInteger = require('math-intrinsics/isInteger');
    1614*/
    1715
  • imaps-frontend/node_modules/es-abstract/2020/Number/sameValue.js

    r0c6b92a r79a0317  
    11'use strict';
    22
    3 var isNegativeZero = require('is-negative-zero');
    4 
     3var isNegativeZero = require('math-intrinsics/isNegativeZero');
    54var $TypeError = require('es-errors/type');
    65
  • imaps-frontend/node_modules/es-abstract/2020/NumberToBigInt.js

    r0c6b92a r79a0317  
    77var $SyntaxError = require('es-errors/syntax');
    88var $TypeError = require('es-errors/type');
    9 
    10 var isInteger = require('../helpers/isInteger');
     9var isInteger = require('math-intrinsics/isInteger');
    1110
    1211// https://262.ecma-international.org/11.0/#sec-numbertobigint
  • imaps-frontend/node_modules/es-abstract/2020/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/2020/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/2020/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/2020/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/2020/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/2020/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/2020/OrdinaryObjectCreate.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 OrdinaryObjectCreate(proto) {
    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/2020/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/2020/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/2020/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');
    77var isLeadingSurrogate = require('../helpers/isLeadingSurrogate');
     
    99
    1010var $charCodeAt = callBound('String.prototype.charCodeAt');
     11var $strSplit = callBound('String.prototype.split');
    1112
    1213var UnicodeEscape = require('./UnicodeEscape');
     
    3435        var product = '"';
    3536        if (value) {
    36                 forEach(UTF16DecodeString(value), function (C) {
     37                forEach($strSplit(UTF16DecodeString(value), ''), function (C) {
    3738                        if (hasOwn(escapes, C)) {
    3839                                product += escapes[C];
    3940                        } else {
    4041                                var cCharCode = $charCodeAt(C, 0);
    41                                 if (cCharCode < 0x20 || isLeadingSurrogate(C) || isTrailingSurrogate(C)) {
     42                                if (cCharCode < 0x20 || isLeadingSurrogate(cCharCode) || isTrailingSurrogate(cCharCode)) {
    4243                                        product += UnicodeEscape(C);
    4344                                } else {
  • imaps-frontend/node_modules/es-abstract/2020/RawBytesToNumeric.js

    r0c6b92a r79a0317  
    22
    33var GetIntrinsic = require('get-intrinsic');
    4 var callBound = require('call-bind/callBound');
     4var callBound = require('call-bound');
    55
    66var $RangeError = require('es-errors/range');
  • imaps-frontend/node_modules/es-abstract/2020/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/2020/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/2020/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/2020/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/2020/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/2020/SetValueInBuffer.js

    r0c6b92a r79a0317  
    66var $TypeError = require('es-errors/type');
    77var $Uint8Array = GetIntrinsic('%Uint8Array%', true);
    8 
    9 var isInteger = require('../helpers/isInteger');
     8var isInteger = require('math-intrinsics/isInteger');
    109
    1110var IsBigIntElementType = require('./IsBigIntElementType');
     
    6968        }
    7069
    71         // 5. Let block be arrayBuffer’s [[ArrayBufferData]] internal slot.
     70        // 5. Let block be arrayBuffer.[[ArrayBufferData]].
    7271
    7372        var elementSize = tableTAO.size['$' + type]; // step 6
    7473
    75         // 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.
     74        // 7. If isLittleEndian is not present, set isLittleEndian to to the value of the [[LittleEndian]] field of the surrounding agent's Agent Record.
    7675        var isLittleEndian = arguments.length > 6 ? arguments[6] : defaultEndianness === 'little'; // step 8
    7776
  • imaps-frontend/node_modules/es-abstract/2020/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/2020/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/2020/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/2020/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/2020/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/2020/StringPad.js

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

    r0c6b92a r79a0317  
    1111var ToPrimitive = require('./ToPrimitive');
    1212
    13 var isNaN = require('../helpers/isNaN');
     13var isNaN = require('math-intrinsics/isNaN');
    1414
    1515// https://262.ecma-international.org/11.0/#sec-tobigint
  • imaps-frontend/node_modules/es-abstract/2020/ToBigInt64.js

    r0c6b92a r79a0317  
    44
    55var $BigInt = GetIntrinsic('%BigInt%', true);
    6 var $pow = GetIntrinsic('%Math.pow%');
     6var $pow = require('math-intrinsics/pow');
    77
    88var ToBigInt = require('./ToBigInt');
  • imaps-frontend/node_modules/es-abstract/2020/ToBigUint64.js

    r0c6b92a r79a0317  
    44
    55var $BigInt = GetIntrinsic('%BigInt%', true);
    6 var $pow = GetIntrinsic('%Math.pow%');
     6
     7var $pow = require('math-intrinsics/pow');
    78
    89var ToBigInt = require('./ToBigInt');
  • imaps-frontend/node_modules/es-abstract/2020/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/2020/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/2020/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');
     
    4848
    4949        }
    50         return $Number(value);
     50        return +value;
    5151};
  • imaps-frontend/node_modules/es-abstract/2020/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/2020/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/2020/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/2020/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/2020/UTF16DecodeString.js

    r0c6b92a r79a0317  
    33var $TypeError = require('es-errors/type');
    44
    5 var callBound = require('call-bind/callBound');
     5var callBound = require('call-bound');
    66
    77var $push = callBound('Array.prototype.push');
  • imaps-frontend/node_modules/es-abstract/2020/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/2020/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/2020/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/2020/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/2020/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/2020/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/2020/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/11.0/#eqn-floor
  • imaps-frontend/node_modules/es-abstract/2020/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/2020/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/2020/thisBigIntValue.js

    r0c6b92a r79a0317  
    11'use strict';
    22
    3 var callBound = require('call-bind/callBound');
     3var callBound = require('call-bound');
    44
    55var $SyntaxError = require('es-errors/syntax');
    66var $bigIntValueOf = callBound('BigInt.prototype.valueOf', true);
    77
    8 var Type = require('./Type');
    9 
    108// https://262.ecma-international.org/11.0/#sec-thisbigintvalue
    119
    1210module.exports = function thisBigIntValue(value) {
    13         var type = Type(value);
    14         if (type === 'BigInt') {
     11        if (typeof value === 'bigint') {
    1512                return value;
    1613        }
  • imaps-frontend/node_modules/es-abstract/2020/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/2020/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/2020/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/2020/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/2020/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.