Changeset 79a0317 for imaps-frontend/node_modules/es-abstract/2023
- Timestamp:
- 01/21/25 03:08:24 (3 days ago)
- Branches:
- main
- Parents:
- 0c6b92a
- Location:
- imaps-frontend/node_modules/es-abstract/2023
- Files:
-
- 152 edited
Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/es-abstract/2023/AddEntriesFromIterable.js
r0c6b92a r79a0317 13 13 var IteratorValue = require('./IteratorValue'); 14 14 var ThrowCompletion = require('./ThrowCompletion'); 15 var Type = require('./Type'); 15 16 var isObject = require('../helpers/isObject'); 16 17 17 18 // https://262.ecma-international.org/14.0/#sec-add-entries-from-iterable … … 31 32 } 32 33 var nextItem = IteratorValue(next); 33 if ( Type(nextItem) !== 'Object') {34 if (!isObject(nextItem)) { 34 35 var error = ThrowCompletion(new $TypeError('iterator next must return an Object, got ' + inspect(nextItem))); 35 36 return IteratorClose(iteratorRecord, error); -
imaps-frontend/node_modules/es-abstract/2023/AddToKeptObjects.js
r0c6b92a r79a0317 1 1 'use strict'; 2 2 3 var callBound = require('call-b ind/callBound');3 var callBound = require('call-bound'); 4 4 var SLOT = require('internal-slot'); 5 5 … … 7 7 8 8 var ClearKeptObjects = require('./ClearKeptObjects'); 9 var Type = require('./Type'); 9 10 var isObject = require('../helpers/isObject'); 10 11 11 12 var $push = callBound('Array.prototype.push'); … … 14 15 15 16 module.exports = function AddToKeptObjects(object) { 16 if ( Type(object) !== 'Object') {17 if (!isObject(object)) { 17 18 throw new $TypeError('Assertion failed: `object` must be an Object'); 18 19 } -
imaps-frontend/node_modules/es-abstract/2023/AdvanceStringIndex.js
r0c6b92a r79a0317 3 3 var CodePointAt = require('./CodePointAt'); 4 4 5 var isInteger = require('../helpers/isInteger');6 var MAX_SAFE_INTEGER = require('../helpers/maxSafeInteger');7 8 5 var $TypeError = require('es-errors/type'); 6 var isInteger = require('math-intrinsics/isInteger'); 7 var MAX_SAFE_INTEGER = require('math-intrinsics/constants/maxSafeInteger'); 9 8 10 9 // https://262.ecma-international.org/12.0/#sec-advancestringindex -
imaps-frontend/node_modules/es-abstract/2023/ApplyStringOrNumericBinaryOperator.js
r0c6b92a r79a0317 70 70 var lnum = ToNumeric(lval); 71 71 var rnum = ToNumeric(rval); 72 var T = Type(lnum); 73 if (T !== Type(rnum)) { 72 if (Type(lnum) !== Type(rnum)) { 74 73 throw new $TypeError('types of ' + lnum + ' and ' + rnum + ' differ'); 75 74 } 76 var Operation = table[opText][ T === 'BigInt' ? 1 : 0];75 var Operation = table[opText][typeof lnum === 'bigint' ? 1 : 0]; 77 76 return Operation(lnum, rnum); 78 77 }; -
imaps-frontend/node_modules/es-abstract/2023/ArrayCreate.js
r0c6b92a r79a0317 7 7 var $SyntaxError = require('es-errors/syntax'); 8 8 var $TypeError = require('es-errors/type'); 9 10 var isInteger = require('../helpers/isInteger'); 11 12 var MAX_ARRAY_LENGTH = Math.pow(2, 32) - 1; 13 14 var hasProto = require('has-proto')(); 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 ); 9 var isInteger = require('math-intrinsics/isInteger'); 10 var MAX_ARRAY_LENGTH = require('math-intrinsics/constants/maxArrayLength'); 11 var $setProto = require('set-proto'); 24 12 25 13 // https://262.ecma-international.org/12.0/#sec-arraycreate -
imaps-frontend/node_modules/es-abstract/2023/ArraySpeciesCreate.js
r0c6b92a r79a0317 5 5 var $species = GetIntrinsic('%Symbol.species%', true); 6 6 var $TypeError = require('es-errors/type'); 7 var isInteger = require('math-intrinsics/isInteger'); 7 8 8 9 var ArrayCreate = require('./ArrayCreate'); … … 10 11 var IsArray = require('./IsArray'); 11 12 var IsConstructor = require('./IsConstructor'); 12 var Type = require('./Type');13 13 14 var is Integer = require('../helpers/isInteger');14 var isObject = require('../helpers/isObject'); 15 15 16 16 // https://262.ecma-international.org/12.0/#sec-arrayspeciescreate … … 32 32 // Object.getPrototypeOf(Object.getPrototypeOf(Object.getPrototypeOf(Array))) === null ? 33 33 // } 34 if ($species && Type(C) === 'Object') {34 if ($species && isObject(C)) { 35 35 C = Get(C, $species); 36 36 if (C === null) { -
imaps-frontend/node_modules/es-abstract/2023/AsyncFromSyncIteratorContinuation.js
r0c6b92a r79a0317 7 7 var $Promise = GetIntrinsic('%Promise%', true); 8 8 9 var callBound = require('call-b ind/callBound');9 var callBound = require('call-bound'); 10 10 11 11 var CreateIterResultObject = require('./CreateIterResultObject'); … … 13 13 var IteratorValue = require('./IteratorValue'); 14 14 var PromiseResolve = require('./PromiseResolve'); 15 var Type = require('./Type'); 15 16 var isObject = require('../helpers/isObject'); 16 17 17 18 var $then = callBound('Promise.prototype.then', true); … … 20 21 21 22 module.exports = function AsyncFromSyncIteratorContinuation(result) { 22 if ( Type(result) !== 'Object') {23 if (!isObject(result)) { 23 24 throw new $TypeError('Assertion failed: Type(O) is not Object'); 24 25 } -
imaps-frontend/node_modules/es-abstract/2023/AsyncIteratorClose.js
r0c6b92a r79a0317 10 10 var CompletionRecord = require('./CompletionRecord'); 11 11 var GetMethod = require('./GetMethod'); 12 var Type = require('./Type');13 12 13 var isObject = require('../helpers/isObject'); 14 14 var isIteratorRecord = require('../helpers/records/iterator-record-2023'); 15 15 16 var callBound = require('call-b ind/callBound');16 var callBound = require('call-bound'); 17 17 18 18 var $then = callBound('Promise.prototype.then', true); … … 62 62 completion['?'](); // step 6 63 63 } 64 if ( Type(innerResult) !== 'Object') {64 if (!isObject(innerResult)) { 65 65 throw new $TypeError('`innerResult` must be an Object'); // step 10 66 66 } -
imaps-frontend/node_modules/es-abstract/2023/BigInt/toString.js
r0c6b92a r79a0317 3 3 var $SyntaxError = require('es-errors/syntax'); 4 4 var $TypeError = require('es-errors/type'); 5 6 var callBound = require('call-bind/callBound');5 var callBound = require('call-bound'); 6 var isInteger = require('math-intrinsics/isInteger'); 7 7 8 8 var $BigIntToString = callBound('BigInt.prototype.toString', true); 9 10 var isInteger = require('../../helpers/isInteger');11 9 12 10 // https://262.ecma-international.org/14.0/#sec-numeric-types-bigint-tostring -
imaps-frontend/node_modules/es-abstract/2023/BigIntBitwiseOp.js
r0c6b92a r79a0317 3 3 var $TypeError = require('es-errors/type'); 4 4 // var $BigInt = GetIntrinsic('%BigInt%', true); 5 // var $pow = GetIntrinsic('%Math.pow%');5 // var $pow = require('math-intrinsics/pow'); 6 6 7 7 // var BinaryAnd = require('./BinaryAnd'); -
imaps-frontend/node_modules/es-abstract/2023/ByteListBitwiseOp.js
r0c6b92a r79a0317 1 1 'use strict'; 2 2 3 var callBound = require('call-b ind/callBound');3 var callBound = require('call-bound'); 4 4 5 5 var $TypeError = require('es-errors/type'); -
imaps-frontend/node_modules/es-abstract/2023/Call.js
r0c6b92a r79a0317 2 2 3 3 var GetIntrinsic = require('get-intrinsic'); 4 var callBound = require('call-b ind/callBound');4 var callBound = require('call-bound'); 5 5 6 6 var $TypeError = require('es-errors/type'); -
imaps-frontend/node_modules/es-abstract/2023/CanBeHeldWeakly.js
r0c6b92a r79a0317 2 2 3 3 var KeyForSymbol = require('./KeyForSymbol'); 4 var Type = require('./Type'); 4 5 var isObject = require('../helpers/isObject'); 5 6 6 7 // https://262.ecma-international.org/14.0/#sec-canbeheldweakly 7 8 8 9 module.exports = function CanBeHeldWeakly(v) { 9 if ( Type(v) === 'Object') {10 if (isObject(v)) { 10 11 return true; // step 1 11 12 } -
imaps-frontend/node_modules/es-abstract/2023/Canonicalize.js
r0c6b92a r79a0317 3 3 var $TypeError = require('es-errors/type'); 4 4 5 var callBound = require('call-b ind/callBound');5 var callBound = require('call-bound'); 6 6 var hasOwn = require('hasown'); 7 7 -
imaps-frontend/node_modules/es-abstract/2023/CharacterRange.js
r0c6b92a r79a0317 2 2 3 3 var GetIntrinsic = require('get-intrinsic'); 4 var callBound = require('call-b ind/callBound');4 var callBound = require('call-bound'); 5 5 6 6 var $fromCharCode = GetIntrinsic('%String.fromCharCode%'); -
imaps-frontend/node_modules/es-abstract/2023/CloneArrayBuffer.js
r0c6b92a r79a0317 8 8 var OrdinarySetPrototypeOf = require('./OrdinarySetPrototypeOf'); 9 9 10 var isInteger = require('../helpers/isInteger'); 11 10 var isInteger = require('math-intrinsics/isInteger'); 12 11 var isArrayBuffer = require('is-array-buffer'); 13 12 var arrayBufferSlice = require('arraybuffer.prototype.slice'); -
imaps-frontend/node_modules/es-abstract/2023/CodePointAt.js
r0c6b92a r79a0317 2 2 3 3 var $TypeError = require('es-errors/type'); 4 var callBound = require('call-b ind/callBound');4 var callBound = require('call-bound'); 5 5 var isLeadingSurrogate = require('../helpers/isLeadingSurrogate'); 6 6 var isTrailingSurrogate = require('../helpers/isTrailingSurrogate'); -
imaps-frontend/node_modules/es-abstract/2023/CompareArrayElements.js
r0c6b92a r79a0317 8 8 var ToString = require('./ToString'); 9 9 10 var isNaN = require(' ../helpers/isNaN');10 var isNaN = require('math-intrinsics/isNaN'); 11 11 12 12 // https://262.ecma-international.org/14.0/#sec-comparearrayelements -
imaps-frontend/node_modules/es-abstract/2023/CompareTypedArrayElements.js
r0c6b92a r79a0317 7 7 var ToNumber = require('./ToNumber'); 8 8 9 var isNaN = require(' ../helpers/isNaN');9 var isNaN = require('math-intrinsics/isNaN'); 10 10 11 11 // https://262.ecma-international.org/14.0/#sec-comparetypedarrayelements -
imaps-frontend/node_modules/es-abstract/2023/CopyDataProperties.js
r0c6b92a r79a0317 3 3 var $TypeError = require('es-errors/type'); 4 4 5 var callBound = require('call-b ind/callBound');5 var callBound = require('call-bound'); 6 6 var forEach = require('../helpers/forEach'); 7 7 var every = require('../helpers/every'); 8 8 var some = require('../helpers/some'); 9 var OwnPropertyKeys = require(' ../helpers/OwnPropertyKeys');9 var OwnPropertyKeys = require('own-keys'); 10 10 11 11 var $isEnumerable = callBound('Object.prototype.propertyIsEnumerable'); … … 15 15 var IsArray = require('./IsArray'); 16 16 var IsIntegralNumber = require('./IsIntegralNumber'); 17 var IsPropertyKey = require('./IsPropertyKey');17 var isPropertyKey = require('../helpers/isPropertyKey'); 18 18 var SameValue = require('./SameValue'); 19 19 var ToNumber = require('./ToNumber'); 20 20 var ToObject = require('./ToObject'); 21 var Type = require('./Type'); 21 22 var isObject = require('../helpers/isObject'); 22 23 23 24 // https://262.ecma-international.org/12.0/#sec-copydataproperties 24 25 25 26 module.exports = function CopyDataProperties(target, source, excludedItems) { 26 if ( Type(target) !== 'Object') {27 if (!isObject(target)) { 27 28 throw new $TypeError('Assertion failed: "target" must be an Object'); 28 29 } 29 30 30 if (!IsArray(excludedItems) || !every(excludedItems, IsPropertyKey)) {31 if (!IsArray(excludedItems) || !every(excludedItems, isPropertyKey)) { 31 32 throw new $TypeError('Assertion failed: "excludedItems" must be a List of Property Keys'); 32 33 } -
imaps-frontend/node_modules/es-abstract/2023/CreateAsyncFromSyncIterator.js
r0c6b92a r79a0317 14 14 var IteratorNext = require('./IteratorNext'); 15 15 var OrdinaryObjectCreate = require('./OrdinaryObjectCreate'); 16 var Type = require('./Type'); 16 17 var isObject = require('../helpers/isObject'); 18 var isIteratorRecord = require('../helpers/records/iterator-record-2023'); 17 19 18 20 var SLOT = require('internal-slot'); 19 20 var isIteratorRecord = require('../helpers/records/iterator-record-2023');21 21 22 22 var $AsyncFromSyncIteratorPrototype = GetIntrinsic('%AsyncFromSyncIteratorPrototype%', true) || { … … 70 70 result = Call(iteratorReturn, syncIterator); // step 9.a 71 71 } 72 if ( Type(result) !== 'Object') { // step 1172 if (!isObject(result)) { // step 11 73 73 Call(reject, undefined, [new $TypeError('Iterator `return` method returned a non-object value.')]); // step 11.a 74 74 return; … … 106 106 result = Call(throwMethod, syncIterator); // step 9.a 107 107 } 108 if ( Type(result) !== 'Object') { // step 11108 if (!isObject(result)) { // step 11 109 109 Call(reject, undefined, [new $TypeError('Iterator `throw` method returned a non-object value.')]); // step 11.a 110 110 return; -
imaps-frontend/node_modules/es-abstract/2023/CreateDataProperty.js
r0c6b92a r79a0317 3 3 var $TypeError = require('es-errors/type'); 4 4 5 var IsPropertyKey = require('./IsPropertyKey');5 var isPropertyKey = require('../helpers/isPropertyKey'); 6 6 var OrdinaryDefineOwnProperty = require('./OrdinaryDefineOwnProperty'); 7 var Type = require('./Type'); 7 8 var isObject = require('../helpers/isObject'); 8 9 9 10 // https://262.ecma-international.org/6.0/#sec-createdataproperty 10 11 11 12 module.exports = function CreateDataProperty(O, P, V) { 12 if ( Type(O) !== 'Object') {13 if (!isObject(O)) { 13 14 throw new $TypeError('Assertion failed: Type(O) is not Object'); 14 15 } 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'); 17 18 } 18 19 var newDesc = { -
imaps-frontend/node_modules/es-abstract/2023/CreateDataPropertyOrThrow.js
r0c6b92a r79a0317 4 4 5 5 var CreateDataProperty = require('./CreateDataProperty'); 6 var IsPropertyKey = require('./IsPropertyKey'); 7 var Type = require('./Type'); 6 7 var isObject = require('../helpers/isObject'); 8 var isPropertyKey = require('../helpers/isPropertyKey'); 8 9 9 10 // // https://262.ecma-international.org/14.0/#sec-createdatapropertyorthrow 10 11 11 12 module.exports = function CreateDataPropertyOrThrow(O, P, V) { 12 if ( Type(O) !== 'Object') {13 if (!isObject(O)) { 13 14 throw new $TypeError('Assertion failed: Type(O) is not Object'); 14 15 } 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'); 17 18 } 18 19 var success = CreateDataProperty(O, P, V); -
imaps-frontend/node_modules/es-abstract/2023/CreateHTML.js
r0c6b92a r79a0317 3 3 var $TypeError = require('es-errors/type'); 4 4 5 var callBound = require('call-b ind/callBound');5 var callBound = require('call-bound'); 6 6 7 7 var $replace = callBound('String.prototype.replace'); -
imaps-frontend/node_modules/es-abstract/2023/CreateListFromArrayLike.js
r0c6b92a r79a0317 1 1 'use strict'; 2 2 3 var callBound = require('call-b ind/callBound');3 var callBound = require('call-bound'); 4 4 5 5 var $TypeError = require('es-errors/type'); … … 13 13 var Type = require('./Type'); 14 14 15 var isObject = require('../helpers/isObject'); 16 15 17 var defaultElementTypes = ['Undefined', 'Null', 'Boolean', 'String', 'Symbol', 'Number', 'BigInt', 'Object']; 16 18 … … 22 24 : defaultElementTypes; 23 25 24 if ( Type(obj) !== 'Object') {26 if (!isObject(obj)) { 25 27 throw new $TypeError('Assertion failed: `obj` must be an Object'); 26 28 } -
imaps-frontend/node_modules/es-abstract/2023/CreateMethodProperty.js
r0c6b92a r79a0317 7 7 var FromPropertyDescriptor = require('./FromPropertyDescriptor'); 8 8 var IsDataDescriptor = require('./IsDataDescriptor'); 9 var IsPropertyKey = require('./IsPropertyKey');9 var isPropertyKey = require('../helpers/isPropertyKey'); 10 10 var SameValue = require('./SameValue'); 11 var Type = require('./Type'); 11 12 var isObject = require('../helpers/isObject'); 12 13 13 14 // https://262.ecma-international.org/6.0/#sec-createmethodproperty 14 15 15 16 module.exports = function CreateMethodProperty(O, P, V) { 16 if ( Type(O) !== 'Object') {17 if (!isObject(O)) { 17 18 throw new $TypeError('Assertion failed: Type(O) is not Object'); 18 19 } 19 20 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'); 22 23 } 23 24 -
imaps-frontend/node_modules/es-abstract/2023/CreateNonEnumerableDataPropertyOrThrow.js
r0c6b92a r79a0317 4 4 5 5 var DefinePropertyOrThrow = require('./DefinePropertyOrThrow'); 6 var IsPropertyKey = require('./IsPropertyKey'); 7 var Type = require('./Type'); 6 7 var isObject = require('../helpers/isObject'); 8 var isPropertyKey = require('../helpers/isPropertyKey'); 8 9 9 10 // https://262.ecma-international.org/13.0/#sec-createnonenumerabledatapropertyorthrow 10 11 11 12 module.exports = function CreateNonEnumerableDataPropertyOrThrow(O, P, V) { 12 if ( Type(O) !== 'Object') {13 if (!isObject(O)) { 13 14 throw new $TypeError('Assertion failed: Type(O) is not Object'); 14 15 } 15 16 16 if (! IsPropertyKey(P)) {17 throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true');17 if (!isPropertyKey(P)) { 18 throw new $TypeError('Assertion failed: P is not a Property Key'); 18 19 } 19 20 -
imaps-frontend/node_modules/es-abstract/2023/CreateRegExpStringIterator.js
r0c6b92a r79a0317 16 16 var ToLength = require('./ToLength'); 17 17 var ToString = require('./ToString'); 18 var Type = require('./Type'); 18 19 var isObject = require('../helpers/isObject'); 19 20 20 21 var SLOT = require('internal-slot'); … … 44 45 var RegExpStringIteratorNext = function next() { 45 46 var O = this; // eslint-disable-line no-invalid-this 46 if ( Type(O) !== 'Object') {47 if (!isObject(O)) { 47 48 throw new $TypeError('receiver must be an object'); 48 49 } -
imaps-frontend/node_modules/es-abstract/2023/DateString.js
r0c6b92a r79a0317 6 6 var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; 7 7 8 var $isNaN = require(' ../helpers/isNaN');8 var $isNaN = require('math-intrinsics/isNaN'); 9 9 var padTimeComponent = require('../helpers/padTimeComponent'); 10 10 -
imaps-frontend/node_modules/es-abstract/2023/DefineMethodProperty.js
r0c6b92a r79a0317 5 5 var DefinePropertyOrThrow = require('./DefinePropertyOrThrow'); 6 6 var IsExtensible = require('./IsExtensible'); 7 var IsPropertyKey = require('./IsPropertyKey'); 8 var Type = require('./Type'); 7 8 var isObject = require('../helpers/isObject'); 9 var isPropertyKey = require('../helpers/isPropertyKey'); 9 10 10 11 // https://262.ecma-international.org/13.0/#sec-definemethodproperty 11 12 12 13 module.exports = function DefineMethodProperty(homeObject, key, closure, enumerable) { 13 if ( Type(homeObject) !== 'Object') {14 if (!isObject(homeObject)) { 14 15 throw new $TypeError('Assertion failed: `homeObject` is not an Object'); 15 16 } 16 if (! IsPropertyKey(key)) {17 if (!isPropertyKey(key)) { 17 18 throw new $TypeError('Assertion failed: `key` is not a Property Key or a Private Name'); 18 19 } -
imaps-frontend/node_modules/es-abstract/2023/DefinePropertyOrThrow.js
r0c6b92a r79a0317 8 8 var FromPropertyDescriptor = require('./FromPropertyDescriptor'); 9 9 var IsDataDescriptor = require('./IsDataDescriptor'); 10 var IsPropertyKey = require('./IsPropertyKey');10 var isPropertyKey = require('../helpers/isPropertyKey'); 11 11 var SameValue = require('./SameValue'); 12 12 var ToPropertyDescriptor = require('./ToPropertyDescriptor'); 13 var Type = require('./Type'); 13 14 var isObject = require('../helpers/isObject'); 14 15 15 16 // https://262.ecma-international.org/6.0/#sec-definepropertyorthrow 16 17 17 18 module.exports = function DefinePropertyOrThrow(O, P, desc) { 18 if ( Type(O) !== 'Object') {19 if (!isObject(O)) { 19 20 throw new $TypeError('Assertion failed: Type(O) is not Object'); 20 21 } 21 22 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'); 24 25 } 25 26 -
imaps-frontend/node_modules/es-abstract/2023/DeletePropertyOrThrow.js
r0c6b92a r79a0317 3 3 var $TypeError = require('es-errors/type'); 4 4 5 var IsPropertyKey = require('./IsPropertyKey');6 var Type = require('./Type');5 var isObject = require('../helpers/isObject'); 6 var isPropertyKey = require('../helpers/isPropertyKey'); 7 7 8 8 // https://262.ecma-international.org/6.0/#sec-deletepropertyorthrow 9 9 10 10 module.exports = function DeletePropertyOrThrow(O, P) { 11 if ( Type(O) !== 'Object') {11 if (!isObject(O)) { 12 12 throw new $TypeError('Assertion failed: Type(O) is not Object'); 13 13 } 14 14 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'); 17 17 } 18 18 -
imaps-frontend/node_modules/es-abstract/2023/EnumerableOwnProperties.js
r0c6b92a r79a0317 1 1 'use strict'; 2 3 var GetIntrinsic = require('get-intrinsic');4 2 5 3 var $TypeError = require('es-errors/type'); 6 4 7 5 var objectKeys = require('object-keys'); 8 9 var callBound = require('call-bind/callBound'); 10 11 var callBind = require('call-bind'); 6 var safePushApply = require('safe-push-apply'); 7 var callBound = require('call-bound'); 12 8 13 9 var $isEnumerable = callBound('Object.prototype.propertyIsEnumerable'); 14 var $pushApply = callBind.apply(GetIntrinsic('%Array.prototype.push%'));15 10 16 11 var forEach = require('../helpers/forEach'); 17 18 var Type = require('./Type'); 12 var isObject = require('../helpers/isObject'); 19 13 20 14 // https://262.ecma-international.org/14.0/#sec-enumerableownproperties 21 15 22 16 module.exports = function EnumerableOwnProperties(O, kind) { 23 if ( Type(O) !== 'Object') {17 if (!isObject(O)) { 24 18 throw new $TypeError('Assertion failed: Type(O) is not Object'); 25 19 } … … 33 27 forEach(keys, function (key) { 34 28 if ($isEnumerable(O, key)) { 35 $pushApply(results, [29 safePushApply(results, [ 36 30 kind === 'value' ? O[key] : [key, O[key]] 37 31 ]); -
imaps-frontend/node_modules/es-abstract/2023/FindViaPredicate.js
r0c6b92a r79a0317 2 2 3 3 var $TypeError = require('es-errors/type'); 4 var isInteger = require('math-intrinsics/isInteger'); 4 5 5 6 var Call = require('./Call'); … … 8 9 var IsCallable = require('./IsCallable'); 9 10 var ToString = require('./ToString'); 10 var Type = require('./Type');11 11 12 var isInteger = require('../helpers/isInteger'); 12 var isObject = require('../helpers/isObject'); 13 14 // https://262.ecma-international.org/14.0/#sec-findviapredicate 13 15 14 16 module.exports = function FindViaPredicate(O, len, direction, predicate, thisArg) { 15 if ( Type(O) !== 'Object') {17 if (!isObject(O)) { 16 18 throw new $TypeError('Assertion failed: Type(O) is not Object'); 17 19 } -
imaps-frontend/node_modules/es-abstract/2023/FlattenIntoArray.js
r0c6b92a r79a0317 3 3 var $TypeError = require('es-errors/type'); 4 4 5 var MAX_SAFE_INTEGER = require(' ../helpers/maxSafeInteger');5 var MAX_SAFE_INTEGER = require('math-intrinsics/constants/maxSafeInteger'); 6 6 7 7 var Call = require('./Call'); -
imaps-frontend/node_modules/es-abstract/2023/Get.js
r0c6b92a r79a0317 5 5 var inspect = require('object-inspect'); 6 6 7 var IsPropertyKey = require('./IsPropertyKey');8 var Type = require('./Type');7 var isObject = require('../helpers/isObject'); 8 var isPropertyKey = require('../helpers/isPropertyKey'); 9 9 10 10 // https://262.ecma-international.org/6.0/#sec-get-o-p … … 12 12 module.exports = function Get(O, P) { 13 13 // 7.3.1.1 14 if ( Type(O) !== 'Object') {14 if (!isObject(O)) { 15 15 throw new $TypeError('Assertion failed: Type(O) is not Object'); 16 16 } 17 17 // 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)); 20 20 } 21 21 // 7.3.1.3 -
imaps-frontend/node_modules/es-abstract/2023/GetIterator.js
r0c6b92a r79a0317 17 17 var getIteratorMethod = require('../helpers/getIteratorMethod'); 18 18 19 var ES = { 20 AdvanceStringIndex: AdvanceStringIndex, 21 GetMethod: GetMethod, 22 IsArray: IsArray 23 }; 24 19 25 // https://262.ecma-international.org/14.0/#sec-getiterator 20 26 … … 32 38 if (typeof method === 'undefined') { // step 1.b 33 39 // var syncMethod = GetMethod(obj, $iterator); // step 1.b.i 34 var syncMethod = getIteratorMethod( 35 { 36 AdvanceStringIndex: AdvanceStringIndex, 37 GetMethod: GetMethod, 38 IsArray: IsArray 39 }, 40 obj 41 ); 40 var syncMethod = getIteratorMethod(ES, obj); 42 41 if (kind === 'async') { 43 42 if (typeof syncMethod === 'undefined') { -
imaps-frontend/node_modules/es-abstract/2023/GetIteratorFromMethod.js
r0c6b92a r79a0317 6 6 var GetV = require('./GetV'); 7 7 var IsCallable = require('./IsCallable'); 8 var Type = require('./Type'); 8 9 var isObject = require('../helpers/isObject'); 9 10 10 11 // https://262.ecma-international.org/14.0/#sec-getiteratorfrommethod … … 16 17 17 18 var iterator = Call(method, obj); // step 1 18 if ( Type(iterator) !== 'Object') {19 if (!isObject(iterator)) { 19 20 throw new $TypeError('iterator must return an object'); // step 2 20 21 } -
imaps-frontend/node_modules/es-abstract/2023/GetMethod.js
r0c6b92a r79a0317 5 5 var GetV = require('./GetV'); 6 6 var IsCallable = require('./IsCallable'); 7 var IsPropertyKey = require('./IsPropertyKey');7 var isPropertyKey = require('../helpers/isPropertyKey'); 8 8 9 9 var inspect = require('object-inspect'); … … 13 13 module.exports = function GetMethod(O, P) { 14 14 // 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'); 17 17 } 18 18 -
imaps-frontend/node_modules/es-abstract/2023/GetOwnPropertyKeys.js
r0c6b92a r79a0317 11 11 var keys = require('object-keys'); 12 12 13 var esType = require('./Type');13 var isObject = require('../helpers/isObject'); 14 14 15 15 // https://262.ecma-international.org/6.0/#sec-getownpropertykeys 16 16 17 17 module.exports = function GetOwnPropertyKeys(O, Type) { 18 if ( esType(O) !== 'Object') {18 if (!isObject(O)) { 19 19 throw new $TypeError('Assertion failed: Type(O) is not Object'); 20 20 } -
imaps-frontend/node_modules/es-abstract/2023/GetPrototypeFromConstructor.js
r0c6b92a r79a0317 9 9 var Get = require('./Get'); 10 10 var IsConstructor = require('./IsConstructor'); 11 var Type = require('./Type'); 11 12 var isObject = require('../helpers/isObject'); 12 13 13 14 // https://262.ecma-international.org/6.0/#sec-getprototypefromconstructor … … 15 16 module.exports = function GetPrototypeFromConstructor(constructor, intrinsicDefaultProto) { 16 17 var intrinsic = GetIntrinsic(intrinsicDefaultProto); // throws if not a valid intrinsic 17 if ( Type(intrinsic) !== 'Object') {18 if (!isObject(intrinsic)) { 18 19 throw new $TypeError('intrinsicDefaultProto must be an object'); 19 20 } … … 22 23 } 23 24 var proto = Get(constructor, 'prototype'); 24 if ( Type(proto) !== 'Object') {25 if (!isObject(proto)) { 25 26 if (!(constructor instanceof $Function)) { 26 27 // ignore other realms, for now -
imaps-frontend/node_modules/es-abstract/2023/GetStringIndex.js
r0c6b92a r79a0317 1 1 'use strict'; 2 2 3 var callBound = require('call-bind/callBound'); 4 3 var callBound = require('call-bound'); 5 4 var $TypeError = require('es-errors/type'); 5 var isInteger = require('math-intrinsics/isInteger'); 6 6 7 7 var StringToCodePoints = require('./StringToCodePoints'); 8 9 var isInteger = require('../helpers/isInteger');10 8 11 9 var $indexOf = callBound('String.prototype.indexOf'); -
imaps-frontend/node_modules/es-abstract/2023/GetSubstitution.js
r0c6b92a r79a0317 2 2 3 3 var $TypeError = require('es-errors/type'); 4 4 var inspect = require('object-inspect'); 5 var isInteger = require('math-intrinsics/isInteger'); 5 6 var regexTester = require('safe-regex-test'); 6 var every = require('../helpers/every');7 8 var inspect = require('object-inspect');9 7 10 8 var Get = require('./Get'); … … 15 13 var substring = require('./substring'); 16 14 var ToString = require('./ToString'); 17 var Type = require('./Type');18 15 19 var isInteger = require('../helpers/isInteger'); 16 var every = require('../helpers/every'); 17 var isObject = require('../helpers/isObject'); 18 var isPrefixOf = require('../helpers/isPrefixOf'); 20 19 var isStringOrUndefined = require('../helpers/isStringOrUndefined'); 21 var isPrefixOf = require('../helpers/isPrefixOf');22 20 23 21 var startsWithDollarDigit = regexTester(/^\$[0-9]/); … … 44 42 } 45 43 46 if (typeof namedCaptures !== 'undefined' && Type(namedCaptures) !== 'Object') {44 if (typeof namedCaptures !== 'undefined' && !isObject(namedCaptures)) { 47 45 throw new $TypeError('Assertion failed: `namedCaptures` must be `undefined` or an Object'); 48 46 } … … 115 113 ref = substring(templateRemainder, 0, gtPos + 1); // step 5.g.iii.1 116 114 var groupName = substring(templateRemainder, 2, gtPos); // step 5.g.iii.2 117 if ( Type(namedCaptures) !== 'Object') {115 if (!isObject(namedCaptures)) { 118 116 throw new $TypeError('Assertion failed: Type(namedCaptures) is not Object'); // step 5.g.iii.3 119 117 } -
imaps-frontend/node_modules/es-abstract/2023/GetV.js
r0c6b92a r79a0317 5 5 var inspect = require('object-inspect'); 6 6 7 var IsPropertyKey = require('./IsPropertyKey');7 var isPropertyKey = require('../helpers/isPropertyKey'); 8 8 // var ToObject = require('./ToObject'); 9 9 … … 12 12 module.exports = function GetV(V, P) { 13 13 // 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)); 16 16 } 17 17 -
imaps-frontend/node_modules/es-abstract/2023/GetValueFromBuffer.js
r0c6b92a r79a0317 6 6 var $TypeError = require('es-errors/type'); 7 7 var $Uint8Array = GetIntrinsic('%Uint8Array%', true); 8 var isInteger = require('math-intrinsics/isInteger'); 8 9 9 var callBound = require('call-b ind/callBound');10 var callBound = require('call-bound'); 10 11 11 12 var $slice = callBound('Array.prototype.slice'); 12 13 var isInteger = require('../helpers/isInteger');14 13 15 14 var IsDetachedBuffer = require('./IsDetachedBuffer'); -
imaps-frontend/node_modules/es-abstract/2023/HasOwnProperty.js
r0c6b92a r79a0317 5 5 var hasOwn = require('hasown'); 6 6 7 var IsPropertyKey = require('./IsPropertyKey');8 var Type = require('./Type');7 var isObject = require('../helpers/isObject'); 8 var isPropertyKey = require('../helpers/isPropertyKey'); 9 9 10 10 // https://262.ecma-international.org/6.0/#sec-hasownproperty 11 11 12 12 module.exports = function HasOwnProperty(O, P) { 13 if ( Type(O) !== 'Object') {13 if (!isObject(O)) { 14 14 throw new $TypeError('Assertion failed: `O` must be an Object'); 15 15 } 16 if (! IsPropertyKey(P)) {16 if (!isPropertyKey(P)) { 17 17 throw new $TypeError('Assertion failed: `P` must be a Property Key'); 18 18 } -
imaps-frontend/node_modules/es-abstract/2023/HasProperty.js
r0c6b92a r79a0317 3 3 var $TypeError = require('es-errors/type'); 4 4 5 var IsPropertyKey = require('./IsPropertyKey');6 var Type = require('./Type');5 var isObject = require('../helpers/isObject'); 6 var isPropertyKey = require('../helpers/isPropertyKey'); 7 7 8 8 // https://262.ecma-international.org/6.0/#sec-hasproperty 9 9 10 10 module.exports = function HasProperty(O, P) { 11 if ( Type(O) !== 'Object') {11 if (!isObject(O)) { 12 12 throw new $TypeError('Assertion failed: `O` must be an Object'); 13 13 } 14 if (! IsPropertyKey(P)) {14 if (!isPropertyKey(P)) { 15 15 throw new $TypeError('Assertion failed: `P` must be a Property Key'); 16 16 } -
imaps-frontend/node_modules/es-abstract/2023/InstallErrorCause.js
r0c6b92a r79a0317 6 6 var Get = require('./Get'); 7 7 var HasProperty = require('./HasProperty'); 8 var Type = require('./Type'); 8 9 var isObject = require('../helpers/isObject'); 9 10 10 11 // https://262.ecma-international.org/13.0/#sec-installerrorcause 11 12 12 13 module.exports = function InstallErrorCause(O, options) { 13 if ( Type(O) !== 'Object') {14 if (!isObject(O)) { 14 15 throw new $TypeError('Assertion failed: Type(O) is not Object'); 15 16 } 16 17 17 if ( Type(options) === 'Object'&& HasProperty(options, 'cause')) {18 if (isObject(options) && HasProperty(options, 'cause')) { 18 19 var cause = Get(options, 'cause'); 19 20 CreateNonEnumerableDataPropertyOrThrow(O, 'cause', cause); -
imaps-frontend/node_modules/es-abstract/2023/InstanceofOperator.js
r0c6b92a r79a0317 5 5 var $TypeError = require('es-errors/type'); 6 6 7 var $hasInstance = GetIntrinsic(' Symbol.hasInstance', true);7 var $hasInstance = GetIntrinsic('%Symbol.hasInstance%', true); 8 8 9 9 var Call = require('./Call'); … … 12 12 var OrdinaryHasInstance = require('./OrdinaryHasInstance'); 13 13 var ToBoolean = require('./ToBoolean'); 14 var Type = require('./Type'); 14 15 var isObject = require('../helpers/isObject'); 15 16 16 17 // https://262.ecma-international.org/6.0/#sec-instanceofoperator 17 18 18 19 module.exports = function InstanceofOperator(O, C) { 19 if ( Type(O) !== 'Object') {20 if (!isObject(O)) { 20 21 throw new $TypeError('Assertion failed: Type(O) is not Object'); 21 22 } -
imaps-frontend/node_modules/es-abstract/2023/InternalizeJSONProperty.js
r0c6b92a r79a0317 10 10 var LengthOfArrayLike = require('./LengthOfArrayLike'); 11 11 var ToString = require('./ToString'); 12 var Type = require('./Type');13 12 14 13 var forEach = require('../helpers/forEach'); 14 var isObject = require('../helpers/isObject'); 15 15 16 16 // https://262.ecma-international.org/14.0/#sec-internalizejsonproperty … … 19 19 20 20 module.exports = function InternalizeJSONProperty(holder, name, reviver) { 21 if ( Type(holder) !== 'Object') {21 if (!isObject(holder)) { 22 22 throw new $TypeError('Assertion failed: `holder` is not an Object'); 23 23 } … … 31 31 var val = Get(holder, name); // step 1 32 32 33 if ( Type(val) === 'Object') { // step 233 if (isObject(val)) { // step 2 34 34 var isArray = IsArray(val); // step 2.a 35 35 if (isArray) { // step 2.b -
imaps-frontend/node_modules/es-abstract/2023/Invoke.js
r0c6b92a r79a0317 6 6 var IsArray = require('./IsArray'); 7 7 var GetV = require('./GetV'); 8 var IsPropertyKey = require('./IsPropertyKey');8 var isPropertyKey = require('../helpers/isPropertyKey'); 9 9 10 10 // https://262.ecma-international.org/6.0/#sec-invoke 11 11 12 12 module.exports = function Invoke(O, P) { 13 if (! IsPropertyKey(P)) {13 if (!isPropertyKey(P)) { 14 14 throw new $TypeError('Assertion failed: P must be a Property Key'); 15 15 } -
imaps-frontend/node_modules/es-abstract/2023/IsConcatSpreadable.js
r0c6b92a r79a0317 8 8 var IsArray = require('./IsArray'); 9 9 var ToBoolean = require('./ToBoolean'); 10 var Type = require('./Type'); 10 11 var isObject = require('../helpers/isObject'); 11 12 12 13 // https://262.ecma-international.org/6.0/#sec-isconcatspreadable 13 14 14 15 module.exports = function IsConcatSpreadable(O) { 15 if ( Type(O) !== 'Object') {16 if (!isObject(O)) { 16 17 return false; 17 18 } -
imaps-frontend/node_modules/es-abstract/2023/IsDetachedBuffer.js
r0c6b92a r79a0317 5 5 var $byteLength = require('array-buffer-byte-length'); 6 6 var availableTypedArrays = require('available-typed-arrays')(); 7 var callBound = require('call-b ind/callBound');7 var callBound = require('call-bound'); 8 8 var isArrayBuffer = require('is-array-buffer'); 9 9 var isSharedArrayBuffer = require('is-shared-array-buffer'); -
imaps-frontend/node_modules/es-abstract/2023/IsIntegralNumber.js
r0c6b92a r79a0317 3 3 var truncate = require('./truncate'); 4 4 5 var $isFinite = require(' ../helpers/isFinite');5 var $isFinite = require('math-intrinsics/isFinite'); 6 6 7 7 // https://262.ecma-international.org/14.0/#sec-isintegralnumber -
imaps-frontend/node_modules/es-abstract/2023/IsLessThan.js
r0c6b92a r79a0317 5 5 var $Number = GetIntrinsic('%Number%'); 6 6 var $TypeError = require('es-errors/type'); 7 var min = GetIntrinsic('%Math.min%'); 7 var min = require('math-intrinsics/min'); 8 var $isNaN = require('math-intrinsics/isNaN'); 8 9 9 var $isNaN = require('../helpers/isNaN'); 10 var $charCodeAt = require('call-bind/callBound')('String.prototype.charCodeAt'); 10 var $charCodeAt = require('call-bound')('String.prototype.charCodeAt'); 11 11 12 12 var StringToBigInt = require('./StringToBigInt'); -
imaps-frontend/node_modules/es-abstract/2023/IsLooselyEqual.js
r0c6b92a r79a0317 1 1 'use strict'; 2 2 3 var isFinite = require(' ../helpers/isFinite');3 var isFinite = require('math-intrinsics/isFinite'); 4 4 5 5 var IsStrictlyEqual = require('./IsStrictlyEqual'); … … 9 9 var Type = require('./Type'); 10 10 11 var isObject = require('../helpers/isObject'); 12 11 13 // https://262.ecma-international.org/13.0/#sec-islooselyequal 12 14 13 15 module.exports = function IsLooselyEqual(x, y) { 14 var xType = Type(x); 15 var yType = Type(y); 16 if (xType === yType) { 16 if (Type(x) === Type(y)) { 17 17 return IsStrictlyEqual(x, y); 18 18 } … … 20 20 return true; 21 21 } 22 if ( xType === 'Number' && yType === 'String') {22 if (typeof x === 'number' && typeof y === 'string') { 23 23 return IsLooselyEqual(x, ToNumber(y)); 24 24 } 25 if ( xType === 'String' && yType === 'Number') {25 if (typeof x === 'string' && typeof y === 'number') { 26 26 return IsLooselyEqual(ToNumber(x), y); 27 27 } 28 if ( xType === 'BigInt' && yType === 'String') {28 if (typeof x === 'bigint' && typeof y === 'string') { 29 29 var n = StringToBigInt(y); 30 30 if (typeof n === 'undefined') { … … 33 33 return IsLooselyEqual(x, n); 34 34 } 35 if ( xType === 'String' && yType === 'BigInt') {35 if (typeof x === 'string' && typeof y === 'bigint') { 36 36 return IsLooselyEqual(y, x); 37 37 } 38 if ( xType === 'Boolean') {38 if (typeof x === 'boolean') { 39 39 return IsLooselyEqual(ToNumber(x), y); 40 40 } 41 if ( yType === 'Boolean') {41 if (typeof y === 'boolean') { 42 42 return IsLooselyEqual(x, ToNumber(y)); 43 43 } 44 if (( xType === 'String' || xType === 'Number' || xType === 'Symbol' || xType === 'BigInt') && yType === 'Object') {44 if ((typeof x === 'string' || typeof x === 'number' || typeof x === 'symbol' || typeof x === 'bigint') && isObject(y)) { 45 45 return IsLooselyEqual(x, ToPrimitive(y)); 46 46 } 47 if ( xType === 'Object' && (yType === 'String' || yType === 'Number' || yType === 'Symbol' || yType === 'BigInt')) {47 if (isObject(x) && (typeof y === 'string' || typeof y === 'number' || typeof y === 'symbol' || typeof y === 'bigint')) { 48 48 return IsLooselyEqual(ToPrimitive(x), y); 49 49 } 50 if (( xType === 'BigInt' && yType === 'Number') || (xType === 'Number' && yType === 'BigInt')) {50 if ((typeof x === 'bigint' && typeof y === 'number') || (typeof x === 'number' && typeof y === 'bigint')) { 51 51 if (!isFinite(x) || !isFinite(y)) { 52 52 return false; -
imaps-frontend/node_modules/es-abstract/2023/IsPromise.js
r0c6b92a r79a0317 1 1 'use strict'; 2 2 3 var callBound = require('call-b ind/callBound');3 var callBound = require('call-bound'); 4 4 5 5 var $PromiseThen = callBound('Promise.prototype.then', true); 6 6 7 var Type = require('./Type');7 var isObject = require('../helpers/isObject'); 8 8 9 9 // https://262.ecma-international.org/6.0/#sec-ispromise 10 10 11 11 module.exports = function IsPromise(x) { 12 if ( Type(x) !== 'Object') {12 if (!isObject(x)) { 13 13 return false; 14 14 } -
imaps-frontend/node_modules/es-abstract/2023/IsPropertyKey.js
r0c6b92a r79a0317 1 1 'use strict'; 2 3 var isPropertyKey = require('../helpers/isPropertyKey'); 2 4 3 5 // https://262.ecma-international.org/6.0/#sec-ispropertykey 4 6 5 7 module.exports = function IsPropertyKey(argument) { 6 return typeof argument === 'string' || typeof argument === 'symbol';8 return isPropertyKey(argument); 7 9 }; -
imaps-frontend/node_modules/es-abstract/2023/IsRegExp.js
r0c6b92a r79a0317 9 9 var ToBoolean = require('./ToBoolean'); 10 10 11 var isObject = require('../helpers/isObject'); 12 11 13 // https://262.ecma-international.org/6.0/#sec-isregexp 12 14 13 15 module.exports = function IsRegExp(argument) { 14 if (! argument || typeof argument !== 'object') {16 if (!isObject(argument)) { 15 17 return false; 16 18 } -
imaps-frontend/node_modules/es-abstract/2023/IsSharedArrayBuffer.js
r0c6b92a r79a0317 3 3 var $TypeError = require('es-errors/type'); 4 4 5 var Type = require('./Type');5 var isObject = require('../helpers/isObject'); 6 6 7 7 var isSharedArrayBuffer = require('is-shared-array-buffer'); … … 10 10 11 11 module.exports = function IsSharedArrayBuffer(obj) { 12 if ( Type(obj) !== 'Object') {12 if (!isObject(obj)) { 13 13 throw new $TypeError('Assertion failed: Type(O) is not Object'); 14 14 } -
imaps-frontend/node_modules/es-abstract/2023/IsStrictlyEqual.js
r0c6b92a r79a0317 8 8 9 9 module.exports = function IsStrictlyEqual(x, y) { 10 var xType = Type(x); 11 var yType = Type(y); 12 if (xType !== yType) { 10 if (Type(x) !== Type(y)) { 13 11 return false; 14 12 } 15 return xType === 'Number' ? NumberEqual(x, y) : SameValueNonNumber(x, y);13 return typeof x === 'number' ? NumberEqual(x, y) : SameValueNonNumber(x, y); 16 14 }; -
imaps-frontend/node_modules/es-abstract/2023/IsValidIntegerIndex.js
r0c6b92a r79a0317 2 2 3 3 var $TypeError = require('es-errors/type'); 4 var isNegativeZero = require('math-intrinsics/isNegativeZero'); 4 5 5 6 var IsDetachedBuffer = require('./IsDetachedBuffer'); 6 7 var IsIntegralNumber = require('./IsIntegralNumber'); 7 8 var isNegativeZero = require('../helpers/isNegativeZero');9 8 10 9 var typedArrayBuffer = require('typed-array-buffer'); -
imaps-frontend/node_modules/es-abstract/2023/IsWordChar.js
r0c6b92a r79a0317 2 2 3 3 var $TypeError = require('es-errors/type'); 4 5 var callBound = require('call-bind/callBound');4 var callBound = require('call-bound'); 5 var isInteger = require('math-intrinsics/isInteger'); 6 6 7 7 var $indexOf = callBound('String.prototype.indexOf'); … … 11 11 12 12 var every = require('../helpers/every'); 13 var isInteger = require('../helpers/isInteger');14 13 var isRegExpRecord = require('../helpers/records/regexp-record'); 15 14 -
imaps-frontend/node_modules/es-abstract/2023/IteratorClose.js
r0c6b92a r79a0317 7 7 var GetMethod = require('./GetMethod'); 8 8 var IsCallable = require('./IsCallable'); 9 var Type = require('./Type');10 9 10 var isObject = require('../helpers/isObject'); 11 11 var isIteratorRecord = require('../helpers/records/iterator-record-2023'); 12 12 … … 17 17 throw new $TypeError('Assertion failed: `iteratorRecord` must be an Iterator Record'); // step 1 18 18 } 19 if ( Type(iteratorRecord['[[Iterator]]']) !== 'Object') {19 if (!isObject(iteratorRecord['[[Iterator]]'])) { 20 20 throw new $TypeError('Assertion failed: iteratorRecord.[[Iterator]] must be an Object'); // step 1 21 21 } … … 55 55 completionThunk = null; // ensure it's not called twice. 56 56 57 if ( Type(innerResult) !== 'Object') {57 if (!isObject(innerResult)) { 58 58 throw new $TypeError('iterator .return must return an object'); 59 59 } -
imaps-frontend/node_modules/es-abstract/2023/IteratorComplete.js
r0c6b92a r79a0317 5 5 var Get = require('./Get'); 6 6 var ToBoolean = require('./ToBoolean'); 7 var Type = require('./Type'); 7 8 var isObject = require('../helpers/isObject'); 8 9 9 10 // https://262.ecma-international.org/6.0/#sec-iteratorcomplete 10 11 11 12 module.exports = function IteratorComplete(iterResult) { 12 if ( Type(iterResult) !== 'Object') {13 if (!isObject(iterResult)) { 13 14 throw new $TypeError('Assertion failed: Type(iterResult) is not Object'); 14 15 } -
imaps-frontend/node_modules/es-abstract/2023/IteratorNext.js
r0c6b92a r79a0317 4 4 5 5 var Call = require('./Call'); 6 var Type = require('./Type');7 6 7 var isObject = require('../helpers/isObject'); 8 8 var isIteratorRecord = require('../helpers/records/iterator-record-2023'); 9 9 … … 22 22 } 23 23 24 if ( Type(result) !== 'Object') {24 if (!isObject(result)) { 25 25 throw new $TypeError('iterator next must return an object'); // step 3 26 26 } -
imaps-frontend/node_modules/es-abstract/2023/IteratorToList.js
r0c6b92a r79a0317 3 3 var $TypeError = require('es-errors/type'); 4 4 5 var callBound = require('call-b ind/callBound');5 var callBound = require('call-bound'); 6 6 7 7 var $arrayPush = callBound('Array.prototype.push'); -
imaps-frontend/node_modules/es-abstract/2023/IteratorValue.js
r0c6b92a r79a0317 4 4 5 5 var Get = require('./Get'); 6 var Type = require('./Type'); 6 7 var isObject = require('../helpers/isObject'); 7 8 8 9 // https://262.ecma-international.org/6.0/#sec-iteratorvalue 9 10 10 11 module.exports = function IteratorValue(iterResult) { 11 if ( Type(iterResult) !== 'Object') {12 if (!isObject(iterResult)) { 12 13 throw new $TypeError('Assertion failed: Type(iterResult) is not Object'); 13 14 } -
imaps-frontend/node_modules/es-abstract/2023/KeyForSymbol.js
r0c6b92a r79a0317 3 3 var $TypeError = require('es-errors/type'); 4 4 5 var callBound = require('call-b ind/callBound');5 var callBound = require('call-bound'); 6 6 7 7 var $keyFor = callBound('Symbol.keyFor', true); -
imaps-frontend/node_modules/es-abstract/2023/LengthOfArrayLike.js
r0c6b92a r79a0317 5 5 var Get = require('./Get'); 6 6 var ToLength = require('./ToLength'); 7 var Type = require('./Type'); 7 8 var isObject = require('../helpers/isObject'); 8 9 9 10 // https://262.ecma-international.org/11.0/#sec-lengthofarraylike 10 11 11 12 module.exports = function LengthOfArrayLike(obj) { 12 if ( Type(obj) !== 'Object') {13 if (!isObject(obj)) { 13 14 throw new $TypeError('Assertion failed: `obj` must be an Object'); 14 15 } -
imaps-frontend/node_modules/es-abstract/2023/MakeDate.js
r0c6b92a r79a0317 1 1 'use strict'; 2 2 3 var $isFinite = require('../helpers/isFinite'); 3 var $isFinite = require('math-intrinsics/isFinite'); 4 4 5 var msPerDay = require('../helpers/timeConstants').msPerDay; 5 6 -
imaps-frontend/node_modules/es-abstract/2023/MakeDay.js
r0c6b92a r79a0317 5 5 var $DateUTC = GetIntrinsic('%Date.UTC%'); 6 6 7 var $isFinite = require(' ../helpers/isFinite');7 var $isFinite = require('math-intrinsics/isFinite'); 8 8 9 9 var DateFromTime = require('./DateFromTime'); -
imaps-frontend/node_modules/es-abstract/2023/MakeMatchIndicesIndexPairArray.js
r0c6b92a r79a0317 21 21 }; 22 22 23 var MAX_ARRAY_LENGTH = Math.pow(2, 32) - 1;23 var MAX_ARRAY_LENGTH = require('math-intrinsics/constants/maxArrayLength'); 24 24 25 25 // https://262.ecma-international.org/13.0/#sec-getmatchindexpair -
imaps-frontend/node_modules/es-abstract/2023/MakeTime.js
r0c6b92a r79a0317 1 1 'use strict'; 2 2 3 var $isFinite = require(' ../helpers/isFinite');3 var $isFinite = require('math-intrinsics/isFinite'); 4 4 var timeConstants = require('../helpers/timeConstants'); 5 5 var msPerSecond = timeConstants.msPerSecond; -
imaps-frontend/node_modules/es-abstract/2023/MonthFromTime.js
r0c6b92a r79a0317 1 1 'use strict'; 2 3 var $RangeError = require('es-errors/range'); 2 4 3 5 var DayWithinYear = require('./DayWithinYear'); … … 45 47 return 11; 46 48 } 49 50 throw new $RangeError('Assertion failed: `day` is out of range'); 47 51 }; -
imaps-frontend/node_modules/es-abstract/2023/Number/add.js
r0c6b92a r79a0317 2 2 3 3 var $TypeError = require('es-errors/type'); 4 5 var isFinite = require('../../helpers/isFinite'); 6 var isNaN = require('../../helpers/isNaN'); 4 var isFinite = require('math-intrinsics/isFinite'); 5 var isNaN = require('math-intrinsics/isNaN'); 7 6 8 7 // https://262.ecma-international.org/12.0/#sec-numeric-types-number-add -
imaps-frontend/node_modules/es-abstract/2023/Number/divide.js
r0c6b92a r79a0317 2 2 3 3 var $TypeError = require('es-errors/type'); 4 5 var isFinite = require('../../helpers/isFinite'); 6 var isNaN = require('../../helpers/isNaN'); 4 var isFinite = require('math-intrinsics/isFinite'); 5 var isNaN = require('math-intrinsics/isNaN'); 7 6 8 7 // https://262.ecma-international.org/11.0/#sec-numeric-types-number-divide -
imaps-frontend/node_modules/es-abstract/2023/Number/exponentiate.js
r0c6b92a r79a0317 1 1 'use strict'; 2 2 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'); 4 var $pow = require('math-intrinsics/pow'); 7 5 8 6 var $TypeError = require('es-errors/type'); 9 7 10 8 /* 11 var abs = require(' ../../helpers/abs');12 var isFinite = require(' ../../helpers/isFinite');13 var isNaN = require(' ../../helpers/isNaN');9 var abs = require('math-intrinsics/abs'); 10 var isFinite = require('math-intrinsics/isFinite'); 11 var isNaN = require('math-intrinsics/isNaN'); 14 12 15 var IsInteger = require(' ../IsInteger');13 var IsInteger = require('math-intrinsics/isInteger'); 16 14 */ 17 15 -
imaps-frontend/node_modules/es-abstract/2023/Number/remainder.js
r0c6b92a r79a0317 2 2 3 3 var $TypeError = require('es-errors/type'); 4 5 var isNaN = require('../../helpers/isNaN'); 6 var isFinite = require('../../helpers/isFinite'); 4 var isNaN = require('math-intrinsics/isNaN'); 5 var isFinite = require('math-intrinsics/isFinite'); 7 6 8 7 var truncate = require('../truncate'); -
imaps-frontend/node_modules/es-abstract/2023/Number/sameValue.js
r0c6b92a r79a0317 1 1 'use strict'; 2 2 3 var isNegativeZero = require('is-negative-zero'); 4 3 var isNegativeZero = require('math-intrinsics/isNegativeZero'); 5 4 var $TypeError = require('es-errors/type'); 6 5 -
imaps-frontend/node_modules/es-abstract/2023/Number/toString.js
r0c6b92a r79a0317 2 2 3 3 var $TypeError = require('es-errors/type'); 4 5 var callBound = require('call-bind/callBound');4 var callBound = require('call-bound'); 5 var isInteger = require('math-intrinsics/isInteger'); 6 6 7 7 var $numberToString = callBound('Number.prototype.toString'); 8 9 var isInteger = require('../../helpers/isInteger');10 8 11 9 // https://262.ecma-international.org/14.0/#sec-numeric-types-number-tostring -
imaps-frontend/node_modules/es-abstract/2023/ObjectDefineProperties.js
r0c6b92a r79a0317 1 1 'use strict'; 2 2 3 var callBound = require('call-b ind/callBound');3 var callBound = require('call-bound'); 4 4 5 5 var DefinePropertyOrThrow = require('./DefinePropertyOrThrow'); … … 10 10 var forEach = require('../helpers/forEach'); 11 11 var getOwnPropertyDescriptor = require('gopd'); 12 var OwnPropertyKeys = require(' ../helpers/OwnPropertyKeys');12 var OwnPropertyKeys = require('own-keys'); 13 13 14 14 var $push = callBound('Array.prototype.push'); 15 15 16 16 // https://262.ecma-international.org/6.0/#sec-objectdefineproperties 17 18 /** @type {<T extends Record<PropertyKey, unknown> = {}>(O: T, Properties: object) => T} */ 17 19 module.exports = function ObjectDefineProperties(O, Properties) { 18 20 var props = ToObject(Properties); // step 1 19 21 var keys = OwnPropertyKeys(props); // step 2 22 /** @type {[string | symbol, import('../types').Descriptor][]} */ 20 23 var descriptors = []; // step 3 21 24 -
imaps-frontend/node_modules/es-abstract/2023/OrdinaryDefineOwnProperty.js
r0c6b92a r79a0317 9 9 var IsAccessorDescriptor = require('./IsAccessorDescriptor'); 10 10 var IsExtensible = require('./IsExtensible'); 11 var IsPropertyKey = require('./IsPropertyKey');11 var isPropertyKey = require('../helpers/isPropertyKey'); 12 12 var ToPropertyDescriptor = require('./ToPropertyDescriptor'); 13 13 var SameValue = require('./SameValue'); 14 var Type = require('./Type');15 14 var ValidateAndApplyPropertyDescriptor = require('./ValidateAndApplyPropertyDescriptor'); 15 16 var isObject = require('../helpers/isObject'); 16 17 17 18 // https://262.ecma-international.org/6.0/#sec-ordinarydefineownproperty 18 19 19 20 module.exports = function OrdinaryDefineOwnProperty(O, P, Desc) { 20 if ( Type(O) !== 'Object') {21 if (!isObject(O)) { 21 22 throw new $TypeError('Assertion failed: O must be an Object'); 22 23 } 23 if (! IsPropertyKey(P)) {24 if (!isPropertyKey(P)) { 24 25 throw new $TypeError('Assertion failed: P must be a Property Key'); 25 26 } -
imaps-frontend/node_modules/es-abstract/2023/OrdinaryGetOwnProperty.js
r0c6b92a r79a0317 4 4 var $TypeError = require('es-errors/type'); 5 5 6 var callBound = require('call-b ind/callBound');6 var callBound = require('call-bound'); 7 7 8 8 var $isEnumerable = callBound('Object.prototype.propertyIsEnumerable'); … … 11 11 12 12 var IsArray = require('./IsArray'); 13 var IsPropertyKey = require('./IsPropertyKey');13 var isPropertyKey = require('../helpers/isPropertyKey'); 14 14 var IsRegExp = require('./IsRegExp'); 15 15 var ToPropertyDescriptor = require('./ToPropertyDescriptor'); 16 var Type = require('./Type'); 16 17 var isObject = require('../helpers/isObject'); 17 18 18 19 // https://262.ecma-international.org/6.0/#sec-ordinarygetownproperty 19 20 20 21 module.exports = function OrdinaryGetOwnProperty(O, P) { 21 if ( Type(O) !== 'Object') {22 if (!isObject(O)) { 22 23 throw new $TypeError('Assertion failed: O must be an Object'); 23 24 } 24 if (! IsPropertyKey(P)) {25 if (!isPropertyKey(P)) { 25 26 throw new $TypeError('Assertion failed: P must be a Property Key'); 26 27 } -
imaps-frontend/node_modules/es-abstract/2023/OrdinaryGetPrototypeOf.js
r0c6b92a r79a0317 3 3 var $TypeError = require('es-errors/type'); 4 4 5 var $getProto = require('../helpers/getProto'); 6 7 var Type = require('./Type'); 5 var $getProto = require('get-proto'); 6 var isObject = require('../helpers/isObject'); 8 7 9 8 // https://262.ecma-international.org/7.0/#sec-ordinarygetprototypeof 10 9 11 10 module.exports = function OrdinaryGetPrototypeOf(O) { 12 if ( Type(O) !== 'Object') {11 if (!isObject(O)) { 13 12 throw new $TypeError('Assertion failed: O must be an Object'); 14 13 } -
imaps-frontend/node_modules/es-abstract/2023/OrdinaryHasInstance.js
r0c6b92a r79a0317 5 5 var Get = require('./Get'); 6 6 var IsCallable = require('./IsCallable'); 7 var Type = require('./Type'); 7 8 var isObject = require('../helpers/isObject'); 8 9 9 10 // https://262.ecma-international.org/6.0/#sec-ordinaryhasinstance … … 13 14 return false; 14 15 } 15 if ( Type(O) !== 'Object') {16 if (!isObject(O)) { 16 17 return false; 17 18 } 18 19 var P = Get(C, 'prototype'); 19 if ( Type(P) !== 'Object') {20 if (!isObject(P)) { 20 21 throw new $TypeError('OrdinaryHasInstance called on an object with an invalid prototype property.'); 21 22 } -
imaps-frontend/node_modules/es-abstract/2023/OrdinaryHasProperty.js
r0c6b92a r79a0317 3 3 var $TypeError = require('es-errors/type'); 4 4 5 var IsPropertyKey = require('./IsPropertyKey');6 var Type = require('./Type');5 var isObject = require('../helpers/isObject'); 6 var isPropertyKey = require('../helpers/isPropertyKey'); 7 7 8 8 // https://262.ecma-international.org/6.0/#sec-ordinaryhasproperty 9 9 10 10 module.exports = function OrdinaryHasProperty(O, P) { 11 if ( Type(O) !== 'Object') {11 if (!isObject(O)) { 12 12 throw new $TypeError('Assertion failed: Type(O) is not Object'); 13 13 } 14 if (! IsPropertyKey(P)) {14 if (!isPropertyKey(P)) { 15 15 throw new $TypeError('Assertion failed: P must be a Property Key'); 16 16 } -
imaps-frontend/node_modules/es-abstract/2023/OrdinaryObjectCreate.js
r0c6b92a r79a0317 8 8 9 9 var IsArray = require('./IsArray'); 10 var Type = require('./Type');11 10 12 11 var forEach = require('../helpers/forEach'); 12 var isObject = require('../helpers/isObject'); 13 13 14 14 var SLOT = require('internal-slot'); … … 19 19 20 20 module.exports = function OrdinaryObjectCreate(proto) { 21 if (proto !== null && Type(proto) !== 'Object') {21 if (proto !== null && !isObject(proto)) { 22 22 throw new $TypeError('Assertion failed: `proto` must be null or an object'); 23 23 } -
imaps-frontend/node_modules/es-abstract/2023/OrdinarySetPrototypeOf.js
r0c6b92a r79a0317 2 2 3 3 var $TypeError = require('es-errors/type'); 4 5 var $setProto = require('../helpers/setProto'); 4 var $setProto = require('set-proto'); 6 5 7 6 var OrdinaryGetPrototypeOf = require('./OrdinaryGetPrototypeOf'); 7 8 var isObject = require('../helpers/isObject'); 8 9 9 10 // https://262.ecma-international.org/7.0/#sec-ordinarysetprototypeof 10 11 11 12 module.exports = function OrdinarySetPrototypeOf(O, V) { 12 if ( typeof V !== 'object') {13 if (V !== null && !isObject(V)) { 13 14 throw new $TypeError('Assertion failed: V must be Object or Null'); 14 15 } -
imaps-frontend/node_modules/es-abstract/2023/OrdinaryToPrimitive.js
r0c6b92a r79a0317 6 6 var Get = require('./Get'); 7 7 var IsCallable = require('./IsCallable'); 8 var Type = require('./Type'); 8 9 var isObject = require('../helpers/isObject'); 9 10 10 11 var inspect = require('object-inspect'); … … 13 14 14 15 module.exports = function OrdinaryToPrimitive(O, hint) { 15 if ( Type(O) !== 'Object') {16 if (!isObject(O)) { 16 17 throw new $TypeError('Assertion failed: Type(O) is not Object'); 17 18 } … … 27 28 if (IsCallable(method)) { 28 29 var result = Call(method, O); 29 if ( Type(result) !== 'Object') {30 if (!isObject(result)) { 30 31 return result; 31 32 } -
imaps-frontend/node_modules/es-abstract/2023/ParseHexOctet.js
r0c6b92a r79a0317 1 1 'use strict'; 2 2 3 var GetIntrinsic = require('get-intrinsic');4 5 var $Number = GetIntrinsic('%Number%');6 3 var $SyntaxError = require('es-errors/syntax'); 7 4 var $TypeError = require('es-errors/type'); … … 10 7 var substring = require('./substring'); 11 8 12 var isNaN = require(' ../helpers/isNaN');9 var isNaN = require('math-intrinsics/isNaN'); 13 10 14 11 // https://262.ecma-international.org/14.0/#sec-parsehexoctet … … 29 26 var hexDigits = substring(string, position, position + 2); // step 3 30 27 31 var n = $Number('0x' + hexDigits);28 var n = +('0x' + hexDigits); 32 29 if (isNaN(n)) { 33 30 return [new $SyntaxError('Invalid hexadecimal characters')]; -
imaps-frontend/node_modules/es-abstract/2023/QuoteJSONString.js
r0c6b92a r79a0317 3 3 var $TypeError = require('es-errors/type'); 4 4 5 var callBound = require('call-b ind/callBound');5 var callBound = require('call-bound'); 6 6 var forEach = require('../helpers/forEach'); 7 7 var isLeadingSurrogate = require('../helpers/isLeadingSurrogate'); … … 9 9 10 10 var $charCodeAt = callBound('String.prototype.charCodeAt'); 11 var $strSplit = callBound('String.prototype.split'); 11 12 12 13 var StringToCodePoints = require('./StringToCodePoints'); … … 34 35 var product = '"'; 35 36 if (value) { 36 forEach( StringToCodePoints(value), function (C) {37 forEach($strSplit(StringToCodePoints(value), ''), function (C) { 37 38 if (hasOwn(escapes, C)) { 38 39 product += escapes[C]; 39 40 } else { 40 41 var cCharCode = $charCodeAt(C, 0); 41 if (cCharCode < 0x20 || isLeadingSurrogate( C) || isTrailingSurrogate(C)) {42 if (cCharCode < 0x20 || isLeadingSurrogate(cCharCode) || isTrailingSurrogate(cCharCode)) { 42 43 product += UnicodeEscape(C); 43 44 } else { -
imaps-frontend/node_modules/es-abstract/2023/RawBytesToNumeric.js
r0c6b92a r79a0317 2 2 3 3 var GetIntrinsic = require('get-intrinsic'); 4 var callBound = require('call-b ind/callBound');4 var callBound = require('call-bound'); 5 5 6 6 var $RangeError = require('es-errors/range'); -
imaps-frontend/node_modules/es-abstract/2023/RegExpExec.js
r0c6b92a r79a0317 3 3 var $TypeError = require('es-errors/type'); 4 4 5 var regexExec = require('call-b ind/callBound')('RegExp.prototype.exec');5 var regexExec = require('call-bound')('RegExp.prototype.exec'); 6 6 7 7 var Call = require('./Call'); 8 8 var Get = require('./Get'); 9 9 var IsCallable = require('./IsCallable'); 10 var Type = require('./Type'); 10 11 var isObject = require('../helpers/isObject'); 11 12 12 13 // https://262.ecma-international.org/6.0/#sec-regexpexec 13 14 14 15 module.exports = function RegExpExec(R, S) { 15 if ( Type(R) !== 'Object') {16 if (!isObject(R)) { 16 17 throw new $TypeError('Assertion failed: `R` must be an Object'); 17 18 } … … 22 23 if (IsCallable(exec)) { 23 24 var result = Call(exec, R, [S]); 24 if ( typeof result === 'object') {25 if (result === null || isObject(result)) { 25 26 return result; 26 27 } -
imaps-frontend/node_modules/es-abstract/2023/RegExpHasFlag.js
r0c6b92a r79a0317 2 2 3 3 var GetIntrinsic = require('get-intrinsic'); 4 var callBound = require('call-b ind/callBound');4 var callBound = require('call-bound'); 5 5 6 6 var $TypeError = require('es-errors/type'); … … 8 8 9 9 var SameValue = require('./SameValue'); 10 var Type = require('./Type'); 10 11 var isObject = require('../helpers/isObject'); 11 12 12 13 var $indexOf = callBound('String.prototype.indexOf'); … … 22 23 } 23 24 24 if ( Type(R) !== 'Object') {25 if (!isObject(R)) { 25 26 throw new $TypeError('Assertion failed: Type(R) is not Object'); 26 27 } -
imaps-frontend/node_modules/es-abstract/2023/SameValue.js
r0c6b92a r79a0317 1 1 'use strict'; 2 2 3 var $isNaN = require(' ../helpers/isNaN');3 var $isNaN = require('math-intrinsics/isNaN'); 4 4 5 5 // http://262.ecma-international.org/5.1/#sec-9.12 -
imaps-frontend/node_modules/es-abstract/2023/SameValueNonNumber.js
r0c6b92a r79a0317 9 9 10 10 module.exports = function SameValueNonNumber(x, y) { 11 var xType = Type(x); 12 if (xType === 'Number') { 11 if (typeof x === 'number') { 13 12 throw new $TypeError('Assertion failed: SameValueNonNumber does not accept Number values'); 14 13 } 15 if ( xType!== Type(y)) {14 if (Type(x) !== Type(y)) { 16 15 throw new $TypeError('SameValueNonNumber requires two non-Number values of the same type.'); 17 16 } -
imaps-frontend/node_modules/es-abstract/2023/SameValueZero.js
r0c6b92a r79a0317 1 1 'use strict'; 2 2 3 var $isNaN = require(' ../helpers/isNaN');3 var $isNaN = require('math-intrinsics/isNaN'); 4 4 5 5 // https://262.ecma-international.org/6.0/#sec-samevaluezero -
imaps-frontend/node_modules/es-abstract/2023/Set.js
r0c6b92a r79a0317 3 3 var $TypeError = require('es-errors/type'); 4 4 5 var IsPropertyKey = require('./IsPropertyKey');5 var isPropertyKey = require('../helpers/isPropertyKey'); 6 6 var SameValue = require('./SameValue'); 7 var Type = require('./Type'); 7 8 var isObject = require('../helpers/isObject'); 8 9 9 10 // IE 9 does not throw in strict mode when writability/configurability/extensibility is violated … … 20 21 21 22 module.exports = function Set(O, P, V, Throw) { 22 if ( Type(O) !== 'Object') {23 if (!isObject(O)) { 23 24 throw new $TypeError('Assertion failed: `O` must be an Object'); 24 25 } 25 if (! IsPropertyKey(P)) {26 if (!isPropertyKey(P)) { 26 27 throw new $TypeError('Assertion failed: `P` must be a Property Key'); 27 28 } -
imaps-frontend/node_modules/es-abstract/2023/SetFunctionLength.js
r0c6b92a r79a0317 2 2 3 3 var $TypeError = require('es-errors/type'); 4 var isInteger = require('math-intrinsics/isInteger'); 4 5 5 6 var DefinePropertyOrThrow = require('./DefinePropertyOrThrow'); 6 7 var HasOwnProperty = require('./HasOwnProperty'); 7 8 var IsExtensible = require('./IsExtensible'); 8 9 var isInteger = require('../helpers/isInteger');10 9 11 10 // https://262.ecma-international.org/12.0/#sec-setfunctionlength -
imaps-frontend/node_modules/es-abstract/2023/SetIntegrityLevel.js
r0c6b92a r79a0317 14 14 var IsAccessorDescriptor = require('./IsAccessorDescriptor'); 15 15 var ToPropertyDescriptor = require('./ToPropertyDescriptor'); 16 var Type = require('./Type'); 16 17 var isObject = require('../helpers/isObject'); 17 18 18 19 // https://262.ecma-international.org/6.0/#sec-setintegritylevel 19 20 20 21 module.exports = function SetIntegrityLevel(O, level) { 21 if ( Type(O) !== 'Object') {22 if (!isObject(O)) { 22 23 throw new $TypeError('Assertion failed: Type(O) is not Object'); 23 24 } -
imaps-frontend/node_modules/es-abstract/2023/SetTypedArrayFromArrayLike.js
r0c6b92a r79a0317 3 3 var $RangeError = require('es-errors/range'); 4 4 var $TypeError = require('es-errors/type'); 5 var isInteger = require('math-intrinsics/isInteger'); 5 6 6 7 var isTypedArray = require('is-typed-array'); … … 8 9 var typedArrayLength = require('typed-array-length'); 9 10 var whichTypedArray = require('which-typed-array'); 10 11 var isInteger = require('../helpers/isInteger');12 11 13 12 var Get = require('./Get'); -
imaps-frontend/node_modules/es-abstract/2023/SetTypedArrayFromTypedArray.js
r0c6b92a r79a0317 4 4 var $SyntaxError = require('es-errors/syntax'); 5 5 var $TypeError = require('es-errors/type'); 6 6 var callBound = require('call-bound'); 7 var isInteger = require('math-intrinsics/isInteger'); 7 8 var typedArrayBuffer = require('typed-array-buffer'); 8 9 var typedArrayByteLength = require('typed-array-byte-length'); … … 10 11 var typedArrayLength = require('typed-array-length'); 11 12 var whichTypedArray = require('which-typed-array'); 12 13 var isInteger = require('../helpers/isInteger');14 13 15 14 var CloneArrayBuffer = require('./CloneArrayBuffer'); … … 21 20 var TypedArrayElementSize = require('./TypedArrayElementSize'); 22 21 var TypedArrayElementType = require('./TypedArrayElementType'); 22 23 var $ArrayBuffer = callBound('ArrayBuffer', true); 23 24 24 25 // https://262.ecma-international.org/14.0/#sec-settypedarrayfromtypedarray … … 91 92 var srcByteLength = typedArrayByteLength(source); // step 17.a 92 93 93 srcBuffer = CloneArrayBuffer(srcBuffer, srcByteOffset, srcByteLength ); // step 17.b94 srcBuffer = CloneArrayBuffer(srcBuffer, srcByteOffset, srcByteLength, $ArrayBuffer); // step 17.b 94 95 95 96 srcByteIndex = 0; // step 17.c -
imaps-frontend/node_modules/es-abstract/2023/SetValueInBuffer.js
r0c6b92a r79a0317 5 5 var $SyntaxError = require('es-errors/syntax'); 6 6 var $TypeError = require('es-errors/type'); 7 var isInteger = require('math-intrinsics/isInteger'); 7 8 var $Uint8Array = GetIntrinsic('%Uint8Array%', true); 8 9 var isInteger = require('../helpers/isInteger');10 9 11 10 var IsBigIntElementType = require('./IsBigIntElementType'); -
imaps-frontend/node_modules/es-abstract/2023/SortIndexedProperties.js
r0c6b92a r79a0317 1 1 'use strict'; 2 2 3 var callBound = require('call-bind/callBound');4 5 3 var $TypeError = require('es-errors/type'); 4 var callBound = require('call-bound'); 5 var isInteger = require('math-intrinsics/isInteger'); 6 6 7 7 var Get = require('./Get'); 8 8 var HasProperty = require('./HasProperty'); 9 9 var ToString = require('./ToString'); 10 var Type = require('./Type');11 10 12 11 var isAbstractClosure = require('../helpers/isAbstractClosure'); 13 var is Integer = require('../helpers/isInteger');12 var isObject = require('../helpers/isObject'); 14 13 15 14 var $push = callBound('Array.prototype.push'); … … 19 18 20 19 module.exports = function SortIndexedProperties(obj, len, SortCompare, holes) { 21 if ( Type(obj) !== 'Object') {20 if (!isObject(obj)) { 22 21 throw new $TypeError('Assertion failed: Type(obj) is not Object'); 23 22 } -
imaps-frontend/node_modules/es-abstract/2023/SpeciesConstructor.js
r0c6b92a r79a0317 7 7 8 8 var IsConstructor = require('./IsConstructor'); 9 var Type = require('./Type'); 9 10 var isObject = require('../helpers/isObject'); 10 11 11 12 // https://262.ecma-international.org/6.0/#sec-speciesconstructor 12 13 13 14 module.exports = function SpeciesConstructor(O, defaultConstructor) { 14 if ( Type(O) !== 'Object') {15 if (!isObject(O)) { 15 16 throw new $TypeError('Assertion failed: Type(O) is not Object'); 16 17 } … … 19 20 return defaultConstructor; 20 21 } 21 if ( Type(C) !== 'Object') {22 if (!isObject(C)) { 22 23 throw new $TypeError('O.constructor is not an Object'); 23 24 } -
imaps-frontend/node_modules/es-abstract/2023/StringCreate.js
r0c6b92a r79a0317 7 7 var $SyntaxError = require('es-errors/syntax'); 8 8 var $TypeError = require('es-errors/type'); 9 var setProto = require('set-proto'); 9 10 10 11 var DefinePropertyOrThrow = require('./DefinePropertyOrThrow'); 11 12 var setProto = require('../helpers/setProto');13 12 14 13 // https://262.ecma-international.org/6.0/#sec-stringcreate -
imaps-frontend/node_modules/es-abstract/2023/StringGetOwnProperty.js
r0c6b92a r79a0317 2 2 3 3 var $TypeError = require('es-errors/type'); 4 var isNegativeZero = require('math-intrinsics/isNegativeZero'); 4 5 5 var callBound = require('call-b ind/callBound');6 var callBound = require('call-bound'); 6 7 var $charAt = callBound('String.prototype.charAt'); 7 8 var $stringToString = callBound('String.prototype.toString'); … … 9 10 var CanonicalNumericIndexString = require('./CanonicalNumericIndexString'); 10 11 var IsIntegralNumber = require('./IsIntegralNumber'); 11 var IsPropertyKey = require('./IsPropertyKey');12 var Type = require('./Type');13 12 14 var isNegativeZero = require('is-negative-zero'); 13 var isObject = require('../helpers/isObject'); 14 var isPropertyKey = require('../helpers/isPropertyKey'); 15 15 16 16 // https://262.ecma-international.org/12.0/#sec-stringgetownproperty … … 18 18 module.exports = function StringGetOwnProperty(S, P) { 19 19 var str; 20 if ( Type(S) === 'Object') {20 if (isObject(S)) { 21 21 try { 22 22 str = $stringToString(S); … … 26 26 throw new $TypeError('Assertion failed: `S` must be a boxed string object'); 27 27 } 28 if (! IsPropertyKey(P)) {29 throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true');28 if (!isPropertyKey(P)) { 29 throw new $TypeError('Assertion failed: P is not a Property Key'); 30 30 } 31 31 if (typeof P !== 'string') { -
imaps-frontend/node_modules/es-abstract/2023/StringIndexOf.js
r0c6b92a r79a0317 1 1 'use strict'; 2 2 3 var callBound = require('call-b ind/callBound');3 var callBound = require('call-bound'); 4 4 5 5 var $TypeError = require('es-errors/type'); 6 7 var isInteger = require('../helpers/isInteger'); 6 var isInteger = require('math-intrinsics/isInteger'); 8 7 9 8 var $slice = callBound('String.prototype.slice'); -
imaps-frontend/node_modules/es-abstract/2023/StringPad.js
r0c6b92a r79a0317 3 3 var $TypeError = require('es-errors/type'); 4 4 5 var callBound = require('call-b ind/callBound');5 var callBound = require('call-bound'); 6 6 7 7 var ToLength = require('./ToLength'); -
imaps-frontend/node_modules/es-abstract/2023/StringToCodePoints.js
r0c6b92a r79a0317 3 3 var $TypeError = require('es-errors/type'); 4 4 5 var callBound = require('call-b ind/callBound');5 var callBound = require('call-bound'); 6 6 7 7 var $push = callBound('Array.prototype.push'); -
imaps-frontend/node_modules/es-abstract/2023/StringToNumber.js
r0c6b92a r79a0317 3 3 var GetIntrinsic = require('get-intrinsic'); 4 4 5 var $Number = GetIntrinsic('%Number%');6 5 var $RegExp = GetIntrinsic('%RegExp%'); 7 6 var $TypeError = require('es-errors/type'); 8 7 var $parseInteger = GetIntrinsic('%parseInt%'); 9 8 10 var callBound = require('call-b ind/callBound');9 var callBound = require('call-bound'); 11 10 var regexTester = require('safe-regex-test'); 12 11 … … 28 27 } 29 28 if (isBinary(argument)) { 30 return $Number($parseInteger($strSlice(argument, 2), 2));29 return +$parseInteger($strSlice(argument, 2), 2); 31 30 } 32 31 if (isOctal(argument)) { 33 return $Number($parseInteger($strSlice(argument, 2), 8));32 return +$parseInteger($strSlice(argument, 2), 8); 34 33 } 35 34 if (hasNonWS(argument) || isInvalidHexLiteral(argument)) { … … 40 39 return StringToNumber(trimmed); 41 40 } 42 return $Number(argument);41 return +argument; 43 42 }; -
imaps-frontend/node_modules/es-abstract/2023/SymbolDescriptiveString.js
r0c6b92a r79a0317 3 3 var $TypeError = require('es-errors/type'); 4 4 5 var callBound = require('call-b ind/callBound');5 var callBound = require('call-bound'); 6 6 7 7 var $SymbolToString = callBound('Symbol.prototype.toString', true); -
imaps-frontend/node_modules/es-abstract/2023/TestIntegrityLevel.js
r0c6b92a r79a0317 5 5 6 6 var every = require('../helpers/every'); 7 var OwnPropertyKeys = require(' ../helpers/OwnPropertyKeys');7 var OwnPropertyKeys = require('own-keys'); 8 8 9 9 var IsDataDescriptor = require('./IsDataDescriptor'); 10 10 var IsExtensible = require('./IsExtensible'); 11 11 var ToPropertyDescriptor = require('./ToPropertyDescriptor'); 12 var Type = require('./Type'); 12 13 var isObject = require('../helpers/isObject'); 13 14 14 15 // https://262.ecma-international.org/6.0/#sec-testintegritylevel 15 16 16 17 module.exports = function TestIntegrityLevel(O, level) { 17 if ( Type(O) !== 'Object') {18 if (!isObject(O)) { 18 19 throw new $TypeError('Assertion failed: Type(O) is not Object'); 19 20 } … … 22 23 } 23 24 var status = IsExtensible(O); 24 if (status ) {25 if (status || !$gOPD) { 25 26 return false; 26 27 } -
imaps-frontend/node_modules/es-abstract/2023/TimeClip.js
r0c6b92a r79a0317 4 4 5 5 var $Date = GetIntrinsic('%Date%'); 6 var $Number = GetIntrinsic('%Number%');7 6 8 var $isFinite = require('../helpers/isFinite'); 7 var $isFinite = require('math-intrinsics/isFinite'); 8 var abs = require('math-intrinsics/abs'); 9 9 10 var abs = require('./abs');11 10 var ToNumber = require('./ToNumber'); 12 11 … … 17 16 return NaN; 18 17 } 19 return $Number(new $Date(ToNumber(time)));18 return +new $Date(ToNumber(time)); 20 19 }; 21 20 -
imaps-frontend/node_modules/es-abstract/2023/TimeString.js
r0c6b92a r79a0317 3 3 var $TypeError = require('es-errors/type'); 4 4 5 var $isNaN = require(' ../helpers/isNaN');5 var $isNaN = require('math-intrinsics/isNaN'); 6 6 7 7 var HourFromTime = require('./HourFromTime'); -
imaps-frontend/node_modules/es-abstract/2023/TimeZoneString.js
r0c6b92a r79a0317 5 5 var $Date = GetIntrinsic('%Date%'); 6 6 var $TypeError = require('es-errors/type'); 7 8 var isInteger = require('../helpers/isInteger'); 9 10 var callBound = require('call-bind/callBound'); 7 var callBound = require('call-bound'); 8 var isInteger = require('math-intrinsics/isInteger'); 11 9 12 10 var $indexOf = callBound('String.prototype.indexOf'); -
imaps-frontend/node_modules/es-abstract/2023/ToBigInt64.js
r0c6b92a r79a0317 4 4 5 5 var $BigInt = GetIntrinsic('%BigInt%', true); 6 var $pow = GetIntrinsic('%Math.pow%');6 var $pow = require('math-intrinsics/pow'); 7 7 8 8 var ToBigInt = require('./ToBigInt'); -
imaps-frontend/node_modules/es-abstract/2023/ToBigUint64.js
r0c6b92a r79a0317 4 4 5 5 var $BigInt = GetIntrinsic('%BigInt%', true); 6 var $pow = GetIntrinsic('%Math.pow%'); 6 7 var $pow = require('math-intrinsics/pow'); 7 8 8 9 var ToBigInt = require('./ToBigInt'); -
imaps-frontend/node_modules/es-abstract/2023/ToDateString.js
r0c6b92a r79a0317 7 7 var $String = GetIntrinsic('%String%'); 8 8 9 var $isNaN = require(' ../helpers/isNaN');9 var $isNaN = require('math-intrinsics/isNaN'); 10 10 11 11 // https://262.ecma-international.org/6.0/#sec-todatestring -
imaps-frontend/node_modules/es-abstract/2023/ToInt16.js
r0c6b92a r79a0317 5 5 var truncate = require('./truncate'); 6 6 7 var isFinite = require(' ../helpers/isFinite');7 var isFinite = require('math-intrinsics/isFinite'); 8 8 9 9 // https://262.ecma-international.org/14.0/#sec-toint16 -
imaps-frontend/node_modules/es-abstract/2023/ToInt32.js
r0c6b92a r79a0317 5 5 var truncate = require('./truncate'); 6 6 7 var isFinite = require(' ../helpers/isFinite');7 var isFinite = require('math-intrinsics/isFinite'); 8 8 9 9 // https://262.ecma-international.org/14.0/#sec-toint32 -
imaps-frontend/node_modules/es-abstract/2023/ToInt8.js
r0c6b92a r79a0317 5 5 var truncate = require('./truncate'); 6 6 7 var isFinite = require(' ../helpers/isFinite');7 var isFinite = require('math-intrinsics/isFinite'); 8 8 9 9 // https://262.ecma-international.org/14.0/#sec-toint8 -
imaps-frontend/node_modules/es-abstract/2023/ToIntegerOrInfinity.js
r0c6b92a r79a0317 4 4 var truncate = require('./truncate'); 5 5 6 var $isNaN = require(' ../helpers/isNaN');7 var $isFinite = require(' ../helpers/isFinite');6 var $isNaN = require('math-intrinsics/isNaN'); 7 var $isFinite = require('math-intrinsics/isFinite'); 8 8 9 9 // https://262.ecma-international.org/14.0/#sec-tointegerorinfinity -
imaps-frontend/node_modules/es-abstract/2023/ToLength.js
r0c6b92a r79a0317 1 1 'use strict'; 2 2 3 var MAX_SAFE_INTEGER = require(' ../helpers/maxSafeInteger');3 var MAX_SAFE_INTEGER = require('math-intrinsics/constants/maxSafeInteger'); 4 4 5 5 var ToIntegerOrInfinity = require('./ToIntegerOrInfinity'); -
imaps-frontend/node_modules/es-abstract/2023/ToNumber.js
r0c6b92a r79a0317 23 23 return StringToNumber(value); 24 24 } 25 return $Number(value);25 return +value; 26 26 }; -
imaps-frontend/node_modules/es-abstract/2023/ToPropertyDescriptor.js
r0c6b92a r79a0317 5 5 var $TypeError = require('es-errors/type'); 6 6 7 var Type = require('./Type');7 var IsCallable = require('./IsCallable'); 8 8 var ToBoolean = require('./ToBoolean'); 9 var IsCallable = require('./IsCallable'); 9 10 var isObject = require('../helpers/isObject'); 10 11 11 12 // https://262.ecma-international.org/5.1/#sec-8.10.5 12 13 13 14 module.exports = function ToPropertyDescriptor(Obj) { 14 if ( Type(Obj) !== 'Object') {15 if (!isObject(Obj)) { 15 16 throw new $TypeError('ToPropertyDescriptor requires an object'); 16 17 } -
imaps-frontend/node_modules/es-abstract/2023/ToUint16.js
r0c6b92a r79a0317 5 5 var truncate = require('./truncate'); 6 6 7 var isFinite = require(' ../helpers/isFinite');7 var isFinite = require('math-intrinsics/isFinite'); 8 8 9 9 // https://262.ecma-international.org/14.0/#sec-touint16 -
imaps-frontend/node_modules/es-abstract/2023/ToUint32.js
r0c6b92a r79a0317 5 5 var truncate = require('./truncate'); 6 6 7 var isFinite = require(' ../helpers/isFinite');7 var isFinite = require('math-intrinsics/isFinite'); 8 8 9 9 // https://262.ecma-international.org/14.0/#sec-touint32 -
imaps-frontend/node_modules/es-abstract/2023/ToUint8.js
r0c6b92a r79a0317 1 1 'use strict'; 2 2 3 var isFinite = require(' ../helpers/isFinite');3 var isFinite = require('math-intrinsics/isFinite'); 4 4 5 5 var modulo = require('./modulo'); -
imaps-frontend/node_modules/es-abstract/2023/ToUint8Clamp.js
r0c6b92a r79a0317 4 4 var floor = require('./floor'); 5 5 6 var $isNaN = require(' ../helpers/isNaN');6 var $isNaN = require('math-intrinsics/isNaN'); 7 7 8 8 // https://262.ecma-international.org/6.0/#sec-touint8clamp -
imaps-frontend/node_modules/es-abstract/2023/ToZeroPaddedDecimalString.js
r0c6b92a r79a0317 5 5 var $String = GetIntrinsic('%String%'); 6 6 var $RangeError = require('es-errors/range'); 7 var isInteger = require('math-intrinsics/isInteger'); 7 8 8 9 var StringPad = require('./StringPad'); 9 10 var isInteger = require('../helpers/isInteger');11 10 12 11 // https://262.ecma-international.org/13.0/#sec-tozeropaddeddecimalstring -
imaps-frontend/node_modules/es-abstract/2023/TypedArrayElementSize.js
r0c6b92a r79a0317 3 3 var $SyntaxError = require('es-errors/syntax'); 4 4 var $TypeError = require('es-errors/type'); 5 6 var isInteger = require('../helpers/isInteger'); 7 5 var isInteger = require('math-intrinsics/isInteger'); 8 6 var whichTypedArray = require('which-typed-array'); 9 7 … … 14 12 module.exports = function TypedArrayElementSize(O) { 15 13 var type = whichTypedArray(O); 16 if ( type === false) {14 if (!type) { 17 15 throw new $TypeError('Assertion failed: `O` must be a TypedArray'); 18 16 } -
imaps-frontend/node_modules/es-abstract/2023/TypedArrayElementType.js
r0c6b92a r79a0317 12 12 module.exports = function TypedArrayElementType(O) { 13 13 var type = whichTypedArray(O); 14 if ( type === false) {14 if (!type) { 15 15 throw new $TypeError('Assertion failed: `O` must be a TypedArray'); 16 16 } -
imaps-frontend/node_modules/es-abstract/2023/UnicodeEscape.js
r0c6b92a r79a0317 3 3 var $TypeError = require('es-errors/type'); 4 4 5 var callBound = require('call-b ind/callBound');5 var callBound = require('call-bound'); 6 6 7 7 var $charCodeAt = callBound('String.prototype.charCodeAt'); -
imaps-frontend/node_modules/es-abstract/2023/ValidateAndApplyPropertyDescriptor.js
r0c6b92a r79a0317 11 11 var IsDataDescriptor = require('./IsDataDescriptor'); 12 12 var IsGenericDescriptor = require('./IsGenericDescriptor'); 13 var IsPropertyKey = require('./IsPropertyKey');13 var isPropertyKey = require('../helpers/isPropertyKey'); 14 14 var SameValue = require('./SameValue'); 15 15 var Type = require('./Type'); 16 17 var isObject = require('../helpers/isObject'); 16 18 17 19 // https://262.ecma-international.org/13.0/#sec-validateandapplypropertydescriptor … … 22 24 module.exports = function ValidateAndApplyPropertyDescriptor(O, P, extensible, Desc, current) { 23 25 var oType = Type(O); 24 if ( oType !== 'Undefined' && oType !== 'Object') {26 if (typeof O !== 'undefined' && !isObject(O)) { 25 27 throw new $TypeError('Assertion failed: O must be undefined or an Object'); 26 28 } 27 if (! IsPropertyKey(P)) {29 if (!isPropertyKey(P)) { 28 30 throw new $TypeError('Assertion failed: P must be a Property Key'); 29 31 } -
imaps-frontend/node_modules/es-abstract/2023/ValidateTypedArray.js
r0c6b92a r79a0317 4 4 5 5 var IsDetachedBuffer = require('./IsDetachedBuffer'); 6 var Type = require('./Type'); 6 7 var isObject = require('../helpers/isObject'); 7 8 8 9 var isTypedArray = require('is-typed-array'); … … 12 13 13 14 module.exports = function ValidateTypedArray(O) { 14 if ( Type(O) !== 'Object') {15 if (!isObject(O)) { 15 16 throw new $TypeError('Assertion failed: `O` must be an Object'); // step 1 16 17 } -
imaps-frontend/node_modules/es-abstract/2023/WeakRefDeref.js
r0c6b92a r79a0317 1 1 'use strict'; 2 2 3 var callBound = require('call-b ind/callBound');3 var callBound = require('call-bound'); 4 4 5 5 var $TypeError = require('es-errors/type'); -
imaps-frontend/node_modules/es-abstract/2023/WordCharacters.js
r0c6b92a r79a0317 3 3 var $TypeError = require('es-errors/type'); 4 4 5 var callBound = require('call-b ind/callBound');5 var callBound = require('call-bound'); 6 6 var $indexOf = callBound('String.prototype.indexOf', true); 7 7 … … 11 11 var forEach = require('../helpers/forEach'); 12 12 var isRegExpRecord = require('../helpers/records/regexp-record'); 13 var OwnPropertyKeys = require(' ../helpers/OwnPropertyKeys');13 var OwnPropertyKeys = require('own-keys'); 14 14 15 15 var basicWordChars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_'; // step 1 -
imaps-frontend/node_modules/es-abstract/2023/YearFromTime.js
r0c6b92a r79a0317 5 5 var $Date = GetIntrinsic('%Date%'); 6 6 7 var callBound = require('call-b ind/callBound');7 var callBound = require('call-bound'); 8 8 9 9 var $getUTCFullYear = callBound('Date.prototype.getUTCFullYear'); -
imaps-frontend/node_modules/es-abstract/2023/abs.js
r0c6b92a r79a0317 1 1 'use strict'; 2 2 3 var GetIntrinsic = require('get-intrinsic'); 4 5 var $abs = GetIntrinsic('%Math.abs%'); 3 var $abs = require('math-intrinsics/abs'); 6 4 7 5 // http://262.ecma-international.org/5.1/#sec-5.2 -
imaps-frontend/node_modules/es-abstract/2023/clamp.js
r0c6b92a r79a0317 1 1 'use strict'; 2 2 3 var GetIntrinsic = require('get-intrinsic');4 5 3 var $TypeError = require('es-errors/type'); 6 var max = GetIntrinsic('%Math.max%');7 var min = GetIntrinsic('%Math.min%');4 var max = require('math-intrinsics/max'); 5 var min = require('math-intrinsics/min'); 8 6 9 7 // https://262.ecma-international.org/12.0/#clamping -
imaps-frontend/node_modules/es-abstract/2023/floor.js
r0c6b92a r79a0317 2 2 3 3 // var modulo = require('./modulo'); 4 var $floor = Math.floor;4 var $floor = require('math-intrinsics/floor'); 5 5 6 6 // http://262.ecma-international.org/11.0/#eqn-floor -
imaps-frontend/node_modules/es-abstract/2023/max.js
r0c6b92a r79a0317 1 1 'use strict'; 2 3 var GetIntrinsic = require('get-intrinsic');4 2 5 3 // https://262.ecma-international.org/6.0/#sec-algorithm-conventions 6 4 7 module.exports = GetIntrinsic('%Math.max%');5 module.exports = require('math-intrinsics/max'); -
imaps-frontend/node_modules/es-abstract/2023/min.js
r0c6b92a r79a0317 1 1 'use strict'; 2 3 var GetIntrinsic = require('get-intrinsic');4 2 5 3 // https://262.ecma-international.org/6.0/#sec-algorithm-conventions 6 4 7 module.exports = GetIntrinsic('%Math.min%');5 module.exports = require('math-intrinsics/min'); -
imaps-frontend/node_modules/es-abstract/2023/substring.js
r0c6b92a r79a0317 2 2 3 3 var $TypeError = require('es-errors/type'); 4 5 var isInteger = require('../helpers/isInteger'); 6 7 var callBound = require('call-bind/callBound'); 4 var isInteger = require('math-intrinsics/isInteger'); 5 var callBound = require('call-bound'); 8 6 9 7 var $slice = callBound('String.prototype.slice'); -
imaps-frontend/node_modules/es-abstract/2023/thisBigIntValue.js
r0c6b92a r79a0317 1 1 'use strict'; 2 2 3 var callBound = require('call-b ind/callBound');3 var callBound = require('call-bound'); 4 4 5 5 var $SyntaxError = require('es-errors/syntax'); 6 6 var $bigIntValueOf = callBound('BigInt.prototype.valueOf', true); 7 7 8 var Type = require('./Type');9 10 8 // https://262.ecma-international.org/11.0/#sec-thisbigintvalue 11 9 12 10 module.exports = function thisBigIntValue(value) { 13 var type = Type(value); 14 if (type === 'BigInt') { 11 if (typeof value === 'bigint') { 15 12 return value; 16 13 } -
imaps-frontend/node_modules/es-abstract/2023/thisBooleanValue.js
r0c6b92a r79a0317 1 1 'use strict'; 2 2 3 var $BooleanValueOf = require('call-b ind/callBound')('Boolean.prototype.valueOf');3 var $BooleanValueOf = require('call-bound')('Boolean.prototype.valueOf'); 4 4 5 5 // https://262.ecma-international.org/6.0/#sec-properties-of-the-boolean-prototype-object -
imaps-frontend/node_modules/es-abstract/2023/thisNumberValue.js
r0c6b92a r79a0317 1 1 'use strict'; 2 2 3 var callBound = require('call-b ind/callBound');3 var callBound = require('call-bound'); 4 4 5 5 var $NumberValueOf = callBound('Number.prototype.valueOf'); -
imaps-frontend/node_modules/es-abstract/2023/thisStringValue.js
r0c6b92a r79a0317 1 1 'use strict'; 2 2 3 var $StringValueOf = require('call-b ind/callBound')('String.prototype.valueOf');3 var $StringValueOf = require('call-bound')('String.prototype.valueOf'); 4 4 5 5 // https://262.ecma-international.org/6.0/#sec-properties-of-the-string-prototype-object -
imaps-frontend/node_modules/es-abstract/2023/thisSymbolValue.js
r0c6b92a r79a0317 2 2 3 3 var $SyntaxError = require('es-errors/syntax'); 4 var callBound = require('call-b ind/callBound');4 var callBound = require('call-bound'); 5 5 6 6 var $SymbolValueOf = callBound('Symbol.prototype.valueOf', true); … … 9 9 10 10 module.exports = function thisSymbolValue(value) { 11 if (typeof value === 'symbol') { 12 return value; 13 } 14 11 15 if (!$SymbolValueOf) { 12 16 throw new $SyntaxError('Symbols are not supported; thisSymbolValue requires that `value` be a Symbol or a Symbol object'); 13 17 } 14 if (typeof value === 'symbol') { 15 return value; 16 } 18 17 19 return $SymbolValueOf(value); 18 20 }; -
imaps-frontend/node_modules/es-abstract/2023/thisTimeValue.js
r0c6b92a r79a0317 1 1 'use strict'; 2 2 3 var $DateGetTime = require('call-bind/callBound')('Date.prototype.getTime');3 var timeValue = require('../helpers/timeValue'); 4 4 5 5 // https://262.ecma-international.org/6.0/#sec-properties-of-the-date-prototype-object 6 6 7 7 module.exports = function thisTimeValue(value) { 8 return $DateGetTime(value);8 return timeValue(value); 9 9 };
Note:
See TracChangeset
for help on using the changeset viewer.