Changeset 79a0317 for imaps-frontend/node_modules/es-abstract/2016
- Timestamp:
- 01/21/25 03:08:24 (3 days ago)
- Branches:
- main
- Parents:
- 0c6b92a
- Location:
- imaps-frontend/node_modules/es-abstract/2016
- Files:
-
- 85 edited
Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/es-abstract/2016/AbstractEqualityComparison.js
r0c6b92a r79a0317 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/2016/AbstractRelationalComparison.js
r0c6b92a r79a0317 5 5 var $Number = GetIntrinsic('%Number%'); 6 6 var $TypeError = require('es-errors/type'); 7 var $isNaN = require('math-intrinsics/isNaN'); 8 var $isFinite = require('math-intrinsics/isFinite'); 7 9 8 var $isNaN = require('../helpers/isNaN');9 var $isFinite = require('../helpers/isFinite');10 10 var isPrefixOf = require('../helpers/isPrefixOf'); 11 11 -
imaps-frontend/node_modules/es-abstract/2016/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/2016/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/2016/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/2016/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/2016/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/2016/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/2016/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/2016/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/2016/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/2016/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/2016/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/2016/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/2016/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/2016/EnumerableOwnNames.js
r0c6b92a r79a0317 5 5 var keys = require('object-keys'); 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-enumerableownnames 10 10 11 11 module.exports = function EnumerableOwnNames(O) { 12 if ( Type(O) !== 'Object') {12 if (!isObject(O)) { 13 13 throw new $TypeError('Assertion failed: Type(O) is not Object'); 14 14 } -
imaps-frontend/node_modules/es-abstract/2016/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/2016/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/2016/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/2016/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/2016/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/2016/GetSubstitution.js
r0c6b92a r79a0317 8 8 9 9 var inspect = require('object-inspect'); 10 10 var isInteger = require('math-intrinsics/isInteger'); 11 11 var regexTester = require('safe-regex-test'); 12 var callBound = require('call-b ind/callBound');12 var callBound = require('call-bound'); 13 13 var every = require('../helpers/every'); 14 14 … … 20 20 var IsArray = require('./IsArray'); 21 21 22 var isInteger = require('../helpers/isInteger');23 22 var isStringOrUndefined = require('../helpers/isStringOrUndefined'); 24 23 -
imaps-frontend/node_modules/es-abstract/2016/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/2016/GetValueFromBuffer.js
r0c6b92a r79a0317 6 6 var $Uint8Array = GetIntrinsic('%Uint8Array%', true); 7 7 8 var callBound = require('call-bind/callBound'); 8 var isInteger = require('math-intrinsics/isInteger'); 9 var callBound = require('call-bound'); 9 10 10 11 var $charAt = callBound('String.prototype.charAt'); … … 16 17 var bytesAsInteger = require('../helpers/bytesAsInteger'); 17 18 var defaultEndianness = require('../helpers/defaultEndianness'); 18 var isInteger = require('../helpers/isInteger');19 19 20 20 var IsDetachedBuffer = require('./IsDetachedBuffer'); … … 76 76 77 77 if (type === 'Float32') { // step 3 78 return bytesAsFloat32(bytes , true);78 return bytesAsFloat32(bytes); 79 79 } 80 80 81 81 if (type === 'Float64') { // step 4 82 return bytesAsFloat64(bytes , true);82 return bytesAsFloat64(bytes); 83 83 } 84 84 -
imaps-frontend/node_modules/es-abstract/2016/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/2016/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/2016/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/2016/IntegerIndexedElementGet.js
r0c6b92a r79a0317 3 3 var $SyntaxError = require('es-errors/syntax'); 4 4 var $TypeError = require('es-errors/type'); 5 var isNegativeZero = require('math-intrinsics/isNegativeZero'); 5 6 6 7 var GetValueFromBuffer = require('./GetValueFromBuffer'); 7 8 var IsDetachedBuffer = require('./IsDetachedBuffer'); 8 9 var IsInteger = require('./IsInteger'); 9 10 var isNegativeZero = require('../helpers/isNegativeZero');11 10 12 11 var typedArrayLength = require('typed-array-length'); -
imaps-frontend/node_modules/es-abstract/2016/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/2016/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/6.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 333 if (isObject(val)) { // step 3 34 34 var isArray = IsArray(val); // step 3.a 35 35 if (isArray) { // step 3.c -
imaps-frontend/node_modules/es-abstract/2016/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/2016/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/2016/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/2016/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/2016/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/2016/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/2016/IterableToArrayLike.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/2016/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/2016/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/2016/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/2016/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/2016/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/2016/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/2016/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/2016/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/2016/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/2016/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/2016/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/2016/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/2016/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/2016/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/2016/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/2016/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/2016/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 … … 28 28 var product = '"'; 29 29 if (value) { 30 forEach($strSplit(value ), function (C) {30 forEach($strSplit(value, ''), function (C) { 31 31 if (C === '"' || C === '\\') { 32 32 product += '\u005C' + C; -
imaps-frontend/node_modules/es-abstract/2016/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/2016/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/2016/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/2016/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/2016/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/2016/SetValueInBuffer.js
r0c6b92a r79a0317 6 6 var $Uint8Array = GetIntrinsic('%Uint8Array%', true); 7 7 8 var isInteger = require(' ../helpers/isInteger');8 var isInteger = require('math-intrinsics/isInteger'); 9 9 10 10 var IsDetachedBuffer = require('./IsDetachedBuffer'); … … 24 24 var TypeToAO = { 25 25 __proto__: null, 26 Int8: ToInt8,27 Uint8: ToUint8,28 Uint8C: ToUint8Clamp,29 Int16: ToInt16,30 Uint16: ToUint16,31 Int32: ToInt32,32 Uint32: ToUint3226 $Int8: ToInt8, 27 $Uint8: ToUint8, 28 $Uint8C: ToUint8Clamp, 29 $Int16: ToInt16, 30 $Uint16: ToUint16, 31 $Int32: ToInt32, 32 $Uint32: ToUint32 33 33 }; 34 34 … … 94 94 var n = elementSize; // step 3.a 95 95 96 var convOp = TypeToAO[ type]; // step 3.b96 var convOp = TypeToAO['$' + type]; // step 3.b 97 97 98 98 var intValue = convOp(value); // step 3.c -
imaps-frontend/node_modules/es-abstract/2016/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/2016/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/2016/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/2016/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/2016/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/2016/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/2016/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/2016/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/2016/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/2016/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/2016/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/2016/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/2016/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/2016/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/2016/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/2016/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/2016/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/2016/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/2016/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/2016/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/2016/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/2016/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/2016/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/2016/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/2016/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.