Changeset 79a0317 for imaps-frontend/node_modules/es-abstract/2018
- Timestamp:
- 01/21/25 03:08:24 (3 days ago)
- Branches:
- main
- Parents:
- 0c6b92a
- Location:
- imaps-frontend/node_modules/es-abstract/2018
- Files:
-
- 103 edited
Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/es-abstract/2018/AbstractEqualityComparison.js
r0c6b92a r79a0317 5 5 var Type = require('./Type'); 6 6 7 var isObject = require('../helpers/isObject'); 8 7 9 // https://262.ecma-international.org/6.0/#sec-abstract-equality-comparison 8 10 9 11 module.exports = function AbstractEqualityComparison(x, y) { 10 var xType = Type(x); 11 var yType = Type(y); 12 if (xType === yType) { 12 if (Type(x) === Type(y)) { 13 13 return x === y; // ES6+ specified this shortcut anyways. 14 14 } … … 16 16 return true; 17 17 } 18 if ( xType === 'Number' && yType === 'String') {18 if (typeof x === 'number' && typeof y === 'string') { 19 19 return AbstractEqualityComparison(x, ToNumber(y)); 20 20 } 21 if ( xType === 'String' && yType === 'Number') {21 if (typeof x === 'string' && typeof y === 'number') { 22 22 return AbstractEqualityComparison(ToNumber(x), y); 23 23 } 24 if ( xType === 'Boolean') {24 if (typeof x === 'boolean') { 25 25 return AbstractEqualityComparison(ToNumber(x), y); 26 26 } 27 if ( yType === 'Boolean') {27 if (typeof y === 'boolean') { 28 28 return AbstractEqualityComparison(x, ToNumber(y)); 29 29 } 30 if (( xType === 'String' || xType === 'Number' || xType === 'Symbol') && yType === 'Object') {30 if ((typeof x === 'string' || typeof x === 'number' || typeof x === 'symbol') && isObject(y)) { 31 31 return AbstractEqualityComparison(x, ToPrimitive(y)); 32 32 } 33 if ( xType === 'Object' && (yType === 'String' || yType === 'Number' || yType === 'Symbol')) {33 if (isObject(x) && (typeof y === 'string' || typeof y === 'number' || typeof y === 'symbol')) { 34 34 return AbstractEqualityComparison(ToPrimitive(x), y); 35 35 } -
imaps-frontend/node_modules/es-abstract/2018/AbstractRelationalComparison.js
r0c6b92a r79a0317 5 5 var $Number = GetIntrinsic('%Number%'); 6 6 var $TypeError = require('es-errors/type'); 7 8 var $isNaN = require('../helpers/isNaN'); 9 var $isFinite = require('../helpers/isFinite'); 7 var $isNaN = require('math-intrinsics/isNaN'); 8 var $isFinite = require('math-intrinsics/isFinite'); 10 9 11 10 var IsStringPrefix = require('./IsStringPrefix'); -
imaps-frontend/node_modules/es-abstract/2018/AdvanceStringIndex.js
r0c6b92a r79a0317 1 1 'use strict'; 2 2 3 var isInteger = require('../helpers/isInteger'); 3 var isInteger = require('math-intrinsics/isInteger'); 4 var MAX_SAFE_INTEGER = require('math-intrinsics/constants/maxSafeInteger'); 5 4 6 var isLeadingSurrogate = require('../helpers/isLeadingSurrogate'); 5 7 var isTrailingSurrogate = require('../helpers/isTrailingSurrogate'); 6 var MAX_SAFE_INTEGER = require('../helpers/maxSafeInteger');7 8 8 9 var $TypeError = require('es-errors/type'); 9 10 10 var $charCodeAt = require('call-b ind/callBound')('String.prototype.charCodeAt');11 var $charCodeAt = require('call-bound')('String.prototype.charCodeAt'); 11 12 12 13 // https://262.ecma-international.org/6.0/#sec-advancestringindex -
imaps-frontend/node_modules/es-abstract/2018/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 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 ); 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/6.0/#sec-arraycreate -
imaps-frontend/node_modules/es-abstract/2018/ArraySpeciesCreate.js
r0c6b92a r79a0317 6 6 var $species = GetIntrinsic('%Symbol.species%', true); 7 7 var $TypeError = require('es-errors/type'); 8 var isInteger = require('math-intrinsics/isInteger'); 8 9 9 10 var Get = require('./Get'); 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/6.0/#sec-arrayspeciescreate … … 30 30 // Object.getPrototypeOf(Object.getPrototypeOf(Object.getPrototypeOf(Array))) === null ? 31 31 // } 32 if ($species && Type(C) === 'Object') {32 if ($species && isObject(C)) { 33 33 C = Get(C, $species); 34 34 if (C === null) { -
imaps-frontend/node_modules/es-abstract/2018/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); … … 47 47 }), 48 48 function (innerResult) { 49 if ( Type(innerResult) !== 'Object') {49 if (!isObject(innerResult)) { 50 50 throw new $TypeError('`innerResult` must be an Object'); // step 10 51 51 } -
imaps-frontend/node_modules/es-abstract/2018/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/2018/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/2018/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/2018/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 var OwnPropertyKeys = require(' ../helpers/OwnPropertyKeys');7 var OwnPropertyKeys = require('own-keys'); 8 8 9 9 var $isEnumerable = callBound('Object.prototype.propertyIsEnumerable'); … … 13 13 var IsArray = require('./IsArray'); 14 14 var IsInteger = require('./IsInteger'); 15 var IsPropertyKey = require('./IsPropertyKey');15 var isPropertyKey = require('../helpers/isPropertyKey'); 16 16 var SameValue = require('./SameValue'); 17 17 var ToNumber = require('./ToNumber'); 18 18 var ToObject = require('./ToObject'); 19 var Type = require('./Type'); 19 20 var isObject = require('../helpers/isObject'); 20 21 21 22 // https://262.ecma-international.org/9.0/#sec-copydataproperties 22 23 23 24 module.exports = function CopyDataProperties(target, source, excludedItems) { 24 if ( Type(target) !== 'Object') {25 if (!isObject(target)) { 25 26 throw new $TypeError('Assertion failed: "target" must be an Object'); 26 27 } … … 30 31 } 31 32 for (var i = 0; i < excludedItems.length; i += 1) { 32 if (! IsPropertyKey(excludedItems[i])) {33 if (!isPropertyKey(excludedItems[i])) { 33 34 throw new $TypeError('Assertion failed: "excludedItems" must be a List of Property Keys'); 34 35 } -
imaps-frontend/node_modules/es-abstract/2018/CreateAsyncFromSyncIterator.js
r0c6b92a r79a0317 16 16 var ObjectCreate = require('./ObjectCreate'); 17 17 var PromiseResolve = require('./PromiseResolve'); 18 var Type = require('./Type');19 18 19 var isObject = require('../helpers/isObject'); 20 20 var isIteratorRecord = require('../helpers/records/iterator-record-2023'); 21 21 22 22 var SLOT = require('internal-slot'); 23 23 24 var callBound = require('call-b ind/callBound');24 var callBound = require('call-bound'); 25 25 26 26 var $then = callBound('Promise.prototype.then', true); 27 27 28 28 var AsyncFromSyncIteratorContinuation = function AsyncFromSyncIteratorContinuation(result) { 29 if ( Type(result) !== 'Object') {29 if (!isObject(result)) { 30 30 throw new $TypeError('Assertion failed: Type(O) is not Object'); 31 31 } … … 102 102 result = Call(iteratorReturn, syncIterator); // step 9.a 103 103 } 104 if ( Type(result) !== 'Object') { // step 11104 if (!isObject(result)) { // step 11 105 105 Call(reject, undefined, [new $TypeError('Iterator `return` method returned a non-object value.')]); // step 11.a 106 106 return; … … 138 138 result = Call(throwMethod, syncIterator); // step 9.a 139 139 } 140 if ( Type(result) !== 'Object') { // step 11140 if (!isObject(result)) { // step 11 141 141 Call(reject, undefined, [new $TypeError('Iterator `throw` method returned a non-object value.')]); // step 11.a 142 142 return; -
imaps-frontend/node_modules/es-abstract/2018/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/2018/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/6.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/2018/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/2018/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', 'Object']; 16 18 … … 21 23 : defaultElementTypes; 22 24 23 if ( Type(obj) !== 'Object') {25 if (!isObject(obj)) { 24 26 throw new $TypeError('Assertion failed: `obj` must be an Object'); 25 27 } -
imaps-frontend/node_modules/es-abstract/2018/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/2018/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/2018/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/2018/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/2018/EnumerableOwnPropertyNames.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/8.0/#sec-enumerableownproperties 21 15 22 16 module.exports = function EnumerableOwnPropertyNames(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/2018/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/2018/GetIterator.js
r0c6b92a r79a0317 8 8 var GetMethod = require('./GetMethod'); 9 9 var IsArray = require('./IsArray'); 10 var Type = require('./Type'); 10 11 var isObject = require('../helpers/isObject'); 12 13 var ES = { 14 AdvanceStringIndex: AdvanceStringIndex, 15 GetMethod: GetMethod, 16 IsArray: IsArray 17 }; 11 18 12 19 // https://262.ecma-international.org/6.0/#sec-getiterator … … 15 22 var actualMethod = method; 16 23 if (arguments.length < 2) { 17 actualMethod = getIteratorMethod( 18 { 19 AdvanceStringIndex: AdvanceStringIndex, 20 GetMethod: GetMethod, 21 IsArray: IsArray 22 }, 23 obj 24 ); 24 actualMethod = getIteratorMethod(ES, obj); 25 25 } 26 26 var iterator = Call(actualMethod, obj); 27 if ( Type(iterator) !== 'Object') {27 if (!isObject(iterator)) { 28 28 throw new $TypeError('iterator must return an object'); 29 29 } -
imaps-frontend/node_modules/es-abstract/2018/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/2018/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/2018/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/2018/GetSubstitution.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 regexTester = require('safe-regex-test'); 7 7 var every = require('../helpers/every'); … … 15 15 16 16 var inspect = require('object-inspect'); 17 var isInteger = require('math-intrinsics/isInteger'); 17 18 18 19 var Get = require('./Get'); … … 21 22 var ToString = require('./ToString'); 22 23 23 var isInteger = require('../helpers/isInteger');24 24 var isStringOrUndefined = require('../helpers/isStringOrUndefined'); 25 25 -
imaps-frontend/node_modules/es-abstract/2018/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/2018/GetValueFromBuffer.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 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/2018/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/2018/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/2018/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/2018/IntegerIndexedElementGet.js
r0c6b92a r79a0317 8 8 var IsInteger = require('./IsInteger'); 9 9 10 var isNegativeZero = require(' ../helpers/isNegativeZero');10 var isNegativeZero = require('math-intrinsics/isNegativeZero'); 11 11 12 12 var typedArrayLength = require('typed-array-length'); -
imaps-frontend/node_modules/es-abstract/2018/IntegerIndexedElementSet.js
r0c6b92a r79a0317 1 1 'use strict'; 2 2 3 var $SyntaxError = require('es-errors/syntax'); 3 4 var $TypeError = require('es-errors/type'); 4 5 … … 8 9 var ToNumber = require('./ToNumber'); 9 10 10 var isNegativeZero = require(' is-negative-zero');11 var isNegativeZero = require('math-intrinsics/isNegativeZero'); 11 12 var typedArrayBuffer = require('typed-array-buffer'); 12 13 var typedArrayByteOffset = require('typed-array-byte-offset'); … … 25 26 if (!arrayTypeName) { 26 27 throw new $TypeError('`O` must be a TypedArray'); // step 2 28 } 29 if (arrayTypeName === 'BigInt64Array' || arrayTypeName === 'BigUint64Array') { 30 throw new $SyntaxError('BigInt64Array and BigUint64Array do not exist until ES2020'); // step 2 27 31 } 28 32 -
imaps-frontend/node_modules/es-abstract/2018/InternalizeJSONProperty.js
r0c6b92a r79a0317 10 10 var ToLength = require('./ToLength'); 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/9.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/2018/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/2018/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/2018/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/2018/IsInteger.js
r0c6b92a r79a0317 1 1 'use strict'; 2 2 3 var isInteger = require(' ../helpers/isInteger');3 var isInteger = require('math-intrinsics/isInteger'); 4 4 5 5 // https://262.ecma-international.org/6.0/#sec-isinteger -
imaps-frontend/node_modules/es-abstract/2018/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/2018/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/2018/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/2018/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/2018/IsStringPrefix.js
r0c6b92a r79a0317 5 5 var isPrefixOf = require('../helpers/isPrefixOf'); 6 6 7 // var callBound = require('call-b ind/callBound');7 // var callBound = require('call-bound'); 8 8 9 9 // var $charAt = callBound('String.prototype.charAt'); -
imaps-frontend/node_modules/es-abstract/2018/IsWordChar.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 $indexOf = callBound('String.prototype.indexOf'); -
imaps-frontend/node_modules/es-abstract/2018/IterableToList.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 $arrayPush = callBound('Array.prototype.push'); 5 5 -
imaps-frontend/node_modules/es-abstract/2018/IteratorClose.js
r0c6b92a r79a0317 7 7 var GetMethod = require('./GetMethod'); 8 8 var IsCallable = require('./IsCallable'); 9 var Type = require('./Type'); 9 10 var isObject = require('../helpers/isObject'); 10 11 11 12 // https://262.ecma-international.org/6.0/#sec-iteratorclose 12 13 13 14 module.exports = function IteratorClose(iterator, completion) { 14 if ( Type(iterator) !== 'Object') {15 if (!isObject(iterator)) { 15 16 throw new $TypeError('Assertion failed: Type(iterator) is not Object'); 16 17 } … … 42 43 completionThunk = null; // ensure it's not called twice. 43 44 44 if ( Type(innerResult) !== 'Object') {45 if (!isObject(innerResult)) { 45 46 throw new $TypeError('iterator .return must return an object'); 46 47 } -
imaps-frontend/node_modules/es-abstract/2018/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/2018/IteratorNext.js
r0c6b92a r79a0317 4 4 5 5 var Invoke = require('./Invoke'); 6 var Type = require('./Type'); 6 7 var isObject = require('../helpers/isObject'); 7 8 8 9 // https://262.ecma-international.org/6.0/#sec-iteratornext … … 10 11 module.exports = function IteratorNext(iterator, value) { 11 12 var result = Invoke(iterator, 'next', arguments.length < 2 ? [] : [value]); 12 if ( Type(result) !== 'Object') {13 if (!isObject(result)) { 13 14 throw new $TypeError('iterator next must return an object'); 14 15 } -
imaps-frontend/node_modules/es-abstract/2018/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/2018/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/2018/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/2018/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 5 var timeConstants = require('../helpers/timeConstants'); 5 6 var msPerSecond = timeConstants.msPerSecond; -
imaps-frontend/node_modules/es-abstract/2018/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/2018/ObjectCreate.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 ObjectCreate(proto, internalSlotsList) { 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/2018/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/2018/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/2018/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/2018/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/2018/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/2018/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/2018/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/2018/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/2018/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 … … 31 31 var product = '"'; 32 32 if (value) { 33 forEach($strSplit(value ), function (C) {33 forEach($strSplit(value, ''), function (C) { 34 34 if (hasOwn(escapes, C)) { 35 35 product += escapes[C]; -
imaps-frontend/node_modules/es-abstract/2018/RawBytesToNumber.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 $RangeError = require('es-errors/range'); -
imaps-frontend/node_modules/es-abstract/2018/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/2018/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/2018/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/2018/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/2018/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/9.0/#sec-setfunctionlength -
imaps-frontend/node_modules/es-abstract/2018/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/2018/SetValueInBuffer.js
r0c6b92a r79a0317 3 3 var GetIntrinsic = require('get-intrinsic'); 4 4 5 var $SyntaxError = require('es-errors/syntax'); 5 6 var $TypeError = require('es-errors/type'); 6 7 var $Uint8Array = GetIntrinsic('%Uint8Array%', true); 7 8 8 var isInteger = require(' ../helpers/isInteger');9 var isInteger = require('math-intrinsics/isInteger'); 9 10 10 11 var IsDetachedBuffer = require('./IsDetachedBuffer'); 11 var ToInt16 = require('./ToInt16'); 12 var ToInt32 = require('./ToInt32'); 13 var ToInt8 = require('./ToInt8'); 14 var ToUint16 = require('./ToUint16'); 15 var ToUint32 = require('./ToUint32'); 16 var ToUint8 = require('./ToUint8'); 17 var ToUint8Clamp = require('./ToUint8Clamp'); 12 var NumberToRawBytes = require('./NumberToRawBytes'); 18 13 19 14 var isArrayBuffer = require('is-array-buffer'); 15 var isSharedArrayBuffer = require('is-shared-array-buffer'); 20 16 var hasOwn = require('hasown'); 21 17 22 18 var tableTAO = require('./tables/typed-array-objects'); 23 19 24 var TypeToAO = {25 __proto__: null,26 Int8: ToInt8,27 Uint8: ToUint8,28 Uint8C: ToUint8Clamp,29 Int16: ToInt16,30 Uint16: ToUint16,31 Int32: ToInt32,32 Uint32: ToUint3233 };34 35 20 var defaultEndianness = require('../helpers/defaultEndianness'); 36 21 var forEach = require('../helpers/forEach'); 37 var integerToNBytes = require('../helpers/integerToNBytes');38 var valueToFloat32Bytes = require('../helpers/valueToFloat32Bytes');39 var valueToFloat64Bytes = require('../helpers/valueToFloat64Bytes');40 22 41 // https://262.ecma-international.org/ 6.0/#sec-setvalueinbuffer23 // https://262.ecma-international.org/8.0/#sec-setvalueinbuffer 42 24 43 module.exports = function SetValueInBuffer(arrayBuffer, byteIndex, type, value) { 44 if (!isArrayBuffer(arrayBuffer)) { 45 throw new $TypeError('Assertion failed: `arrayBuffer` must be an ArrayBuffer'); 25 /* eslint max-params: 0 */ 26 27 module.exports = function SetValueInBuffer(arrayBuffer, byteIndex, type, value, isTypedArray, order) { 28 var isSAB = isSharedArrayBuffer(arrayBuffer); 29 if (!isArrayBuffer(arrayBuffer) && !isSAB) { 30 throw new $TypeError('Assertion failed: `arrayBuffer` must be an ArrayBuffer or a SharedArrayBuffer'); 46 31 } 47 32 … … 58 43 } 59 44 60 if (arguments.length > 4 && typeof arguments[4] !== 'boolean') { 45 if (typeof isTypedArray !== 'boolean') { 46 throw new $TypeError('Assertion failed: `isTypedArray` must be a boolean'); 47 } 48 if (order !== 'SeqCst' && order !== 'Unordered' && order !== 'Init') { 49 throw new $TypeError('Assertion failed: `order` must be `"SeqCst"`, `"Unordered"`, or `"Init"`'); 50 } 51 52 if (arguments.length > 6 && typeof arguments[6] !== 'boolean') { 61 53 throw new $TypeError('Assertion failed: `isLittleEndian` must be a boolean, if present'); 62 54 } … … 74 66 // 4. Assert: Type(value) is Number. 75 67 76 // 5. Let block be arrayBuffer ’s [[ArrayBufferData]] internal slot.68 // 5. Let block be arrayBuffer.[[ArrayBufferData]]. 77 69 78 // 6. Assert: block is not undefined.70 var elementSize = tableTAO.size['$' + type]; // step 6 79 71 80 var elementSize = tableTAO.size['$' + type]; // step 7 81 if (!elementSize) { 82 throw new $TypeError('Assertion failed: `type` must be one of "Int8", "Uint8", "Uint8C", "Int16", "Uint16", "Int32", "Uint32", "Float32", or "Float64"'); 72 // 7. If isLittleEndian is not present, set isLittleEndian to to the value of the [[LittleEndian]] field of the surrounding agent's Agent Record. 73 var isLittleEndian = arguments.length > 6 ? arguments[6] : defaultEndianness === 'little'; // step 8 74 75 var rawBytes = NumberToRawBytes(type, value, isLittleEndian); // step 8 76 77 if (isSAB) { // step 9 78 /* 79 Let execution be the [[CandidateExecution]] field of the surrounding agent's Agent Record. 80 Let eventList be the [[EventList]] field of the element in execution.[[EventsRecords]] whose [[AgentSignifier]] is AgentSignifier(). 81 If isTypedArray is true and IsNoTearConfiguration(type, order) is true, let noTear be true; otherwise let noTear be false. 82 Append WriteSharedMemory { [[Order]]: order, [[NoTear]]: noTear, [[Block]]: block, [[ByteIndex]]: byteIndex, [[ElementSize]]: elementSize, [[Payload]]: rawBytes } to eventList. 83 */ 84 throw new $SyntaxError('SharedArrayBuffer is not supported by this implementation'); 85 } else { 86 // 10. Store the individual bytes of rawBytes into block, in order, starting at block[byteIndex]. 87 var arr = new $Uint8Array(arrayBuffer, byteIndex, elementSize); 88 forEach(rawBytes, function (rawByte, i) { 89 arr[i] = rawByte; 90 }); 83 91 } 84 92 85 // 8. If isLittleEndian is not present, set isLittleEndian to either true or false. The choice is implementation dependent and should be the alternative that is most efficient for the implementation. An implementation must use the same value each time this step is executed and the same value must be used for the corresponding step in the GetValueFromBuffer abstract operation. 86 var isLittleEndian = arguments.length > 4 ? arguments[4] : defaultEndianness === 'little'; // step 8 87 88 var rawBytes; 89 if (type === 'Float32') { // step 1 90 rawBytes = valueToFloat32Bytes(value, isLittleEndian); 91 } else if (type === 'Float64') { // step 2 92 rawBytes = valueToFloat64Bytes(value, isLittleEndian); 93 } else { 94 var n = elementSize; // step 3.a 95 96 var convOp = TypeToAO[type]; // step 3.b 97 98 var intValue = convOp(value); // step 3.c 99 100 rawBytes = integerToNBytes(intValue, n, isLittleEndian); // step 3.d, 3.e, 4 101 } 102 103 // 12. Store the individual bytes of rawBytes into block, in order, starting at block[byteIndex]. 104 var arr = new $Uint8Array(arrayBuffer, byteIndex, elementSize); 105 forEach(rawBytes, function (rawByte, i) { 106 arr[i] = rawByte; 107 }); 108 109 // 13. Return NormalCompletion(undefined). 93 // 11. Return NormalCompletion(undefined). 110 94 }; -
imaps-frontend/node_modules/es-abstract/2018/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/2018/SplitMatch.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 $charAt = callBound('String.prototype.charAt'); -
imaps-frontend/node_modules/es-abstract/2018/StrictEqualityComparison.js
r0c6b92a r79a0317 6 6 7 7 module.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)) { 11 9 return false; 12 10 } 13 if ( xType === 'Undefined' || xType === 'Null') {11 if (typeof x === 'undefined' || x === null) { 14 12 return true; 15 13 } -
imaps-frontend/node_modules/es-abstract/2018/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/2018/StringGetOwnProperty.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 $charAt = callBound('String.prototype.charAt'); 7 7 var $stringToString = callBound('String.prototype.toString'); … … 9 9 var CanonicalNumericIndexString = require('./CanonicalNumericIndexString'); 10 10 var IsInteger = require('./IsInteger'); 11 var IsPropertyKey = require('./IsPropertyKey');12 var Type = require('./Type');13 11 14 var isNegativeZero = require('is-negative-zero'); 12 var isObject = require('../helpers/isObject'); 13 var isPropertyKey = require('../helpers/isPropertyKey'); 14 15 var isNegativeZero = require('math-intrinsics/isNegativeZero'); 15 16 16 17 // https://262.ecma-international.org/8.0/#sec-stringgetownproperty … … 18 19 module.exports = function StringGetOwnProperty(S, P) { 19 20 var str; 20 if ( Type(S) === 'Object') {21 if (isObject(S)) { 21 22 try { 22 23 str = $stringToString(S); … … 26 27 throw new $TypeError('Assertion failed: `S` must be a boxed string object'); 27 28 } 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'); 30 31 } 31 32 if (typeof P !== 'string') { -
imaps-frontend/node_modules/es-abstract/2018/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/2018/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/2018/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/2018/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 var padTimeComponent = require('../helpers/padTimeComponent'); 7 7 -
imaps-frontend/node_modules/es-abstract/2018/TimeZoneString.js
r0c6b92a r79a0317 6 6 var $TypeError = require('es-errors/type'); 7 7 8 var isNaN = require(' ../helpers/isNaN');8 var isNaN = require('math-intrinsics/isNaN'); 9 9 10 var callBound = require('call-b ind/callBound');10 var callBound = require('call-bound'); 11 11 12 12 var $indexOf = callBound('String.prototype.indexOf'); -
imaps-frontend/node_modules/es-abstract/2018/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/2018/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 ToInteger = require('./ToInteger'); -
imaps-frontend/node_modules/es-abstract/2018/ToNumber.js
r0c6b92a r79a0317 8 8 var $parseInteger = GetIntrinsic('%parseInt%'); 9 9 10 var callBound = require('call-b ind/callBound');10 var callBound = require('call-bound'); 11 11 var regexTester = require('safe-regex-test'); 12 12 var isPrimitive = require('../helpers/isPrimitive'); … … 45 45 46 46 } 47 return $Number(value);47 return +value; 48 48 }; -
imaps-frontend/node_modules/es-abstract/2018/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/2018/ToUint16.js
r0c6b92a r79a0317 1 1 'use strict'; 2 2 3 var abs = require('./abs');4 var floor = require('./floor');5 3 var modulo = require('./modulo'); 6 4 var ToNumber = require('./ToNumber'); 7 5 8 var $isNaN = require('../helpers/isNaN'); 9 var $isFinite = require('../helpers/isFinite'); 10 var $sign = require('../helpers/sign'); 6 var abs = require('math-intrinsics/abs'); 7 var floor = require('math-intrinsics/floor'); 8 var $isNaN = require('math-intrinsics/isNaN'); 9 var $isFinite = require('math-intrinsics/isFinite'); 10 var $sign = require('math-intrinsics/sign'); 11 11 12 12 // http://262.ecma-international.org/5.1/#sec-9.7 -
imaps-frontend/node_modules/es-abstract/2018/ToUint8.js
r0c6b92a r79a0317 3 3 var ToNumber = require('./ToNumber'); 4 4 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'); 5 var $isNaN = require('math-intrinsics/isNaN'); 6 var $isFinite = require('math-intrinsics/isFinite'); 7 var $sign = require('math-intrinsics/sign'); 8 var abs = require('math-intrinsics/abs'); 9 var floor = require('math-intrinsics/floor'); 10 var modulo = require('math-intrinsics/mod'); 12 11 13 12 // https://262.ecma-international.org/6.0/#sec-touint8 -
imaps-frontend/node_modules/es-abstract/2018/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/2018/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/2018/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 var Type = require('./Type'); 15 16 var isObject = require('../helpers/isObject'); 16 17 17 18 // https://262.ecma-international.org/6.0/#sec-validateandapplypropertydescriptor … … 21 22 module.exports = function ValidateAndApplyPropertyDescriptor(O, P, extensible, Desc, current) { 22 23 // 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)) { 25 25 throw new $TypeError('Assertion failed: O must be undefined or an Object'); 26 26 } … … 34 34 throw new $TypeError('Assertion failed: current must be a Property Descriptor, or undefined'); 35 35 } 36 if ( oType !== 'Undefined' && !IsPropertyKey(P)) {36 if (typeof O !== 'undefined' && !isPropertyKey(P)) { 37 37 throw new $TypeError('Assertion failed: if O is not undefined, P must be a Property Key'); 38 38 } … … 42 42 } 43 43 if (IsGenericDescriptor(Desc) || IsDataDescriptor(Desc)) { 44 if ( oType !== 'Undefined') {44 if (typeof O !== 'undefined') { 45 45 DefineOwnProperty( 46 46 IsDataDescriptor, … … 61 61 throw new $TypeError('Assertion failed: Desc is not an accessor descriptor'); 62 62 } 63 if ( oType !== 'Undefined') {63 if (typeof O !== 'undefined') { 64 64 return DefineOwnProperty( 65 65 IsDataDescriptor, … … 96 96 } 97 97 if (IsDataDescriptor(current)) { 98 if ( oType !== 'Undefined') {98 if (typeof O !== 'undefined') { 99 99 DefineOwnProperty( 100 100 IsDataDescriptor, … … 110 110 ); 111 111 } 112 } else if ( oType !== 'Undefined') {112 } else if (typeof O !== 'undefined') { 113 113 DefineOwnProperty( 114 114 IsDataDescriptor, … … 147 147 throw new $TypeError('Assertion failed: current and Desc are not both data, both accessors, or one accessor and one data.'); 148 148 } 149 if ( oType !== 'Undefined') {149 if (typeof O !== 'undefined') { 150 150 return DefineOwnProperty( 151 151 IsDataDescriptor, -
imaps-frontend/node_modules/es-abstract/2018/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/2018/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 … … 10 10 var caseFolding = require('../helpers/caseFolding.json'); 11 11 var forEach = require('../helpers/forEach'); 12 var OwnPropertyKeys = require(' ../helpers/OwnPropertyKeys');12 var OwnPropertyKeys = require('own-keys'); 13 13 14 14 var A = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_'; // step 1 -
imaps-frontend/node_modules/es-abstract/2018/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/2018/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/2018/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/5.1/#sec-5.2 -
imaps-frontend/node_modules/es-abstract/2018/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/2018/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/2018/tables/typed-array-objects.js
r0c6b92a r79a0317 1 1 'use strict'; 2 2 3 // https://262.ecma-international.org/8.0/#table- 593 // https://262.ecma-international.org/8.0/#table-49 4 4 5 5 module.exports = { -
imaps-frontend/node_modules/es-abstract/2018/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/2018/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/2018/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/2018/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/2018/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.