summaryrefslogtreecommitdiffstats
path: root/node_modules/es-abstract/2015
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/es-abstract/2015')
-rw-r--r--node_modules/es-abstract/2015/AbstractEqualityComparison.js37
-rw-r--r--node_modules/es-abstract/2015/AbstractRelationalComparison.js66
-rw-r--r--node_modules/es-abstract/2015/AdvanceStringIndex.js45
-rw-r--r--node_modules/es-abstract/2015/ArrayCreate.js53
-rw-r--r--node_modules/es-abstract/2015/ArraySetLength.js85
-rw-r--r--node_modules/es-abstract/2015/ArraySpeciesCreate.js46
-rw-r--r--node_modules/es-abstract/2015/Call.js13
-rw-r--r--node_modules/es-abstract/2015/CanonicalNumericIndexString.js22
-rw-r--r--node_modules/es-abstract/2015/CompletePropertyDescriptor.js39
-rw-r--r--node_modules/es-abstract/2015/CreateDataProperty.js45
-rw-r--r--node_modules/es-abstract/2015/CreateDataPropertyOrThrow.js25
-rw-r--r--node_modules/es-abstract/2015/CreateHTML.js30
-rw-r--r--node_modules/es-abstract/2015/CreateIterResultObject.js19
-rw-r--r--node_modules/es-abstract/2015/CreateListFromArrayLike.js43
-rw-r--r--node_modules/es-abstract/2015/CreateMethodProperty.js40
-rw-r--r--node_modules/es-abstract/2015/DateFromTime.js54
-rw-r--r--node_modules/es-abstract/2015/Day.js13
-rw-r--r--node_modules/es-abstract/2015/DayFromYear.js12
-rw-r--r--node_modules/es-abstract/2015/DayWithinYear.js11
-rw-r--r--node_modules/es-abstract/2015/DaysInYear.js18
-rw-r--r--node_modules/es-abstract/2015/DefinePropertyOrThrow.js50
-rw-r--r--node_modules/es-abstract/2015/DeletePropertyOrThrow.js27
-rw-r--r--node_modules/es-abstract/2015/EnumerableOwnNames.js19
-rw-r--r--node_modules/es-abstract/2015/FromPropertyDescriptor.js36
-rw-r--r--node_modules/es-abstract/2015/Get.js30
-rw-r--r--node_modules/es-abstract/2015/GetIterator.js35
-rw-r--r--node_modules/es-abstract/2015/GetMethod.js42
-rw-r--r--node_modules/es-abstract/2015/GetOwnPropertyKeys.js31
-rw-r--r--node_modules/es-abstract/2015/GetPrototypeFromConstructor.js28
-rw-r--r--node_modules/es-abstract/2015/GetSubstitution.js104
-rw-r--r--node_modules/es-abstract/2015/GetV.js29
-rw-r--r--node_modules/es-abstract/2015/HasOwnProperty.js22
-rw-r--r--node_modules/es-abstract/2015/HasProperty.js20
-rw-r--r--node_modules/es-abstract/2015/HourFromTime.js16
-rw-r--r--node_modules/es-abstract/2015/InLeapYear.js21
-rw-r--r--node_modules/es-abstract/2015/InstanceofOperator.js30
-rw-r--r--node_modules/es-abstract/2015/Invoke.js22
-rw-r--r--node_modules/es-abstract/2015/IsAccessorDescriptor.js23
-rw-r--r--node_modules/es-abstract/2015/IsArray.js14
-rw-r--r--node_modules/es-abstract/2015/IsCallable.js5
-rw-r--r--node_modules/es-abstract/2015/IsConcatSpreadable.js25
-rw-r--r--node_modules/es-abstract/2015/IsConstructor.js40
-rw-r--r--node_modules/es-abstract/2015/IsDataDescriptor.js23
-rw-r--r--node_modules/es-abstract/2015/IsExtensible.js20
-rw-r--r--node_modules/es-abstract/2015/IsGenericDescriptor.js23
-rw-r--r--node_modules/es-abstract/2015/IsInteger.js21
-rw-r--r--node_modules/es-abstract/2015/IsPromise.js24
-rw-r--r--node_modules/es-abstract/2015/IsPropertyDescriptor.js17
-rw-r--r--node_modules/es-abstract/2015/IsPropertyKey.js7
-rw-r--r--node_modules/es-abstract/2015/IsRegExp.js24
-rw-r--r--node_modules/es-abstract/2015/IteratorClose.js50
-rw-r--r--node_modules/es-abstract/2015/IteratorComplete.js18
-rw-r--r--node_modules/es-abstract/2015/IteratorNext.js18
-rw-r--r--node_modules/es-abstract/2015/IteratorStep.js13
-rw-r--r--node_modules/es-abstract/2015/IteratorValue.js18
-rw-r--r--node_modules/es-abstract/2015/MakeDate.js13
-rw-r--r--node_modules/es-abstract/2015/MakeDay.js33
-rw-r--r--node_modules/es-abstract/2015/MakeTime.js23
-rw-r--r--node_modules/es-abstract/2015/MinFromTime.js16
-rw-r--r--node_modules/es-abstract/2015/MonthFromTime.js47
-rw-r--r--node_modules/es-abstract/2015/ObjectCreate.js37
-rw-r--r--node_modules/es-abstract/2015/OrdinaryDefineOwnProperty.js61
-rw-r--r--node_modules/es-abstract/2015/OrdinaryGetOwnProperty.js44
-rw-r--r--node_modules/es-abstract/2015/OrdinaryHasInstance.js25
-rw-r--r--node_modules/es-abstract/2015/OrdinaryHasProperty.js20
-rw-r--r--node_modules/es-abstract/2015/RegExpExec.js32
-rw-r--r--node_modules/es-abstract/2015/RequireObjectCoercible.js3
-rw-r--r--node_modules/es-abstract/2015/SameValue.js13
-rw-r--r--node_modules/es-abstract/2015/SameValueZero.js9
-rw-r--r--node_modules/es-abstract/2015/SecFromTime.js16
-rw-r--r--node_modules/es-abstract/2015/Set.js47
-rw-r--r--node_modules/es-abstract/2015/SetFunctionName.js44
-rw-r--r--node_modules/es-abstract/2015/SetIntegrityLevel.js57
-rw-r--r--node_modules/es-abstract/2015/SpeciesConstructor.js32
-rw-r--r--node_modules/es-abstract/2015/StrictEqualityComparison.js17
-rw-r--r--node_modules/es-abstract/2015/SymbolDescriptiveString.js20
-rw-r--r--node_modules/es-abstract/2015/TestIntegrityLevel.js42
-rw-r--r--node_modules/es-abstract/2015/TimeClip.js21
-rw-r--r--node_modules/es-abstract/2015/TimeFromYear.js11
-rw-r--r--node_modules/es-abstract/2015/TimeWithinDay.js11
-rw-r--r--node_modules/es-abstract/2015/ToBoolean.js5
-rw-r--r--node_modules/es-abstract/2015/ToDateString.js22
-rw-r--r--node_modules/es-abstract/2015/ToInt16.js10
-rw-r--r--node_modules/es-abstract/2015/ToInt32.js9
-rw-r--r--node_modules/es-abstract/2015/ToInt8.js10
-rw-r--r--node_modules/es-abstract/2015/ToInteger.js12
-rw-r--r--node_modules/es-abstract/2015/ToLength.js12
-rw-r--r--node_modules/es-abstract/2015/ToNumber.js59
-rw-r--r--node_modules/es-abstract/2015/ToObject.js14
-rw-r--r--node_modules/es-abstract/2015/ToPrimitive.js12
-rw-r--r--node_modules/es-abstract/2015/ToPropertyDescriptor.js52
-rw-r--r--node_modules/es-abstract/2015/ToPropertyKey.js15
-rw-r--r--node_modules/es-abstract/2015/ToString.js15
-rw-r--r--node_modules/es-abstract/2015/ToUint16.js24
-rw-r--r--node_modules/es-abstract/2015/ToUint32.js9
-rw-r--r--node_modules/es-abstract/2015/ToUint8.js22
-rw-r--r--node_modules/es-abstract/2015/ToUint8Clamp.js24
-rw-r--r--node_modules/es-abstract/2015/Type.js12
-rw-r--r--node_modules/es-abstract/2015/ValidateAndApplyPropertyDescriptor.js170
-rw-r--r--node_modules/es-abstract/2015/WeekDay.js11
-rw-r--r--node_modules/es-abstract/2015/YearFromTime.js16
-rw-r--r--node_modules/es-abstract/2015/modulo.js9
-rw-r--r--node_modules/es-abstract/2015/msFromTime.js10
-rw-r--r--node_modules/es-abstract/2015/thisBooleanValue.js15
-rw-r--r--node_modules/es-abstract/2015/thisNumberValue.js18
-rw-r--r--node_modules/es-abstract/2015/thisStringValue.js15
-rw-r--r--node_modules/es-abstract/2015/thisTimeValue.js9
107 files changed, 0 insertions, 2966 deletions
diff --git a/node_modules/es-abstract/2015/AbstractEqualityComparison.js b/node_modules/es-abstract/2015/AbstractEqualityComparison.js
deleted file mode 100644
index 40b3909..0000000
--- a/node_modules/es-abstract/2015/AbstractEqualityComparison.js
+++ /dev/null
@@ -1,37 +0,0 @@
-'use strict';
-
-var ToNumber = require('./ToNumber');
-var ToPrimitive = require('./ToPrimitive');
-var Type = require('./Type');
-
-// https://www.ecma-international.org/ecma-262/6.0/#sec-abstract-equality-comparison
-
-module.exports = function AbstractEqualityComparison(x, y) {
- var xType = Type(x);
- var yType = Type(y);
- if (xType === yType) {
- return x === y; // ES6+ specified this shortcut anyways.
- }
- if (x == null && y == null) {
- return true;
- }
- if (xType === 'Number' && yType === 'String') {
- return AbstractEqualityComparison(x, ToNumber(y));
- }
- if (xType === 'String' && yType === 'Number') {
- return AbstractEqualityComparison(ToNumber(x), y);
- }
- if (xType === 'Boolean') {
- return AbstractEqualityComparison(ToNumber(x), y);
- }
- if (yType === 'Boolean') {
- return AbstractEqualityComparison(x, ToNumber(y));
- }
- if ((xType === 'String' || xType === 'Number' || xType === 'Symbol') && yType === 'Object') {
- return AbstractEqualityComparison(x, ToPrimitive(y));
- }
- if (xType === 'Object' && (yType === 'String' || yType === 'Number' || yType === 'Symbol')) {
- return AbstractEqualityComparison(ToPrimitive(x), y);
- }
- return false;
-};
diff --git a/node_modules/es-abstract/2015/AbstractRelationalComparison.js b/node_modules/es-abstract/2015/AbstractRelationalComparison.js
deleted file mode 100644
index bc7ca83..0000000
--- a/node_modules/es-abstract/2015/AbstractRelationalComparison.js
+++ /dev/null
@@ -1,66 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var $Number = GetIntrinsic('%Number%');
-var $TypeError = GetIntrinsic('%TypeError%');
-
-var $isNaN = require('../helpers/isNaN');
-var $isFinite = require('../helpers/isFinite');
-var isPrefixOf = require('../helpers/isPrefixOf');
-
-var ToNumber = require('./ToNumber');
-var ToPrimitive = require('./ToPrimitive');
-var Type = require('./Type');
-
-// https://www.ecma-international.org/ecma-262/5.1/#sec-11.8.5
-
-// eslint-disable-next-line max-statements
-module.exports = function AbstractRelationalComparison(x, y, LeftFirst) {
- if (Type(LeftFirst) !== 'Boolean') {
- throw new $TypeError('Assertion failed: LeftFirst argument must be a Boolean');
- }
- var px;
- var py;
- if (LeftFirst) {
- px = ToPrimitive(x, $Number);
- py = ToPrimitive(y, $Number);
- } else {
- py = ToPrimitive(y, $Number);
- px = ToPrimitive(x, $Number);
- }
- var bothStrings = Type(px) === 'String' && Type(py) === 'String';
- if (!bothStrings) {
- var nx = ToNumber(px);
- var ny = ToNumber(py);
- if ($isNaN(nx) || $isNaN(ny)) {
- return undefined;
- }
- if ($isFinite(nx) && $isFinite(ny) && nx === ny) {
- return false;
- }
- if (nx === 0 && ny === 0) {
- return false;
- }
- if (nx === Infinity) {
- return false;
- }
- if (ny === Infinity) {
- return true;
- }
- if (ny === -Infinity) {
- return false;
- }
- if (nx === -Infinity) {
- return true;
- }
- return nx < ny; // by now, these are both nonzero, finite, and not equal
- }
- if (isPrefixOf(py, px)) {
- return false;
- }
- if (isPrefixOf(px, py)) {
- return true;
- }
- return px < py; // both strings, neither a prefix of the other. shortcut for steps c-f
-};
diff --git a/node_modules/es-abstract/2015/AdvanceStringIndex.js b/node_modules/es-abstract/2015/AdvanceStringIndex.js
deleted file mode 100644
index 666f578..0000000
--- a/node_modules/es-abstract/2015/AdvanceStringIndex.js
+++ /dev/null
@@ -1,45 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var IsInteger = require('./IsInteger');
-var Type = require('./Type');
-
-var MAX_SAFE_INTEGER = require('../helpers/maxSafeInteger');
-
-var $TypeError = GetIntrinsic('%TypeError%');
-
-var $charCodeAt = require('../helpers/callBound')('String.prototype.charCodeAt');
-
-// https://ecma-international.org/ecma-262/6.0/#sec-advancestringindex
-
-module.exports = function AdvanceStringIndex(S, index, unicode) {
- if (Type(S) !== 'String') {
- throw new $TypeError('Assertion failed: `S` must be a String');
- }
- if (!IsInteger(index) || index < 0 || index > MAX_SAFE_INTEGER) {
- throw new $TypeError('Assertion failed: `length` must be an integer >= 0 and <= 2**53');
- }
- if (Type(unicode) !== 'Boolean') {
- throw new $TypeError('Assertion failed: `unicode` must be a Boolean');
- }
- if (!unicode) {
- return index + 1;
- }
- var length = S.length;
- if ((index + 1) >= length) {
- return index + 1;
- }
-
- var first = $charCodeAt(S, index);
- if (first < 0xD800 || first > 0xDBFF) {
- return index + 1;
- }
-
- var second = $charCodeAt(S, index + 1);
- if (second < 0xDC00 || second > 0xDFFF) {
- return index + 1;
- }
-
- return index + 2;
-};
diff --git a/node_modules/es-abstract/2015/ArrayCreate.js b/node_modules/es-abstract/2015/ArrayCreate.js
deleted file mode 100644
index fc9a7cf..0000000
--- a/node_modules/es-abstract/2015/ArrayCreate.js
+++ /dev/null
@@ -1,53 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var $ArrayPrototype = GetIntrinsic('%Array.prototype%');
-var $RangeError = GetIntrinsic('%RangeError%');
-var $SyntaxError = GetIntrinsic('%SyntaxError%');
-var $TypeError = GetIntrinsic('%TypeError%');
-
-var IsInteger = require('./IsInteger');
-
-var MAX_ARRAY_LENGTH = Math.pow(2, 32) - 1;
-
-var $setProto = GetIntrinsic('%Object.setPrototypeOf%', true) || (
- // eslint-disable-next-line no-proto, no-negated-condition
- [].__proto__ !== $ArrayPrototype
- ? null
- : function (O, proto) {
- O.__proto__ = proto; // eslint-disable-line no-proto, no-param-reassign
- return O;
- }
-);
-
-// https://www.ecma-international.org/ecma-262/6.0/#sec-arraycreate
-
-module.exports = function ArrayCreate(length) {
- if (!IsInteger(length) || length < 0) {
- throw new $TypeError('Assertion failed: `length` must be an integer Number >= 0');
- }
- if (length > MAX_ARRAY_LENGTH) {
- throw new $RangeError('length is greater than (2**32 - 1)');
- }
- var proto = arguments.length > 1 ? arguments[1] : $ArrayPrototype;
- var A = []; // steps 5 - 7, and 9
- if (proto !== $ArrayPrototype) { // step 8
- if (!$setProto) {
- throw new $SyntaxError('ArrayCreate: a `proto` argument that is not `Array.prototype` is not supported in an environment that does not support setting the [[Prototype]]');
- }
- $setProto(A, proto);
- }
- if (length !== 0) { // bypasses the need for step 2
- A.length = length;
- }
- /* step 10, the above as a shortcut for the below
- OrdinaryDefineOwnProperty(A, 'length', {
- '[[Configurable]]': false,
- '[[Enumerable]]': false,
- '[[Value]]': length,
- '[[Writable]]': true
- });
- */
- return A;
-};
diff --git a/node_modules/es-abstract/2015/ArraySetLength.js b/node_modules/es-abstract/2015/ArraySetLength.js
deleted file mode 100644
index c9134c6..0000000
--- a/node_modules/es-abstract/2015/ArraySetLength.js
+++ /dev/null
@@ -1,85 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var $RangeError = GetIntrinsic('%RangeError%');
-var $TypeError = GetIntrinsic('%TypeError%');
-
-var assign = require('object.assign');
-
-var isPropertyDescriptor = require('../helpers/isPropertyDescriptor');
-
-var IsArray = require('./IsArray');
-var IsAccessorDescriptor = require('./IsAccessorDescriptor');
-var IsDataDescriptor = require('./IsDataDescriptor');
-var OrdinaryDefineOwnProperty = require('./OrdinaryDefineOwnProperty');
-var OrdinaryGetOwnProperty = require('./OrdinaryGetOwnProperty');
-var ToNumber = require('./ToNumber');
-var ToString = require('./ToString');
-var ToUint32 = require('./ToUint32');
-var Type = require('./Type');
-
-// https://www.ecma-international.org/ecma-262/6.0/#sec-arraysetlength
-
-// eslint-disable-next-line max-statements, max-lines-per-function
-module.exports = function ArraySetLength(A, Desc) {
- if (!IsArray(A)) {
- throw new $TypeError('Assertion failed: A must be an Array');
- }
- if (!isPropertyDescriptor({
- Type: Type,
- IsDataDescriptor: IsDataDescriptor,
- IsAccessorDescriptor: IsAccessorDescriptor
- }, Desc)) {
- throw new $TypeError('Assertion failed: Desc must be a Property Descriptor');
- }
- if (!('[[Value]]' in Desc)) {
- return OrdinaryDefineOwnProperty(A, 'length', Desc);
- }
- var newLenDesc = assign({}, Desc);
- var newLen = ToUint32(Desc['[[Value]]']);
- var numberLen = ToNumber(Desc['[[Value]]']);
- if (newLen !== numberLen) {
- throw new $RangeError('Invalid array length');
- }
- newLenDesc['[[Value]]'] = newLen;
- var oldLenDesc = OrdinaryGetOwnProperty(A, 'length');
- if (!IsDataDescriptor(oldLenDesc)) {
- throw new $TypeError('Assertion failed: an array had a non-data descriptor on `length`');
- }
- var oldLen = oldLenDesc['[[Value]]'];
- if (newLen >= oldLen) {
- return OrdinaryDefineOwnProperty(A, 'length', newLenDesc);
- }
- if (!oldLenDesc['[[Writable]]']) {
- return false;
- }
- var newWritable;
- if (!('[[Writable]]' in newLenDesc) || newLenDesc['[[Writable]]']) {
- newWritable = true;
- } else {
- newWritable = false;
- newLenDesc['[[Writable]]'] = true;
- }
- var succeeded = OrdinaryDefineOwnProperty(A, 'length', newLenDesc);
- if (!succeeded) {
- return false;
- }
- while (newLen < oldLen) {
- oldLen -= 1;
- // eslint-disable-next-line no-param-reassign
- var deleteSucceeded = delete A[ToString(oldLen)];
- if (!deleteSucceeded) {
- newLenDesc['[[Value]]'] = oldLen + 1;
- if (!newWritable) {
- newLenDesc['[[Writable]]'] = false;
- OrdinaryDefineOwnProperty(A, 'length', newLenDesc);
- return false;
- }
- }
- }
- if (!newWritable) {
- return OrdinaryDefineOwnProperty(A, 'length', { '[[Writable]]': false });
- }
- return true;
-};
diff --git a/node_modules/es-abstract/2015/ArraySpeciesCreate.js b/node_modules/es-abstract/2015/ArraySpeciesCreate.js
deleted file mode 100644
index 98b9b56..0000000
--- a/node_modules/es-abstract/2015/ArraySpeciesCreate.js
+++ /dev/null
@@ -1,46 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var $Array = GetIntrinsic('%Array%');
-var $species = GetIntrinsic('%Symbol.species%', true);
-var $TypeError = GetIntrinsic('%TypeError%');
-
-var Get = require('./Get');
-var IsArray = require('./IsArray');
-var IsConstructor = require('./IsConstructor');
-var IsInteger = require('./IsInteger');
-var Type = require('./Type');
-
-// https://ecma-international.org/ecma-262/6.0/#sec-arrayspeciescreate
-
-module.exports = function ArraySpeciesCreate(originalArray, length) {
- if (!IsInteger(length) || length < 0) {
- throw new $TypeError('Assertion failed: length must be an integer >= 0');
- }
- var len = length === 0 ? 0 : length;
- var C;
- var isArray = IsArray(originalArray);
- if (isArray) {
- C = Get(originalArray, 'constructor');
- // TODO: figure out how to make a cross-realm normal Array, a same-realm Array
- // if (IsConstructor(C)) {
- // if C is another realm's Array, C = undefined
- // Object.getPrototypeOf(Object.getPrototypeOf(Object.getPrototypeOf(Array))) === null ?
- // }
- if ($species && Type(C) === 'Object') {
- C = Get(C, $species);
- if (C === null) {
- C = void 0;
- }
- }
- }
- if (typeof C === 'undefined') {
- return $Array(len);
- }
- if (!IsConstructor(C)) {
- throw new $TypeError('C must be a constructor');
- }
- return new C(len); // Construct(C, len);
-};
-
diff --git a/node_modules/es-abstract/2015/Call.js b/node_modules/es-abstract/2015/Call.js
deleted file mode 100644
index f0f0451..0000000
--- a/node_modules/es-abstract/2015/Call.js
+++ /dev/null
@@ -1,13 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-var callBound = require('../helpers/callBound');
-
-var $apply = GetIntrinsic('%Reflect.apply%', true) || callBound('%Function.prototype.apply%');
-
-// https://www.ecma-international.org/ecma-262/6.0/#sec-call
-
-module.exports = function Call(F, V) {
- var args = arguments.length > 2 ? arguments[2] : [];
- return $apply(F, V, args);
-};
diff --git a/node_modules/es-abstract/2015/CanonicalNumericIndexString.js b/node_modules/es-abstract/2015/CanonicalNumericIndexString.js
deleted file mode 100644
index 625f853..0000000
--- a/node_modules/es-abstract/2015/CanonicalNumericIndexString.js
+++ /dev/null
@@ -1,22 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var $TypeError = GetIntrinsic('%TypeError%');
-
-var SameValue = require('./SameValue');
-var ToNumber = require('./ToNumber');
-var ToString = require('./ToString');
-var Type = require('./Type');
-
-// https://ecma-international.org/ecma-262/6.0/#sec-canonicalnumericindexstring
-
-module.exports = function CanonicalNumericIndexString(argument) {
- if (Type(argument) !== 'String') {
- throw new $TypeError('Assertion failed: `argument` must be a String');
- }
- if (argument === '-0') { return -0; }
- var n = ToNumber(argument);
- if (SameValue(ToString(n), argument)) { return n; }
- return void 0;
-};
diff --git a/node_modules/es-abstract/2015/CompletePropertyDescriptor.js b/node_modules/es-abstract/2015/CompletePropertyDescriptor.js
deleted file mode 100644
index 548bf41..0000000
--- a/node_modules/es-abstract/2015/CompletePropertyDescriptor.js
+++ /dev/null
@@ -1,39 +0,0 @@
-'use strict';
-
-var has = require('has');
-
-var assertRecord = require('../helpers/assertRecord');
-
-var IsDataDescriptor = require('./IsDataDescriptor');
-var IsGenericDescriptor = require('./IsGenericDescriptor');
-var Type = require('./Type');
-
-// https://ecma-international.org/ecma-262/6.0/#sec-completepropertydescriptor
-
-module.exports = function CompletePropertyDescriptor(Desc) {
- /* eslint no-param-reassign: 0 */
- assertRecord(Type, 'Property Descriptor', 'Desc', Desc);
-
- if (IsGenericDescriptor(Desc) || IsDataDescriptor(Desc)) {
- if (!has(Desc, '[[Value]]')) {
- Desc['[[Value]]'] = void 0;
- }
- if (!has(Desc, '[[Writable]]')) {
- Desc['[[Writable]]'] = false;
- }
- } else {
- if (!has(Desc, '[[Get]]')) {
- Desc['[[Get]]'] = void 0;
- }
- if (!has(Desc, '[[Set]]')) {
- Desc['[[Set]]'] = void 0;
- }
- }
- if (!has(Desc, '[[Enumerable]]')) {
- Desc['[[Enumerable]]'] = false;
- }
- if (!has(Desc, '[[Configurable]]')) {
- Desc['[[Configurable]]'] = false;
- }
- return Desc;
-};
diff --git a/node_modules/es-abstract/2015/CreateDataProperty.js b/node_modules/es-abstract/2015/CreateDataProperty.js
deleted file mode 100644
index 32a86ef..0000000
--- a/node_modules/es-abstract/2015/CreateDataProperty.js
+++ /dev/null
@@ -1,45 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var $TypeError = GetIntrinsic('%TypeError%');
-
-var DefineOwnProperty = require('../helpers/DefineOwnProperty');
-
-var FromPropertyDescriptor = require('./FromPropertyDescriptor');
-var OrdinaryGetOwnProperty = require('./OrdinaryGetOwnProperty');
-var IsDataDescriptor = require('./IsDataDescriptor');
-var IsExtensible = require('./IsExtensible');
-var IsPropertyKey = require('./IsPropertyKey');
-var SameValue = require('./SameValue');
-var Type = require('./Type');
-
-// https://www.ecma-international.org/ecma-262/6.0/#sec-createdataproperty
-
-module.exports = function CreateDataProperty(O, P, V) {
- if (Type(O) !== 'Object') {
- throw new $TypeError('Assertion failed: Type(O) is not Object');
- }
- if (!IsPropertyKey(P)) {
- throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true');
- }
- var oldDesc = OrdinaryGetOwnProperty(O, P);
- var extensible = !oldDesc || IsExtensible(O);
- var immutable = oldDesc && (!oldDesc['[[Writable]]'] || !oldDesc['[[Configurable]]']);
- if (immutable || !extensible) {
- return false;
- }
- return DefineOwnProperty(
- IsDataDescriptor,
- SameValue,
- FromPropertyDescriptor,
- O,
- P,
- {
- '[[Configurable]]': true,
- '[[Enumerable]]': true,
- '[[Value]]': V,
- '[[Writable]]': true
- }
- );
-};
diff --git a/node_modules/es-abstract/2015/CreateDataPropertyOrThrow.js b/node_modules/es-abstract/2015/CreateDataPropertyOrThrow.js
deleted file mode 100644
index 9feaec8..0000000
--- a/node_modules/es-abstract/2015/CreateDataPropertyOrThrow.js
+++ /dev/null
@@ -1,25 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var $TypeError = GetIntrinsic('%TypeError%');
-
-var CreateDataProperty = require('./CreateDataProperty');
-var IsPropertyKey = require('./IsPropertyKey');
-var Type = require('./Type');
-
-// // https://ecma-international.org/ecma-262/6.0/#sec-createdatapropertyorthrow
-
-module.exports = function CreateDataPropertyOrThrow(O, P, V) {
- if (Type(O) !== 'Object') {
- throw new $TypeError('Assertion failed: Type(O) is not Object');
- }
- if (!IsPropertyKey(P)) {
- throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true');
- }
- var success = CreateDataProperty(O, P, V);
- if (!success) {
- throw new $TypeError('unable to create data property');
- }
- return success;
-};
diff --git a/node_modules/es-abstract/2015/CreateHTML.js b/node_modules/es-abstract/2015/CreateHTML.js
deleted file mode 100644
index 536c92d..0000000
--- a/node_modules/es-abstract/2015/CreateHTML.js
+++ /dev/null
@@ -1,30 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var $TypeError = GetIntrinsic('%TypeError%');
-
-var callBound = require('../helpers/callBound');
-
-var $replace = callBound('String.prototype.replace');
-
-var RequireObjectCoercible = require('./RequireObjectCoercible');
-var ToString = require('./ToString');
-var Type = require('./Type');
-
-// https://www.ecma-international.org/ecma-262/6.0/#sec-createhtml
-
-module.exports = function CreateHTML(string, tag, attribute, value) {
- if (Type(tag) !== 'String' || Type(attribute) !== 'String') {
- throw new $TypeError('Assertion failed: `tag` and `attribute` must be strings');
- }
- var str = RequireObjectCoercible(string);
- var S = ToString(str);
- var p1 = '<' + tag;
- if (attribute !== '') {
- var V = ToString(value);
- var escapedV = $replace(V, /\x22/g, '&quot;');
- p1 += '\x20' + attribute + '\x3D\x22' + escapedV + '\x22';
- }
- return p1 + '>' + S + '</' + tag + '>';
-};
diff --git a/node_modules/es-abstract/2015/CreateIterResultObject.js b/node_modules/es-abstract/2015/CreateIterResultObject.js
deleted file mode 100644
index aef1d22..0000000
--- a/node_modules/es-abstract/2015/CreateIterResultObject.js
+++ /dev/null
@@ -1,19 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var $TypeError = GetIntrinsic('%TypeError%');
-
-var Type = require('./Type');
-
-// https://ecma-international.org/ecma-262/6.0/#sec-createiterresultobject
-
-module.exports = function CreateIterResultObject(value, done) {
- if (Type(done) !== 'Boolean') {
- throw new $TypeError('Assertion failed: Type(done) is not Boolean');
- }
- return {
- value: value,
- done: done
- };
-};
diff --git a/node_modules/es-abstract/2015/CreateListFromArrayLike.js b/node_modules/es-abstract/2015/CreateListFromArrayLike.js
deleted file mode 100644
index d6b44b5..0000000
--- a/node_modules/es-abstract/2015/CreateListFromArrayLike.js
+++ /dev/null
@@ -1,43 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var callBound = require('../helpers/callBound');
-
-var $TypeError = GetIntrinsic('%TypeError%');
-var $indexOf = callBound('Array.prototype.indexOf', true) || callBound('String.prototype.indexOf');
-var $push = callBound('Array.prototype.push');
-
-var Get = require('./Get');
-var IsArray = require('./IsArray');
-var ToLength = require('./ToLength');
-var ToString = require('./ToString');
-var Type = require('./Type');
-
-// https://ecma-international.org/ecma-262/6.0/#sec-createlistfromarraylike
-module.exports = function CreateListFromArrayLike(obj) {
- var elementTypes = arguments.length > 1
- ? arguments[1]
- : ['Undefined', 'Null', 'Boolean', 'String', 'Symbol', 'Number', 'Object'];
-
- if (Type(obj) !== 'Object') {
- throw new $TypeError('Assertion failed: `obj` must be an Object');
- }
- if (!IsArray(elementTypes)) {
- throw new $TypeError('Assertion failed: `elementTypes`, if provided, must be an array');
- }
- var len = ToLength(Get(obj, 'length'));
- var list = [];
- var index = 0;
- while (index < len) {
- var indexName = ToString(index);
- var next = Get(obj, indexName);
- var nextType = Type(next);
- if ($indexOf(elementTypes, nextType) < 0) {
- throw new $TypeError('item type ' + nextType + ' is not a valid elementType');
- }
- $push(list, next);
- index += 1;
- }
- return list;
-};
diff --git a/node_modules/es-abstract/2015/CreateMethodProperty.js b/node_modules/es-abstract/2015/CreateMethodProperty.js
deleted file mode 100644
index 5b599ae..0000000
--- a/node_modules/es-abstract/2015/CreateMethodProperty.js
+++ /dev/null
@@ -1,40 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var $TypeError = GetIntrinsic('%TypeError%');
-
-var DefineOwnProperty = require('../helpers/DefineOwnProperty');
-
-var FromPropertyDescriptor = require('./FromPropertyDescriptor');
-var IsDataDescriptor = require('./IsDataDescriptor');
-var IsPropertyKey = require('./IsPropertyKey');
-var SameValue = require('./SameValue');
-var Type = require('./Type');
-
-// https://www.ecma-international.org/ecma-262/6.0/#sec-createmethodproperty
-
-module.exports = function CreateMethodProperty(O, P, V) {
- if (Type(O) !== 'Object') {
- throw new $TypeError('Assertion failed: Type(O) is not Object');
- }
-
- if (!IsPropertyKey(P)) {
- throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true');
- }
-
- var newDesc = {
- '[[Configurable]]': true,
- '[[Enumerable]]': false,
- '[[Value]]': V,
- '[[Writable]]': true
- };
- return DefineOwnProperty(
- IsDataDescriptor,
- SameValue,
- FromPropertyDescriptor,
- O,
- P,
- newDesc
- );
-};
diff --git a/node_modules/es-abstract/2015/DateFromTime.js b/node_modules/es-abstract/2015/DateFromTime.js
deleted file mode 100644
index 962dba1..0000000
--- a/node_modules/es-abstract/2015/DateFromTime.js
+++ /dev/null
@@ -1,54 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var $EvalError = GetIntrinsic('%EvalError%');
-
-var DayWithinYear = require('./DayWithinYear');
-var InLeapYear = require('./InLeapYear');
-var MonthFromTime = require('./MonthFromTime');
-
-// https://ecma-international.org/ecma-262/5.1/#sec-15.9.1.5
-
-module.exports = function DateFromTime(t) {
- var m = MonthFromTime(t);
- var d = DayWithinYear(t);
- if (m === 0) {
- return d + 1;
- }
- if (m === 1) {
- return d - 30;
- }
- var leap = InLeapYear(t);
- if (m === 2) {
- return d - 58 - leap;
- }
- if (m === 3) {
- return d - 89 - leap;
- }
- if (m === 4) {
- return d - 119 - leap;
- }
- if (m === 5) {
- return d - 150 - leap;
- }
- if (m === 6) {
- return d - 180 - leap;
- }
- if (m === 7) {
- return d - 211 - leap;
- }
- if (m === 8) {
- return d - 242 - leap;
- }
- if (m === 9) {
- return d - 272 - leap;
- }
- if (m === 10) {
- return d - 303 - leap;
- }
- if (m === 11) {
- return d - 333 - leap;
- }
- throw new $EvalError('Assertion failed: MonthFromTime returned an impossible value: ' + m);
-};
diff --git a/node_modules/es-abstract/2015/Day.js b/node_modules/es-abstract/2015/Day.js
deleted file mode 100644
index 00df813..0000000
--- a/node_modules/es-abstract/2015/Day.js
+++ /dev/null
@@ -1,13 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var $floor = GetIntrinsic('%Math.floor%');
-
-var msPerDay = require('../helpers/timeConstants').msPerDay;
-
-// https://ecma-international.org/ecma-262/5.1/#sec-15.9.1.2
-
-module.exports = function Day(t) {
- return $floor(t / msPerDay);
-};
diff --git a/node_modules/es-abstract/2015/DayFromYear.js b/node_modules/es-abstract/2015/DayFromYear.js
deleted file mode 100644
index 08dd5af..0000000
--- a/node_modules/es-abstract/2015/DayFromYear.js
+++ /dev/null
@@ -1,12 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var $floor = GetIntrinsic('%Math.floor%');
-
-// https://ecma-international.org/ecma-262/5.1/#sec-15.9.1.3
-
-module.exports = function DayFromYear(y) {
- return (365 * (y - 1970)) + $floor((y - 1969) / 4) - $floor((y - 1901) / 100) + $floor((y - 1601) / 400);
-};
-
diff --git a/node_modules/es-abstract/2015/DayWithinYear.js b/node_modules/es-abstract/2015/DayWithinYear.js
deleted file mode 100644
index cfc4002..0000000
--- a/node_modules/es-abstract/2015/DayWithinYear.js
+++ /dev/null
@@ -1,11 +0,0 @@
-'use strict';
-
-var Day = require('./Day');
-var DayFromYear = require('./DayFromYear');
-var YearFromTime = require('./YearFromTime');
-
-// https://ecma-international.org/ecma-262/5.1/#sec-15.9.1.4
-
-module.exports = function DayWithinYear(t) {
- return Day(t) - DayFromYear(YearFromTime(t));
-};
diff --git a/node_modules/es-abstract/2015/DaysInYear.js b/node_modules/es-abstract/2015/DaysInYear.js
deleted file mode 100644
index db32251..0000000
--- a/node_modules/es-abstract/2015/DaysInYear.js
+++ /dev/null
@@ -1,18 +0,0 @@
-'use strict';
-
-var mod = require('../helpers/mod');
-
-// https://ecma-international.org/ecma-262/5.1/#sec-15.9.1.3
-
-module.exports = function DaysInYear(y) {
- if (mod(y, 4) !== 0) {
- return 365;
- }
- if (mod(y, 100) !== 0) {
- return 366;
- }
- if (mod(y, 400) !== 0) {
- return 365;
- }
- return 366;
-};
diff --git a/node_modules/es-abstract/2015/DefinePropertyOrThrow.js b/node_modules/es-abstract/2015/DefinePropertyOrThrow.js
deleted file mode 100644
index 7977f6e..0000000
--- a/node_modules/es-abstract/2015/DefinePropertyOrThrow.js
+++ /dev/null
@@ -1,50 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var $TypeError = GetIntrinsic('%TypeError%');
-
-var isPropertyDescriptor = require('../helpers/isPropertyDescriptor');
-var DefineOwnProperty = require('../helpers/DefineOwnProperty');
-
-var FromPropertyDescriptor = require('./FromPropertyDescriptor');
-var IsAccessorDescriptor = require('./IsAccessorDescriptor');
-var IsDataDescriptor = require('./IsDataDescriptor');
-var IsPropertyKey = require('./IsPropertyKey');
-var SameValue = require('./SameValue');
-var ToPropertyDescriptor = require('./ToPropertyDescriptor');
-var Type = require('./Type');
-
-// https://www.ecma-international.org/ecma-262/6.0/#sec-definepropertyorthrow
-
-module.exports = function DefinePropertyOrThrow(O, P, desc) {
- if (Type(O) !== 'Object') {
- throw new $TypeError('Assertion failed: Type(O) is not Object');
- }
-
- if (!IsPropertyKey(P)) {
- throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true');
- }
-
- var Desc = isPropertyDescriptor({
- Type: Type,
- IsDataDescriptor: IsDataDescriptor,
- IsAccessorDescriptor: IsAccessorDescriptor
- }, desc) ? desc : ToPropertyDescriptor(desc);
- if (!isPropertyDescriptor({
- Type: Type,
- IsDataDescriptor: IsDataDescriptor,
- IsAccessorDescriptor: IsAccessorDescriptor
- }, Desc)) {
- throw new $TypeError('Assertion failed: Desc is not a valid Property Descriptor');
- }
-
- return DefineOwnProperty(
- IsDataDescriptor,
- SameValue,
- FromPropertyDescriptor,
- O,
- P,
- Desc
- );
-};
diff --git a/node_modules/es-abstract/2015/DeletePropertyOrThrow.js b/node_modules/es-abstract/2015/DeletePropertyOrThrow.js
deleted file mode 100644
index b476817..0000000
--- a/node_modules/es-abstract/2015/DeletePropertyOrThrow.js
+++ /dev/null
@@ -1,27 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var $TypeError = GetIntrinsic('%TypeError%');
-
-var IsPropertyKey = require('./IsPropertyKey');
-var Type = require('./Type');
-
-// https://www.ecma-international.org/ecma-262/6.0/#sec-deletepropertyorthrow
-
-module.exports = function DeletePropertyOrThrow(O, P) {
- if (Type(O) !== 'Object') {
- throw new $TypeError('Assertion failed: Type(O) is not Object');
- }
-
- if (!IsPropertyKey(P)) {
- throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true');
- }
-
- // eslint-disable-next-line no-param-reassign
- var success = delete O[P];
- if (!success) {
- throw new $TypeError('Attempt to delete property failed.');
- }
- return success;
-};
diff --git a/node_modules/es-abstract/2015/EnumerableOwnNames.js b/node_modules/es-abstract/2015/EnumerableOwnNames.js
deleted file mode 100644
index d068584..0000000
--- a/node_modules/es-abstract/2015/EnumerableOwnNames.js
+++ /dev/null
@@ -1,19 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var $TypeError = GetIntrinsic('%TypeError%');
-
-var keys = require('object-keys');
-
-var Type = require('./Type');
-
-// https://www.ecma-international.org/ecma-262/6.0/#sec-enumerableownnames
-
-module.exports = function EnumerableOwnNames(O) {
- if (Type(O) !== 'Object') {
- throw new $TypeError('Assertion failed: Type(O) is not Object');
- }
-
- return keys(O);
-};
diff --git a/node_modules/es-abstract/2015/FromPropertyDescriptor.js b/node_modules/es-abstract/2015/FromPropertyDescriptor.js
deleted file mode 100644
index 5ec200e..0000000
--- a/node_modules/es-abstract/2015/FromPropertyDescriptor.js
+++ /dev/null
@@ -1,36 +0,0 @@
-'use strict';
-
-var assertRecord = require('../helpers/assertRecord');
-
-var Type = require('./Type');
-
-// https://www.ecma-international.org/ecma-262/6.0/#sec-frompropertydescriptor
-
-module.exports = function FromPropertyDescriptor(Desc) {
- if (typeof Desc === 'undefined') {
- return Desc;
- }
-
- assertRecord(Type, 'Property Descriptor', 'Desc', Desc);
-
- var obj = {};
- if ('[[Value]]' in Desc) {
- obj.value = Desc['[[Value]]'];
- }
- if ('[[Writable]]' in Desc) {
- obj.writable = Desc['[[Writable]]'];
- }
- if ('[[Get]]' in Desc) {
- obj.get = Desc['[[Get]]'];
- }
- if ('[[Set]]' in Desc) {
- obj.set = Desc['[[Set]]'];
- }
- if ('[[Enumerable]]' in Desc) {
- obj.enumerable = Desc['[[Enumerable]]'];
- }
- if ('[[Configurable]]' in Desc) {
- obj.configurable = Desc['[[Configurable]]'];
- }
- return obj;
-};
diff --git a/node_modules/es-abstract/2015/Get.js b/node_modules/es-abstract/2015/Get.js
deleted file mode 100644
index 5b9ad78..0000000
--- a/node_modules/es-abstract/2015/Get.js
+++ /dev/null
@@ -1,30 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var $TypeError = GetIntrinsic('%TypeError%');
-
-var inspect = require('object-inspect');
-
-var IsPropertyKey = require('./IsPropertyKey');
-var Type = require('./Type');
-
-/**
- * 7.3.1 Get (O, P) - https://ecma-international.org/ecma-262/6.0/#sec-get-o-p
- * 1. Assert: Type(O) is Object.
- * 2. Assert: IsPropertyKey(P) is true.
- * 3. Return O.[[Get]](P, O).
- */
-
-module.exports = function Get(O, P) {
- // 7.3.1.1
- if (Type(O) !== 'Object') {
- throw new $TypeError('Assertion failed: Type(O) is not Object');
- }
- // 7.3.1.2
- if (!IsPropertyKey(P)) {
- throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true, got ' + inspect(P));
- }
- // 7.3.1.3
- return O[P];
-};
diff --git a/node_modules/es-abstract/2015/GetIterator.js b/node_modules/es-abstract/2015/GetIterator.js
deleted file mode 100644
index 7beddac..0000000
--- a/node_modules/es-abstract/2015/GetIterator.js
+++ /dev/null
@@ -1,35 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var $TypeError = GetIntrinsic('%TypeError%');
-
-var getIteratorMethod = require('../helpers/getIteratorMethod');
-var AdvanceStringIndex = require('./AdvanceStringIndex');
-var Call = require('./Call');
-var GetMethod = require('./GetMethod');
-var IsArray = require('./IsArray');
-var Type = require('./Type');
-
-// https://ecma-international.org/ecma-262/6.0/#sec-getiterator
-
-module.exports = function GetIterator(obj, method) {
- var actualMethod = method;
- if (arguments.length < 2) {
- actualMethod = getIteratorMethod(
- {
- AdvanceStringIndex: AdvanceStringIndex,
- GetMethod: GetMethod,
- IsArray: IsArray,
- Type: Type
- },
- obj
- );
- }
- var iterator = Call(actualMethod, obj);
- if (Type(iterator) !== 'Object') {
- throw new $TypeError('iterator must return an object');
- }
-
- return iterator;
-};
diff --git a/node_modules/es-abstract/2015/GetMethod.js b/node_modules/es-abstract/2015/GetMethod.js
deleted file mode 100644
index aef8cbc..0000000
--- a/node_modules/es-abstract/2015/GetMethod.js
+++ /dev/null
@@ -1,42 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var $TypeError = GetIntrinsic('%TypeError%');
-
-var GetV = require('./GetV');
-var IsCallable = require('./IsCallable');
-var IsPropertyKey = require('./IsPropertyKey');
-
-/**
- * 7.3.9 - https://ecma-international.org/ecma-262/6.0/#sec-getmethod
- * 1. Assert: IsPropertyKey(P) is true.
- * 2. Let func be GetV(O, P).
- * 3. ReturnIfAbrupt(func).
- * 4. If func is either undefined or null, return undefined.
- * 5. If IsCallable(func) is false, throw a TypeError exception.
- * 6. Return func.
- */
-
-module.exports = function GetMethod(O, P) {
- // 7.3.9.1
- if (!IsPropertyKey(P)) {
- throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true');
- }
-
- // 7.3.9.2
- var func = GetV(O, P);
-
- // 7.3.9.4
- if (func == null) {
- return void 0;
- }
-
- // 7.3.9.5
- if (!IsCallable(func)) {
- throw new $TypeError(P + 'is not a function');
- }
-
- // 7.3.9.6
- return func;
-};
diff --git a/node_modules/es-abstract/2015/GetOwnPropertyKeys.js b/node_modules/es-abstract/2015/GetOwnPropertyKeys.js
deleted file mode 100644
index 8d7e5ee..0000000
--- a/node_modules/es-abstract/2015/GetOwnPropertyKeys.js
+++ /dev/null
@@ -1,31 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var hasSymbols = require('has-symbols')();
-
-var $TypeError = GetIntrinsic('%TypeError%');
-
-var $gOPN = GetIntrinsic('%Object.getOwnPropertyNames%');
-var $gOPS = hasSymbols && GetIntrinsic('%Object.getOwnPropertySymbols%');
-var keys = require('object-keys');
-
-var esType = require('./Type');
-
-// https://www.ecma-international.org/ecma-262/6.0/#sec-getownpropertykeys
-
-module.exports = function GetOwnPropertyKeys(O, Type) {
- if (esType(O) !== 'Object') {
- throw new $TypeError('Assertion failed: Type(O) is not Object');
- }
- if (Type === 'Symbol') {
- return $gOPS ? $gOPS(O) : [];
- }
- if (Type === 'String') {
- if (!$gOPN) {
- return keys(O);
- }
- return $gOPN(O);
- }
- throw new $TypeError('Assertion failed: `Type` must be `"String"` or `"Symbol"`');
-};
diff --git a/node_modules/es-abstract/2015/GetPrototypeFromConstructor.js b/node_modules/es-abstract/2015/GetPrototypeFromConstructor.js
deleted file mode 100644
index 62da8fb..0000000
--- a/node_modules/es-abstract/2015/GetPrototypeFromConstructor.js
+++ /dev/null
@@ -1,28 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var $Function = GetIntrinsic('%Function%');
-var $TypeError = GetIntrinsic('%TypeError%');
-
-var Get = require('./Get');
-var IsConstructor = require('./IsConstructor');
-var Type = require('./Type');
-
-// https://ecma-international.org/ecma-262/6.0/#sec-getprototypefromconstructor
-
-module.exports = function GetPrototypeFromConstructor(constructor, intrinsicDefaultProto) {
- var intrinsic = GetIntrinsic(intrinsicDefaultProto); // throws if not a valid intrinsic
- if (!IsConstructor(constructor)) {
- throw new $TypeError('Assertion failed: `constructor` must be a constructor');
- }
- var proto = Get(constructor, 'prototype');
- if (Type(proto) !== 'Object') {
- if (!(constructor instanceof $Function)) {
- // ignore other realms, for now
- throw new $TypeError('cross-realm constructors not currently supported');
- }
- proto = intrinsic;
- }
- return proto;
-};
diff --git a/node_modules/es-abstract/2015/GetSubstitution.js b/node_modules/es-abstract/2015/GetSubstitution.js
deleted file mode 100644
index de41b01..0000000
--- a/node_modules/es-abstract/2015/GetSubstitution.js
+++ /dev/null
@@ -1,104 +0,0 @@
-
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var $TypeError = GetIntrinsic('%TypeError%');
-var $parseInt = GetIntrinsic('%parseInt%');
-
-var inspect = require('object-inspect');
-
-var regexTester = require('../helpers/regexTester');
-var callBound = require('../helpers/callBound');
-var every = require('../helpers/every');
-
-var isDigit = regexTester(/^[0-9]$/);
-
-var $charAt = callBound('String.prototype.charAt');
-var $strSlice = callBound('String.prototype.slice');
-
-var IsArray = require('./IsArray');
-var IsInteger = require('./IsInteger');
-var Type = require('./Type');
-
-var canDistinguishSparseFromUndefined = 0 in [undefined]; // IE 6 - 8 have a bug where this returns false
-
-var isStringOrHole = function (capture, index, arr) {
- return Type(capture) === 'String' || (canDistinguishSparseFromUndefined ? !(index in arr) : Type(capture) === 'Undefined');
-};
-
-// https://www.ecma-international.org/ecma-262/6.0/#sec-getsubstitution
-
-// eslint-disable-next-line max-statements, max-params, max-lines-per-function
-module.exports = function GetSubstitution(matched, str, position, captures, replacement) {
- if (Type(matched) !== 'String') {
- throw new $TypeError('Assertion failed: `matched` must be a String');
- }
- var matchLength = matched.length;
-
- if (Type(str) !== 'String') {
- throw new $TypeError('Assertion failed: `str` must be a String');
- }
- var stringLength = str.length;
-
- if (!IsInteger(position) || position < 0 || position > stringLength) {
- throw new $TypeError('Assertion failed: `position` must be a nonnegative integer, and less than or equal to the length of `string`, got ' + inspect(position));
- }
-
- if (!IsArray(captures) || !every(captures, isStringOrHole)) {
- throw new $TypeError('Assertion failed: `captures` must be a List of Strings, got ' + inspect(captures));
- }
-
- if (Type(replacement) !== 'String') {
- throw new $TypeError('Assertion failed: `replacement` must be a String');
- }
-
- var tailPos = position + matchLength;
- var m = captures.length;
-
- var result = '';
- for (var i = 0; i < replacement.length; i += 1) {
- // if this is a $, and it's not the end of the replacement
- var current = $charAt(replacement, i);
- var isLast = (i + 1) >= replacement.length;
- var nextIsLast = (i + 2) >= replacement.length;
- if (current === '$' && !isLast) {
- var next = $charAt(replacement, i + 1);
- if (next === '$') {
- result += '$';
- i += 1;
- } else if (next === '&') {
- result += matched;
- i += 1;
- } else if (next === '`') {
- result += position === 0 ? '' : $strSlice(str, 0, position - 1);
- i += 1;
- } else if (next === "'") {
- result += tailPos >= stringLength ? '' : $strSlice(str, tailPos);
- i += 1;
- } else {
- var nextNext = nextIsLast ? null : $charAt(replacement, i + 2);
- if (isDigit(next) && next !== '0' && (nextIsLast || !isDigit(nextNext))) {
- // $1 through $9, and not followed by a digit
- var n = $parseInt(next, 10);
- // if (n > m, impl-defined)
- result += (n <= m && Type(captures[n - 1]) === 'Undefined') ? '' : captures[n - 1];
- i += 1;
- } else if (isDigit(next) && (nextIsLast || isDigit(nextNext))) {
- // $00 through $99
- var nn = next + nextNext;
- var nnI = $parseInt(nn, 10) - 1;
- // if nn === '00' or nn > m, impl-defined
- result += (nn <= m && Type(captures[nnI]) === 'Undefined') ? '' : captures[nnI];
- i += 2;
- } else {
- result += '$';
- }
- }
- } else {
- // the final $, or else not a $
- result += $charAt(replacement, i);
- }
- }
- return result;
-};
diff --git a/node_modules/es-abstract/2015/GetV.js b/node_modules/es-abstract/2015/GetV.js
deleted file mode 100644
index 7b5139a..0000000
--- a/node_modules/es-abstract/2015/GetV.js
+++ /dev/null
@@ -1,29 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var $TypeError = GetIntrinsic('%TypeError%');
-
-var IsPropertyKey = require('./IsPropertyKey');
-var ToObject = require('./ToObject');
-
-/**
- * 7.3.2 GetV (V, P)
- * 1. Assert: IsPropertyKey(P) is true.
- * 2. Let O be ToObject(V).
- * 3. ReturnIfAbrupt(O).
- * 4. Return O.[[Get]](P, V).
- */
-
-module.exports = function GetV(V, P) {
- // 7.3.2.1
- if (!IsPropertyKey(P)) {
- throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true');
- }
-
- // 7.3.2.2-3
- var O = ToObject(V);
-
- // 7.3.2.4
- return O[P];
-};
diff --git a/node_modules/es-abstract/2015/HasOwnProperty.js b/node_modules/es-abstract/2015/HasOwnProperty.js
deleted file mode 100644
index 679059f..0000000
--- a/node_modules/es-abstract/2015/HasOwnProperty.js
+++ /dev/null
@@ -1,22 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var $TypeError = GetIntrinsic('%TypeError%');
-
-var has = require('has');
-
-var IsPropertyKey = require('./IsPropertyKey');
-var Type = require('./Type');
-
-// https://ecma-international.org/ecma-262/6.0/#sec-hasownproperty
-
-module.exports = function HasOwnProperty(O, P) {
- if (Type(O) !== 'Object') {
- throw new $TypeError('Assertion failed: `O` must be an Object');
- }
- if (!IsPropertyKey(P)) {
- throw new $TypeError('Assertion failed: `P` must be a Property Key');
- }
- return has(O, P);
-};
diff --git a/node_modules/es-abstract/2015/HasProperty.js b/node_modules/es-abstract/2015/HasProperty.js
deleted file mode 100644
index 5f2d212..0000000
--- a/node_modules/es-abstract/2015/HasProperty.js
+++ /dev/null
@@ -1,20 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var $TypeError = GetIntrinsic('%TypeError%');
-
-var IsPropertyKey = require('./IsPropertyKey');
-var Type = require('./Type');
-
-// https://ecma-international.org/ecma-262/6.0/#sec-hasproperty
-
-module.exports = function HasProperty(O, P) {
- if (Type(O) !== 'Object') {
- throw new $TypeError('Assertion failed: `O` must be an Object');
- }
- if (!IsPropertyKey(P)) {
- throw new $TypeError('Assertion failed: `P` must be a Property Key');
- }
- return P in O;
-};
diff --git a/node_modules/es-abstract/2015/HourFromTime.js b/node_modules/es-abstract/2015/HourFromTime.js
deleted file mode 100644
index 957ce32..0000000
--- a/node_modules/es-abstract/2015/HourFromTime.js
+++ /dev/null
@@ -1,16 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var $floor = GetIntrinsic('%Math.floor%');
-
-var mod = require('../helpers/mod');
-var timeConstants = require('../helpers/timeConstants');
-var msPerHour = timeConstants.msPerHour;
-var HoursPerDay = timeConstants.HoursPerDay;
-
-// https://ecma-international.org/ecma-262/5.1/#sec-15.9.1.10
-
-module.exports = function HourFromTime(t) {
- return mod($floor(t / msPerHour), HoursPerDay);
-};
diff --git a/node_modules/es-abstract/2015/InLeapYear.js b/node_modules/es-abstract/2015/InLeapYear.js
deleted file mode 100644
index 38ba8fd..0000000
--- a/node_modules/es-abstract/2015/InLeapYear.js
+++ /dev/null
@@ -1,21 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var $EvalError = GetIntrinsic('%EvalError%');
-
-var DaysInYear = require('./DaysInYear');
-var YearFromTime = require('./YearFromTime');
-
-// https://ecma-international.org/ecma-262/5.1/#sec-15.9.1.3
-
-module.exports = function InLeapYear(t) {
- var days = DaysInYear(YearFromTime(t));
- if (days === 365) {
- return 0;
- }
- if (days === 366) {
- return 1;
- }
- throw new $EvalError('Assertion failed: there are not 365 or 366 days in a year, got: ' + days);
-};
diff --git a/node_modules/es-abstract/2015/InstanceofOperator.js b/node_modules/es-abstract/2015/InstanceofOperator.js
deleted file mode 100644
index ebd308c..0000000
--- a/node_modules/es-abstract/2015/InstanceofOperator.js
+++ /dev/null
@@ -1,30 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var $TypeError = GetIntrinsic('%TypeError%');
-
-var $hasInstance = GetIntrinsic('Symbol.hasInstance', true);
-
-var Call = require('./Call');
-var GetMethod = require('./GetMethod');
-var IsCallable = require('./IsCallable');
-var OrdinaryHasInstance = require('./OrdinaryHasInstance');
-var ToBoolean = require('./ToBoolean');
-var Type = require('./Type');
-
-// https://www.ecma-international.org/ecma-262/6.0/#sec-instanceofoperator
-
-module.exports = function InstanceofOperator(O, C) {
- if (Type(O) !== 'Object') {
- throw new $TypeError('Assertion failed: Type(O) is not Object');
- }
- var instOfHandler = $hasInstance ? GetMethod(C, $hasInstance) : void 0;
- if (typeof instOfHandler !== 'undefined') {
- return ToBoolean(Call(instOfHandler, C, [O]));
- }
- if (!IsCallable(C)) {
- throw new $TypeError('`C` is not Callable');
- }
- return OrdinaryHasInstance(C, O);
-};
diff --git a/node_modules/es-abstract/2015/Invoke.js b/node_modules/es-abstract/2015/Invoke.js
deleted file mode 100644
index 769f0e3..0000000
--- a/node_modules/es-abstract/2015/Invoke.js
+++ /dev/null
@@ -1,22 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var $TypeError = GetIntrinsic('%TypeError%');
-
-var $arraySlice = require('../helpers/callBound')('Array.prototype.slice');
-
-var Call = require('./Call');
-var GetV = require('./GetV');
-var IsPropertyKey = require('./IsPropertyKey');
-
-// https://ecma-international.org/ecma-262/6.0/#sec-invoke
-
-module.exports = function Invoke(O, P) {
- if (!IsPropertyKey(P)) {
- throw new $TypeError('P must be a Property Key');
- }
- var argumentsList = $arraySlice(arguments, 2);
- var func = GetV(O, P);
- return Call(func, O, argumentsList);
-};
diff --git a/node_modules/es-abstract/2015/IsAccessorDescriptor.js b/node_modules/es-abstract/2015/IsAccessorDescriptor.js
deleted file mode 100644
index 5139464..0000000
--- a/node_modules/es-abstract/2015/IsAccessorDescriptor.js
+++ /dev/null
@@ -1,23 +0,0 @@
-'use strict';
-
-var has = require('has');
-
-var assertRecord = require('../helpers/assertRecord');
-
-var Type = require('./Type');
-
-// https://www.ecma-international.org/ecma-262/6.0/#sec-isaccessordescriptor
-
-module.exports = function IsAccessorDescriptor(Desc) {
- if (typeof Desc === 'undefined') {
- return false;
- }
-
- assertRecord(Type, 'Property Descriptor', 'Desc', Desc);
-
- if (!has(Desc, '[[Get]]') && !has(Desc, '[[Set]]')) {
- return false;
- }
-
- return true;
-};
diff --git a/node_modules/es-abstract/2015/IsArray.js b/node_modules/es-abstract/2015/IsArray.js
deleted file mode 100644
index 7b25f37..0000000
--- a/node_modules/es-abstract/2015/IsArray.js
+++ /dev/null
@@ -1,14 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var $Array = GetIntrinsic('%Array%');
-
-// eslint-disable-next-line global-require
-var toStr = !$Array.isArray && require('../helpers/callBound')('Object.prototype.toString');
-
-// https://www.ecma-international.org/ecma-262/6.0/#sec-isarray
-
-module.exports = $Array.isArray || function IsArray(argument) {
- return toStr(argument) === '[object Array]';
-};
diff --git a/node_modules/es-abstract/2015/IsCallable.js b/node_modules/es-abstract/2015/IsCallable.js
deleted file mode 100644
index e4bfa36..0000000
--- a/node_modules/es-abstract/2015/IsCallable.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-// http://www.ecma-international.org/ecma-262/5.1/#sec-9.11
-
-module.exports = require('is-callable');
diff --git a/node_modules/es-abstract/2015/IsConcatSpreadable.js b/node_modules/es-abstract/2015/IsConcatSpreadable.js
deleted file mode 100644
index dc8aae1..0000000
--- a/node_modules/es-abstract/2015/IsConcatSpreadable.js
+++ /dev/null
@@ -1,25 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var $isConcatSpreadable = GetIntrinsic('%Symbol.isConcatSpreadable%', true);
-
-var Get = require('./Get');
-var IsArray = require('./IsArray');
-var ToBoolean = require('./ToBoolean');
-var Type = require('./Type');
-
-// https://ecma-international.org/ecma-262/6.0/#sec-isconcatspreadable
-
-module.exports = function IsConcatSpreadable(O) {
- if (Type(O) !== 'Object') {
- return false;
- }
- if ($isConcatSpreadable) {
- var spreadable = Get(O, $isConcatSpreadable);
- if (typeof spreadable !== 'undefined') {
- return ToBoolean(spreadable);
- }
- }
- return IsArray(O);
-};
diff --git a/node_modules/es-abstract/2015/IsConstructor.js b/node_modules/es-abstract/2015/IsConstructor.js
deleted file mode 100644
index 8ba9fe5..0000000
--- a/node_modules/es-abstract/2015/IsConstructor.js
+++ /dev/null
@@ -1,40 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic.js');
-
-var $construct = GetIntrinsic('%Reflect.construct%', true);
-
-var DefinePropertyOrThrow = require('./DefinePropertyOrThrow');
-try {
- DefinePropertyOrThrow({}, '', { '[[Get]]': function () {} });
-} catch (e) {
- // Accessor properties aren't supported
- DefinePropertyOrThrow = null;
-}
-
-// https://www.ecma-international.org/ecma-262/6.0/#sec-isconstructor
-
-if (DefinePropertyOrThrow && $construct) {
- var isConstructorMarker = {};
- var badArrayLike = {};
- DefinePropertyOrThrow(badArrayLike, 'length', {
- '[[Get]]': function () {
- throw isConstructorMarker;
- },
- '[[Enumerable]]': true
- });
-
- module.exports = function IsConstructor(argument) {
- try {
- // `Reflect.construct` invokes `IsConstructor(target)` before `Get(args, 'length')`:
- $construct(argument, badArrayLike);
- } catch (err) {
- return err === isConstructorMarker;
- }
- };
-} else {
- module.exports = function IsConstructor(argument) {
- // unfortunately there's no way to truly check this without try/catch `new argument` in old environments
- return typeof argument === 'function' && !!argument.prototype;
- };
-}
diff --git a/node_modules/es-abstract/2015/IsDataDescriptor.js b/node_modules/es-abstract/2015/IsDataDescriptor.js
deleted file mode 100644
index 0ad3045..0000000
--- a/node_modules/es-abstract/2015/IsDataDescriptor.js
+++ /dev/null
@@ -1,23 +0,0 @@
-'use strict';
-
-var has = require('has');
-
-var assertRecord = require('../helpers/assertRecord');
-
-var Type = require('./Type');
-
-// https://www.ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor
-
-module.exports = function IsDataDescriptor(Desc) {
- if (typeof Desc === 'undefined') {
- return false;
- }
-
- assertRecord(Type, 'Property Descriptor', 'Desc', Desc);
-
- if (!has(Desc, '[[Value]]') && !has(Desc, '[[Writable]]')) {
- return false;
- }
-
- return true;
-};
diff --git a/node_modules/es-abstract/2015/IsExtensible.js b/node_modules/es-abstract/2015/IsExtensible.js
deleted file mode 100644
index 0c4c8a6..0000000
--- a/node_modules/es-abstract/2015/IsExtensible.js
+++ /dev/null
@@ -1,20 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var $Object = GetIntrinsic('%Object%');
-
-var isPrimitive = require('../helpers/isPrimitive');
-
-var $preventExtensions = $Object.preventExtensions;
-var $isExtensible = $Object.isExtensible;
-
-// https://www.ecma-international.org/ecma-262/6.0/#sec-isextensible-o
-
-module.exports = $preventExtensions
- ? function IsExtensible(obj) {
- return !isPrimitive(obj) && $isExtensible(obj);
- }
- : function IsExtensible(obj) {
- return !isPrimitive(obj);
- };
diff --git a/node_modules/es-abstract/2015/IsGenericDescriptor.js b/node_modules/es-abstract/2015/IsGenericDescriptor.js
deleted file mode 100644
index 8618ce4..0000000
--- a/node_modules/es-abstract/2015/IsGenericDescriptor.js
+++ /dev/null
@@ -1,23 +0,0 @@
-'use strict';
-
-var assertRecord = require('../helpers/assertRecord');
-
-var IsAccessorDescriptor = require('./IsAccessorDescriptor');
-var IsDataDescriptor = require('./IsDataDescriptor');
-var Type = require('./Type');
-
-// https://www.ecma-international.org/ecma-262/6.0/#sec-isgenericdescriptor
-
-module.exports = function IsGenericDescriptor(Desc) {
- if (typeof Desc === 'undefined') {
- return false;
- }
-
- assertRecord(Type, 'Property Descriptor', 'Desc', Desc);
-
- if (!IsAccessorDescriptor(Desc) && !IsDataDescriptor(Desc)) {
- return true;
- }
-
- return false;
-};
diff --git a/node_modules/es-abstract/2015/IsInteger.js b/node_modules/es-abstract/2015/IsInteger.js
deleted file mode 100644
index 0f488b3..0000000
--- a/node_modules/es-abstract/2015/IsInteger.js
+++ /dev/null
@@ -1,21 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var $Math = GetIntrinsic('%Math%');
-
-var $floor = $Math.floor;
-var $abs = $Math.abs;
-
-var $isNaN = require('../helpers/isNaN');
-var $isFinite = require('../helpers/isFinite');
-
-// https://www.ecma-international.org/ecma-262/6.0/#sec-isinteger
-
-module.exports = function IsInteger(argument) {
- if (typeof argument !== 'number' || $isNaN(argument) || !$isFinite(argument)) {
- return false;
- }
- var abs = $abs(argument);
- return $floor(abs) === abs;
-};
diff --git a/node_modules/es-abstract/2015/IsPromise.js b/node_modules/es-abstract/2015/IsPromise.js
deleted file mode 100644
index e8e92a2..0000000
--- a/node_modules/es-abstract/2015/IsPromise.js
+++ /dev/null
@@ -1,24 +0,0 @@
-'use strict';
-
-var callBound = require('../helpers/callBound');
-
-var $PromiseThen = callBound('Promise.prototype.then', true);
-
-var Type = require('./Type');
-
-// https://www.ecma-international.org/ecma-262/6.0/#sec-ispromise
-
-module.exports = function IsPromise(x) {
- if (Type(x) !== 'Object') {
- return false;
- }
- if (!$PromiseThen) { // Promises are not supported
- return false;
- }
- try {
- $PromiseThen(x); // throws if not a promise
- } catch (e) {
- return false;
- }
- return true;
-};
diff --git a/node_modules/es-abstract/2015/IsPropertyDescriptor.js b/node_modules/es-abstract/2015/IsPropertyDescriptor.js
deleted file mode 100644
index 2a96c63..0000000
--- a/node_modules/es-abstract/2015/IsPropertyDescriptor.js
+++ /dev/null
@@ -1,17 +0,0 @@
-'use strict';
-
-var isPropertyDescriptor = require('../helpers/isPropertyDescriptor');
-
-var Type = require('./Type');
-var IsDataDescriptor = require('./IsDataDescriptor');
-var IsAccessorDescriptor = require('./IsAccessorDescriptor');
-
-// https://ecma-international.org/ecma-262/6.0/#sec-property-descriptor-specification-type
-
-module.exports = function IsPropertyDescriptor(Desc) {
- return isPropertyDescriptor({
- IsDataDescriptor: IsDataDescriptor,
- IsAccessorDescriptor: IsAccessorDescriptor,
- Type: Type
- }, Desc);
-};
diff --git a/node_modules/es-abstract/2015/IsPropertyKey.js b/node_modules/es-abstract/2015/IsPropertyKey.js
deleted file mode 100644
index 74b8d95..0000000
--- a/node_modules/es-abstract/2015/IsPropertyKey.js
+++ /dev/null
@@ -1,7 +0,0 @@
-'use strict';
-
-// https://www.ecma-international.org/ecma-262/6.0/#sec-ispropertykey
-
-module.exports = function IsPropertyKey(argument) {
- return typeof argument === 'string' || typeof argument === 'symbol';
-};
diff --git a/node_modules/es-abstract/2015/IsRegExp.js b/node_modules/es-abstract/2015/IsRegExp.js
deleted file mode 100644
index fdf2323..0000000
--- a/node_modules/es-abstract/2015/IsRegExp.js
+++ /dev/null
@@ -1,24 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var $match = GetIntrinsic('%Symbol.match%', true);
-
-var hasRegExpMatcher = require('is-regex');
-
-var ToBoolean = require('./ToBoolean');
-
-// https://ecma-international.org/ecma-262/6.0/#sec-isregexp
-
-module.exports = function IsRegExp(argument) {
- if (!argument || typeof argument !== 'object') {
- return false;
- }
- if ($match) {
- var isRegExp = argument[$match];
- if (typeof isRegExp !== 'undefined') {
- return ToBoolean(isRegExp);
- }
- }
- return hasRegExpMatcher(argument);
-};
diff --git a/node_modules/es-abstract/2015/IteratorClose.js b/node_modules/es-abstract/2015/IteratorClose.js
deleted file mode 100644
index 35c8c2b..0000000
--- a/node_modules/es-abstract/2015/IteratorClose.js
+++ /dev/null
@@ -1,50 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var $TypeError = GetIntrinsic('%TypeError%');
-
-var Call = require('./Call');
-var GetMethod = require('./GetMethod');
-var IsCallable = require('./IsCallable');
-var Type = require('./Type');
-
-// https://ecma-international.org/ecma-262/6.0/#sec-iteratorclose
-
-module.exports = function IteratorClose(iterator, completion) {
- if (Type(iterator) !== 'Object') {
- throw new $TypeError('Assertion failed: Type(iterator) is not Object');
- }
- if (!IsCallable(completion)) {
- throw new $TypeError('Assertion failed: completion is not a thunk for a Completion Record');
- }
- var completionThunk = completion;
-
- var iteratorReturn = GetMethod(iterator, 'return');
-
- if (typeof iteratorReturn === 'undefined') {
- return completionThunk();
- }
-
- var completionRecord;
- try {
- var innerResult = Call(iteratorReturn, iterator, []);
- } catch (e) {
- // if we hit here, then "e" is the innerResult completion that needs re-throwing
-
- // if the completion is of type "throw", this will throw.
- completionThunk();
- completionThunk = null; // ensure it's not called twice.
-
- // if not, then return the innerResult completion
- throw e;
- }
- completionRecord = completionThunk(); // if innerResult worked, then throw if the completion does
- completionThunk = null; // ensure it's not called twice.
-
- if (Type(innerResult) !== 'Object') {
- throw new $TypeError('iterator .return must return an object');
- }
-
- return completionRecord;
-};
diff --git a/node_modules/es-abstract/2015/IteratorComplete.js b/node_modules/es-abstract/2015/IteratorComplete.js
deleted file mode 100644
index a62b9bf..0000000
--- a/node_modules/es-abstract/2015/IteratorComplete.js
+++ /dev/null
@@ -1,18 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var $TypeError = GetIntrinsic('%TypeError%');
-
-var Get = require('./Get');
-var ToBoolean = require('./ToBoolean');
-var Type = require('./Type');
-
-// https://ecma-international.org/ecma-262/6.0/#sec-iteratorcomplete
-
-module.exports = function IteratorComplete(iterResult) {
- if (Type(iterResult) !== 'Object') {
- throw new $TypeError('Assertion failed: Type(iterResult) is not Object');
- }
- return ToBoolean(Get(iterResult, 'done'));
-};
diff --git a/node_modules/es-abstract/2015/IteratorNext.js b/node_modules/es-abstract/2015/IteratorNext.js
deleted file mode 100644
index 7e59915..0000000
--- a/node_modules/es-abstract/2015/IteratorNext.js
+++ /dev/null
@@ -1,18 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var $TypeError = GetIntrinsic('%TypeError%');
-
-var Invoke = require('./Invoke');
-var Type = require('./Type');
-
-// https://ecma-international.org/ecma-262/6.0/#sec-iteratornext
-
-module.exports = function IteratorNext(iterator, value) {
- var result = Invoke(iterator, 'next', arguments.length < 2 ? [] : [value]);
- if (Type(result) !== 'Object') {
- throw new $TypeError('iterator next must return an object');
- }
- return result;
-};
diff --git a/node_modules/es-abstract/2015/IteratorStep.js b/node_modules/es-abstract/2015/IteratorStep.js
deleted file mode 100644
index 41b9d1b..0000000
--- a/node_modules/es-abstract/2015/IteratorStep.js
+++ /dev/null
@@ -1,13 +0,0 @@
-'use strict';
-
-var IteratorComplete = require('./IteratorComplete');
-var IteratorNext = require('./IteratorNext');
-
-// https://ecma-international.org/ecma-262/6.0/#sec-iteratorstep
-
-module.exports = function IteratorStep(iterator) {
- var result = IteratorNext(iterator);
- var done = IteratorComplete(result);
- return done === true ? false : result;
-};
-
diff --git a/node_modules/es-abstract/2015/IteratorValue.js b/node_modules/es-abstract/2015/IteratorValue.js
deleted file mode 100644
index 5e71a44..0000000
--- a/node_modules/es-abstract/2015/IteratorValue.js
+++ /dev/null
@@ -1,18 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var $TypeError = GetIntrinsic('%TypeError%');
-
-var Get = require('./Get');
-var Type = require('./Type');
-
-// https://ecma-international.org/ecma-262/6.0/#sec-iteratorvalue
-
-module.exports = function IteratorValue(iterResult) {
- if (Type(iterResult) !== 'Object') {
- throw new $TypeError('Assertion failed: Type(iterResult) is not Object');
- }
- return Get(iterResult, 'value');
-};
-
diff --git a/node_modules/es-abstract/2015/MakeDate.js b/node_modules/es-abstract/2015/MakeDate.js
deleted file mode 100644
index 7b592d1..0000000
--- a/node_modules/es-abstract/2015/MakeDate.js
+++ /dev/null
@@ -1,13 +0,0 @@
-'use strict';
-
-var $isFinite = require('../helpers/isFinite');
-var msPerDay = require('../helpers/timeConstants').msPerDay;
-
-// https://ecma-international.org/ecma-262/5.1/#sec-15.9.1.13
-
-module.exports = function MakeDate(day, time) {
- if (!$isFinite(day) || !$isFinite(time)) {
- return NaN;
- }
- return (day * msPerDay) + time;
-};
diff --git a/node_modules/es-abstract/2015/MakeDay.js b/node_modules/es-abstract/2015/MakeDay.js
deleted file mode 100644
index f1ab810..0000000
--- a/node_modules/es-abstract/2015/MakeDay.js
+++ /dev/null
@@ -1,33 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var $floor = GetIntrinsic('%Math.floor%');
-var $DateUTC = GetIntrinsic('%Date.UTC%');
-
-var mod = require('../helpers/mod');
-var $isFinite = require('../helpers/isFinite');
-
-var DateFromTime = require('./DateFromTime');
-var Day = require('./Day');
-var MonthFromTime = require('./MonthFromTime');
-var ToInteger = require('./ToInteger');
-var YearFromTime = require('./YearFromTime');
-
-// https://ecma-international.org/ecma-262/5.1/#sec-15.9.1.12
-
-module.exports = function MakeDay(year, month, date) {
- if (!$isFinite(year) || !$isFinite(month) || !$isFinite(date)) {
- return NaN;
- }
- var y = ToInteger(year);
- var m = ToInteger(month);
- var dt = ToInteger(date);
- var ym = y + $floor(m / 12);
- var mn = mod(m, 12);
- var t = $DateUTC(ym, mn, 1);
- if (YearFromTime(t) !== ym || MonthFromTime(t) !== mn || DateFromTime(t) !== 1) {
- return NaN;
- }
- return Day(t) + dt - 1;
-};
diff --git a/node_modules/es-abstract/2015/MakeTime.js b/node_modules/es-abstract/2015/MakeTime.js
deleted file mode 100644
index e118500..0000000
--- a/node_modules/es-abstract/2015/MakeTime.js
+++ /dev/null
@@ -1,23 +0,0 @@
-'use strict';
-
-var $isFinite = require('../helpers/isFinite');
-var timeConstants = require('../helpers/timeConstants');
-var msPerSecond = timeConstants.msPerSecond;
-var msPerMinute = timeConstants.msPerMinute;
-var msPerHour = timeConstants.msPerHour;
-
-var ToInteger = require('./ToInteger');
-
-// https://ecma-international.org/ecma-262/5.1/#sec-15.9.1.11
-
-module.exports = function MakeTime(hour, min, sec, ms) {
- if (!$isFinite(hour) || !$isFinite(min) || !$isFinite(sec) || !$isFinite(ms)) {
- return NaN;
- }
- var h = ToInteger(hour);
- var m = ToInteger(min);
- var s = ToInteger(sec);
- var milli = ToInteger(ms);
- var t = (h * msPerHour) + (m * msPerMinute) + (s * msPerSecond) + milli;
- return t;
-};
diff --git a/node_modules/es-abstract/2015/MinFromTime.js b/node_modules/es-abstract/2015/MinFromTime.js
deleted file mode 100644
index e80e191..0000000
--- a/node_modules/es-abstract/2015/MinFromTime.js
+++ /dev/null
@@ -1,16 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var $floor = GetIntrinsic('%Math.floor%');
-
-var mod = require('../helpers/mod');
-var timeConstants = require('../helpers/timeConstants');
-var msPerMinute = timeConstants.msPerMinute;
-var MinutesPerHour = timeConstants.MinutesPerHour;
-
-// https://ecma-international.org/ecma-262/5.1/#sec-15.9.1.10
-
-module.exports = function MinFromTime(t) {
- return mod($floor(t / msPerMinute), MinutesPerHour);
-};
diff --git a/node_modules/es-abstract/2015/MonthFromTime.js b/node_modules/es-abstract/2015/MonthFromTime.js
deleted file mode 100644
index 4f120f2..0000000
--- a/node_modules/es-abstract/2015/MonthFromTime.js
+++ /dev/null
@@ -1,47 +0,0 @@
-'use strict';
-
-var DayWithinYear = require('./DayWithinYear');
-var InLeapYear = require('./InLeapYear');
-
-// https://ecma-international.org/ecma-262/5.1/#sec-15.9.1.4
-
-module.exports = function MonthFromTime(t) {
- var day = DayWithinYear(t);
- if (0 <= day && day < 31) {
- return 0;
- }
- var leap = InLeapYear(t);
- if (31 <= day && day < (59 + leap)) {
- return 1;
- }
- if ((59 + leap) <= day && day < (90 + leap)) {
- return 2;
- }
- if ((90 + leap) <= day && day < (120 + leap)) {
- return 3;
- }
- if ((120 + leap) <= day && day < (151 + leap)) {
- return 4;
- }
- if ((151 + leap) <= day && day < (181 + leap)) {
- return 5;
- }
- if ((181 + leap) <= day && day < (212 + leap)) {
- return 6;
- }
- if ((212 + leap) <= day && day < (243 + leap)) {
- return 7;
- }
- if ((243 + leap) <= day && day < (273 + leap)) {
- return 8;
- }
- if ((273 + leap) <= day && day < (304 + leap)) {
- return 9;
- }
- if ((304 + leap) <= day && day < (334 + leap)) {
- return 10;
- }
- if ((334 + leap) <= day && day < (365 + leap)) {
- return 11;
- }
-};
diff --git a/node_modules/es-abstract/2015/ObjectCreate.js b/node_modules/es-abstract/2015/ObjectCreate.js
deleted file mode 100644
index e2445b0..0000000
--- a/node_modules/es-abstract/2015/ObjectCreate.js
+++ /dev/null
@@ -1,37 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var $ObjectCreate = GetIntrinsic('%Object.create%', true);
-var $TypeError = GetIntrinsic('%TypeError%');
-var $SyntaxError = GetIntrinsic('%SyntaxError%');
-
-var Type = require('./Type');
-
-var hasProto = !({ __proto__: null } instanceof Object);
-
-// https://www.ecma-international.org/ecma-262/6.0/#sec-objectcreate
-
-module.exports = function ObjectCreate(proto, internalSlotsList) {
- if (proto !== null && Type(proto) !== 'Object') {
- throw new $TypeError('Assertion failed: `proto` must be null or an object');
- }
- var slots = arguments.length < 2 ? [] : internalSlotsList;
- if (slots.length > 0) {
- throw new $SyntaxError('es-abstract does not yet support internal slots');
- }
-
- if ($ObjectCreate) {
- return $ObjectCreate(proto);
- }
- if (hasProto) {
- return { __proto__: proto };
- }
-
- if (proto === null) {
- throw new $SyntaxError('native Object.create support is required to create null objects');
- }
- var T = function T() {};
- T.prototype = proto;
- return new T();
-};
diff --git a/node_modules/es-abstract/2015/OrdinaryDefineOwnProperty.js b/node_modules/es-abstract/2015/OrdinaryDefineOwnProperty.js
deleted file mode 100644
index 59780b3..0000000
--- a/node_modules/es-abstract/2015/OrdinaryDefineOwnProperty.js
+++ /dev/null
@@ -1,61 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var $gOPD = require('../helpers/getOwnPropertyDescriptor');
-var $SyntaxError = GetIntrinsic('%SyntaxError%');
-var $TypeError = GetIntrinsic('%TypeError%');
-
-var isPropertyDescriptor = require('../helpers/isPropertyDescriptor');
-
-var IsAccessorDescriptor = require('./IsAccessorDescriptor');
-var IsDataDescriptor = require('./IsDataDescriptor');
-var IsExtensible = require('./IsExtensible');
-var IsPropertyKey = require('./IsPropertyKey');
-var ToPropertyDescriptor = require('./ToPropertyDescriptor');
-var SameValue = require('./SameValue');
-var Type = require('./Type');
-var ValidateAndApplyPropertyDescriptor = require('./ValidateAndApplyPropertyDescriptor');
-
-// https://www.ecma-international.org/ecma-262/6.0/#sec-ordinarydefineownproperty
-
-module.exports = function OrdinaryDefineOwnProperty(O, P, Desc) {
- if (Type(O) !== 'Object') {
- throw new $TypeError('Assertion failed: O must be an Object');
- }
- if (!IsPropertyKey(P)) {
- throw new $TypeError('Assertion failed: P must be a Property Key');
- }
- if (!isPropertyDescriptor({
- Type: Type,
- IsDataDescriptor: IsDataDescriptor,
- IsAccessorDescriptor: IsAccessorDescriptor
- }, Desc)) {
- throw new $TypeError('Assertion failed: Desc must be a Property Descriptor');
- }
- if (!$gOPD) {
- // ES3/IE 8 fallback
- if (IsAccessorDescriptor(Desc)) {
- throw new $SyntaxError('This environment does not support accessor property descriptors.');
- }
- var creatingNormalDataProperty = !(P in O)
- && Desc['[[Writable]]']
- && Desc['[[Enumerable]]']
- && Desc['[[Configurable]]']
- && '[[Value]]' in Desc;
- var settingExistingDataProperty = (P in O)
- && (!('[[Configurable]]' in Desc) || Desc['[[Configurable]]'])
- && (!('[[Enumerable]]' in Desc) || Desc['[[Enumerable]]'])
- && (!('[[Writable]]' in Desc) || Desc['[[Writable]]'])
- && '[[Value]]' in Desc;
- if (creatingNormalDataProperty || settingExistingDataProperty) {
- O[P] = Desc['[[Value]]']; // eslint-disable-line no-param-reassign
- return SameValue(O[P], Desc['[[Value]]']);
- }
- throw new $SyntaxError('This environment does not support defining non-writable, non-enumerable, or non-configurable properties');
- }
- var desc = $gOPD(O, P);
- var current = desc && ToPropertyDescriptor(desc);
- var extensible = IsExtensible(O);
- return ValidateAndApplyPropertyDescriptor(O, P, extensible, Desc, current);
-};
diff --git a/node_modules/es-abstract/2015/OrdinaryGetOwnProperty.js b/node_modules/es-abstract/2015/OrdinaryGetOwnProperty.js
deleted file mode 100644
index b9882e5..0000000
--- a/node_modules/es-abstract/2015/OrdinaryGetOwnProperty.js
+++ /dev/null
@@ -1,44 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var $gOPD = require('../helpers/getOwnPropertyDescriptor');
-var $TypeError = GetIntrinsic('%TypeError%');
-
-var callBound = require('../helpers/callBound');
-
-var $isEnumerable = callBound('Object.prototype.propertyIsEnumerable');
-
-var has = require('has');
-
-var IsArray = require('./IsArray');
-var IsPropertyKey = require('./IsPropertyKey');
-var IsRegExp = require('./IsRegExp');
-var ToPropertyDescriptor = require('./ToPropertyDescriptor');
-var Type = require('./Type');
-
-// https://www.ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty
-
-module.exports = function OrdinaryGetOwnProperty(O, P) {
- if (Type(O) !== 'Object') {
- throw new $TypeError('Assertion failed: O must be an Object');
- }
- if (!IsPropertyKey(P)) {
- throw new $TypeError('Assertion failed: P must be a Property Key');
- }
- if (!has(O, P)) {
- return void 0;
- }
- if (!$gOPD) {
- // ES3 / IE 8 fallback
- var arrayLength = IsArray(O) && P === 'length';
- var regexLastIndex = IsRegExp(O) && P === 'lastIndex';
- return {
- '[[Configurable]]': !(arrayLength || regexLastIndex),
- '[[Enumerable]]': $isEnumerable(O, P),
- '[[Value]]': O[P],
- '[[Writable]]': true
- };
- }
- return ToPropertyDescriptor($gOPD(O, P));
-};
diff --git a/node_modules/es-abstract/2015/OrdinaryHasInstance.js b/node_modules/es-abstract/2015/OrdinaryHasInstance.js
deleted file mode 100644
index 51abe26..0000000
--- a/node_modules/es-abstract/2015/OrdinaryHasInstance.js
+++ /dev/null
@@ -1,25 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var $TypeError = GetIntrinsic('%TypeError%');
-
-var Get = require('./Get');
-var IsCallable = require('./IsCallable');
-var Type = require('./Type');
-
-// https://www.ecma-international.org/ecma-262/6.0/#sec-ordinaryhasinstance
-
-module.exports = function OrdinaryHasInstance(C, O) {
- if (IsCallable(C) === false) {
- return false;
- }
- if (Type(O) !== 'Object') {
- return false;
- }
- var P = Get(C, 'prototype');
- if (Type(P) !== 'Object') {
- throw new $TypeError('OrdinaryHasInstance called on an object with an invalid prototype property.');
- }
- return O instanceof C;
-};
diff --git a/node_modules/es-abstract/2015/OrdinaryHasProperty.js b/node_modules/es-abstract/2015/OrdinaryHasProperty.js
deleted file mode 100644
index 076c25a..0000000
--- a/node_modules/es-abstract/2015/OrdinaryHasProperty.js
+++ /dev/null
@@ -1,20 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var $TypeError = GetIntrinsic('%TypeError%');
-
-var IsPropertyKey = require('./IsPropertyKey');
-var Type = require('./Type');
-
-// https://www.ecma-international.org/ecma-262/6.0/#sec-ordinaryhasproperty
-
-module.exports = function OrdinaryHasProperty(O, P) {
- if (Type(O) !== 'Object') {
- throw new $TypeError('Assertion failed: Type(O) is not Object');
- }
- if (!IsPropertyKey(P)) {
- throw new $TypeError('Assertion failed: P must be a Property Key');
- }
- return P in O;
-};
diff --git a/node_modules/es-abstract/2015/RegExpExec.js b/node_modules/es-abstract/2015/RegExpExec.js
deleted file mode 100644
index 15c9186..0000000
--- a/node_modules/es-abstract/2015/RegExpExec.js
+++ /dev/null
@@ -1,32 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var $TypeError = GetIntrinsic('%TypeError%');
-
-var regexExec = require('../helpers/callBound')('RegExp.prototype.exec');
-
-var Call = require('./Call');
-var Get = require('./Get');
-var IsCallable = require('./IsCallable');
-var Type = require('./Type');
-
-// https://ecma-international.org/ecma-262/6.0/#sec-regexpexec
-
-module.exports = function RegExpExec(R, S) {
- if (Type(R) !== 'Object') {
- throw new $TypeError('Assertion failed: `R` must be an Object');
- }
- if (Type(S) !== 'String') {
- throw new $TypeError('Assertion failed: `S` must be a String');
- }
- var exec = Get(R, 'exec');
- if (IsCallable(exec)) {
- var result = Call(exec, R, [S]);
- if (result === null || Type(result) === 'Object') {
- return result;
- }
- throw new $TypeError('"exec" method must return `null` or an Object');
- }
- return regexExec(R, S);
-};
diff --git a/node_modules/es-abstract/2015/RequireObjectCoercible.js b/node_modules/es-abstract/2015/RequireObjectCoercible.js
deleted file mode 100644
index 9008359..0000000
--- a/node_modules/es-abstract/2015/RequireObjectCoercible.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = require('../5/CheckObjectCoercible');
diff --git a/node_modules/es-abstract/2015/SameValue.js b/node_modules/es-abstract/2015/SameValue.js
deleted file mode 100644
index 47c936d..0000000
--- a/node_modules/es-abstract/2015/SameValue.js
+++ /dev/null
@@ -1,13 +0,0 @@
-'use strict';
-
-var $isNaN = require('../helpers/isNaN');
-
-// http://www.ecma-international.org/ecma-262/5.1/#sec-9.12
-
-module.exports = function SameValue(x, y) {
- if (x === y) { // 0 === -0, but they are not identical.
- if (x === 0) { return 1 / x === 1 / y; }
- return true;
- }
- return $isNaN(x) && $isNaN(y);
-};
diff --git a/node_modules/es-abstract/2015/SameValueZero.js b/node_modules/es-abstract/2015/SameValueZero.js
deleted file mode 100644
index 0dedcd2..0000000
--- a/node_modules/es-abstract/2015/SameValueZero.js
+++ /dev/null
@@ -1,9 +0,0 @@
-'use strict';
-
-var $isNaN = require('../helpers/isNaN');
-
-// https://www.ecma-international.org/ecma-262/6.0/#sec-samevaluezero
-
-module.exports = function SameValueZero(x, y) {
- return (x === y) || ($isNaN(x) && $isNaN(y));
-};
diff --git a/node_modules/es-abstract/2015/SecFromTime.js b/node_modules/es-abstract/2015/SecFromTime.js
deleted file mode 100644
index 7190011..0000000
--- a/node_modules/es-abstract/2015/SecFromTime.js
+++ /dev/null
@@ -1,16 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var $floor = GetIntrinsic('%Math.floor%');
-
-var mod = require('../helpers/mod');
-var timeConstants = require('../helpers/timeConstants');
-var msPerSecond = timeConstants.msPerSecond;
-var SecondsPerMinute = timeConstants.SecondsPerMinute;
-
-// https://ecma-international.org/ecma-262/5.1/#sec-15.9.1.10
-
-module.exports = function SecFromTime(t) {
- return mod($floor(t / msPerSecond), SecondsPerMinute);
-};
diff --git a/node_modules/es-abstract/2015/Set.js b/node_modules/es-abstract/2015/Set.js
deleted file mode 100644
index 9545b13..0000000
--- a/node_modules/es-abstract/2015/Set.js
+++ /dev/null
@@ -1,47 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var $TypeError = GetIntrinsic('%TypeError%');
-
-var IsPropertyKey = require('./IsPropertyKey');
-var SameValue = require('./SameValue');
-var Type = require('./Type');
-
-// IE 9 does not throw in strict mode when writability/configurability/extensibility is violated
-var noThrowOnStrictViolation = (function () {
- try {
- delete [].length;
- return true;
- } catch (e) {
- return false;
- }
-}());
-
-// https://ecma-international.org/ecma-262/6.0/#sec-set-o-p-v-throw
-
-module.exports = function Set(O, P, V, Throw) {
- if (Type(O) !== 'Object') {
- throw new $TypeError('Assertion failed: `O` must be an Object');
- }
- if (!IsPropertyKey(P)) {
- throw new $TypeError('Assertion failed: `P` must be a Property Key');
- }
- if (Type(Throw) !== 'Boolean') {
- throw new $TypeError('Assertion failed: `Throw` must be a Boolean');
- }
- if (Throw) {
- O[P] = V; // eslint-disable-line no-param-reassign
- if (noThrowOnStrictViolation && !SameValue(O[P], V)) {
- throw new $TypeError('Attempted to assign to readonly property.');
- }
- return true;
- } else {
- try {
- O[P] = V; // eslint-disable-line no-param-reassign
- return noThrowOnStrictViolation ? SameValue(O[P], V) : true;
- } catch (e) {
- return false;
- }
- }
-};
diff --git a/node_modules/es-abstract/2015/SetFunctionName.js b/node_modules/es-abstract/2015/SetFunctionName.js
deleted file mode 100644
index f93324a..0000000
--- a/node_modules/es-abstract/2015/SetFunctionName.js
+++ /dev/null
@@ -1,44 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var has = require('has');
-
-var $TypeError = GetIntrinsic('%TypeError%');
-
-var getSymbolDescription = require('../helpers/getSymbolDescription');
-
-var DefinePropertyOrThrow = require('./DefinePropertyOrThrow');
-var IsExtensible = require('./IsExtensible');
-var Type = require('./Type');
-
-// https://ecma-international.org/ecma-262/6.0/#sec-setfunctionname
-
-module.exports = function SetFunctionName(F, name) {
- if (typeof F !== 'function') {
- throw new $TypeError('Assertion failed: `F` must be a function');
- }
- if (!IsExtensible(F) || has(F, 'name')) {
- throw new $TypeError('Assertion failed: `F` must be extensible, and must not have a `name` own property');
- }
- var nameType = Type(name);
- if (nameType !== 'Symbol' && nameType !== 'String') {
- throw new $TypeError('Assertion failed: `name` must be a Symbol or a String');
- }
- if (nameType === 'Symbol') {
- var description = getSymbolDescription(name);
- // eslint-disable-next-line no-param-reassign
- name = typeof description === 'undefined' ? '' : '[' + description + ']';
- }
- if (arguments.length > 2) {
- var prefix = arguments[2];
- // eslint-disable-next-line no-param-reassign
- name = prefix + ' ' + name;
- }
- return DefinePropertyOrThrow(F, 'name', {
- '[[Value]]': name,
- '[[Writable]]': false,
- '[[Enumerable]]': false,
- '[[Configurable]]': true
- });
-};
diff --git a/node_modules/es-abstract/2015/SetIntegrityLevel.js b/node_modules/es-abstract/2015/SetIntegrityLevel.js
deleted file mode 100644
index 3d5c81d..0000000
--- a/node_modules/es-abstract/2015/SetIntegrityLevel.js
+++ /dev/null
@@ -1,57 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var $SyntaxError = GetIntrinsic('%SyntaxError%');
-var $TypeError = GetIntrinsic('%TypeError%');
-var $preventExtensions = GetIntrinsic('%Object.preventExtensions%');
-var $gOPD = require('../helpers/getOwnPropertyDescriptor');
-var $gOPN = GetIntrinsic('%Object.getOwnPropertyNames%');
-
-var forEach = require('../helpers/forEach');
-
-var DefinePropertyOrThrow = require('./DefinePropertyOrThrow');
-var IsAccessorDescriptor = require('./IsAccessorDescriptor');
-var ToPropertyDescriptor = require('./ToPropertyDescriptor');
-var Type = require('./Type');
-
-// https://www.ecma-international.org/ecma-262/6.0/#sec-setintegritylevel
-
-module.exports = function SetIntegrityLevel(O, level) {
- if (Type(O) !== 'Object') {
- throw new $TypeError('Assertion failed: Type(O) is not Object');
- }
- if (level !== 'sealed' && level !== 'frozen') {
- throw new $TypeError('Assertion failed: `level` must be `"sealed"` or `"frozen"`');
- }
- if (!$preventExtensions) {
- throw new $SyntaxError('SetIntegrityLevel requires native `Object.preventExtensions` support');
- }
- var status = $preventExtensions(O);
- if (!status) {
- return false;
- }
- if (!$gOPN) {
- throw new $SyntaxError('SetIntegrityLevel requires native `Object.getOwnPropertyNames` support');
- }
- var theKeys = $gOPN(O);
- if (level === 'sealed') {
- forEach(theKeys, function (k) {
- DefinePropertyOrThrow(O, k, { configurable: false });
- });
- } else if (level === 'frozen') {
- forEach(theKeys, function (k) {
- var currentDesc = $gOPD(O, k);
- if (typeof currentDesc !== 'undefined') {
- var desc;
- if (IsAccessorDescriptor(ToPropertyDescriptor(currentDesc))) {
- desc = { configurable: false };
- } else {
- desc = { configurable: false, writable: false };
- }
- DefinePropertyOrThrow(O, k, desc);
- }
- });
- }
- return true;
-};
diff --git a/node_modules/es-abstract/2015/SpeciesConstructor.js b/node_modules/es-abstract/2015/SpeciesConstructor.js
deleted file mode 100644
index 3cdcd74..0000000
--- a/node_modules/es-abstract/2015/SpeciesConstructor.js
+++ /dev/null
@@ -1,32 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var $species = GetIntrinsic('%Symbol.species%', true);
-var $TypeError = GetIntrinsic('%TypeError%');
-
-var IsConstructor = require('./IsConstructor');
-var Type = require('./Type');
-
-// https://ecma-international.org/ecma-262/6.0/#sec-speciesconstructor
-
-module.exports = function SpeciesConstructor(O, defaultConstructor) {
- if (Type(O) !== 'Object') {
- throw new $TypeError('Assertion failed: Type(O) is not Object');
- }
- var C = O.constructor;
- if (typeof C === 'undefined') {
- return defaultConstructor;
- }
- if (Type(C) !== 'Object') {
- throw new $TypeError('O.constructor is not an Object');
- }
- var S = $species ? C[$species] : void 0;
- if (S == null) {
- return defaultConstructor;
- }
- if (IsConstructor(S)) {
- return S;
- }
- throw new $TypeError('no constructor found');
-};
diff --git a/node_modules/es-abstract/2015/StrictEqualityComparison.js b/node_modules/es-abstract/2015/StrictEqualityComparison.js
deleted file mode 100644
index eea5df3..0000000
--- a/node_modules/es-abstract/2015/StrictEqualityComparison.js
+++ /dev/null
@@ -1,17 +0,0 @@
-'use strict';
-
-var Type = require('./Type');
-
-// https://www.ecma-international.org/ecma-262/5.1/#sec-11.9.6
-
-module.exports = function StrictEqualityComparison(x, y) {
- var xType = Type(x);
- var yType = Type(y);
- if (xType !== yType) {
- return false;
- }
- if (xType === 'Undefined' || xType === 'Null') {
- return true;
- }
- return x === y; // shortcut for steps 4-7
-};
diff --git a/node_modules/es-abstract/2015/SymbolDescriptiveString.js b/node_modules/es-abstract/2015/SymbolDescriptiveString.js
deleted file mode 100644
index 7bd8191..0000000
--- a/node_modules/es-abstract/2015/SymbolDescriptiveString.js
+++ /dev/null
@@ -1,20 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var $TypeError = GetIntrinsic('%TypeError%');
-
-var callBound = require('../helpers/callBound');
-
-var $SymbolToString = callBound('Symbol.prototype.toString', true);
-
-var Type = require('./Type');
-
-// https://www.ecma-international.org/ecma-262/6.0/#sec-symboldescriptivestring
-
-module.exports = function SymbolDescriptiveString(sym) {
- if (Type(sym) !== 'Symbol') {
- throw new $TypeError('Assertion failed: `sym` must be a Symbol');
- }
- return $SymbolToString(sym);
-};
diff --git a/node_modules/es-abstract/2015/TestIntegrityLevel.js b/node_modules/es-abstract/2015/TestIntegrityLevel.js
deleted file mode 100644
index 7a57397..0000000
--- a/node_modules/es-abstract/2015/TestIntegrityLevel.js
+++ /dev/null
@@ -1,42 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var $gOPD = require('../helpers/getOwnPropertyDescriptor');
-var $gOPN = GetIntrinsic('%Object.getOwnPropertyNames%');
-var $TypeError = GetIntrinsic('%TypeError%');
-
-var every = require('../helpers/every');
-
-var IsDataDescriptor = require('./IsDataDescriptor');
-var IsExtensible = require('./IsExtensible');
-var ToPropertyDescriptor = require('./ToPropertyDescriptor');
-var Type = require('./Type');
-
-// https://www.ecma-international.org/ecma-262/6.0/#sec-testintegritylevel
-
-module.exports = function TestIntegrityLevel(O, level) {
- if (Type(O) !== 'Object') {
- throw new $TypeError('Assertion failed: Type(O) is not Object');
- }
- if (level !== 'sealed' && level !== 'frozen') {
- throw new $TypeError('Assertion failed: `level` must be `"sealed"` or `"frozen"`');
- }
- var status = IsExtensible(O);
- if (status) {
- return false;
- }
- var theKeys = $gOPN(O);
- return theKeys.length === 0 || every(theKeys, function (k) {
- var currentDesc = $gOPD(O, k);
- if (typeof currentDesc !== 'undefined') {
- if (currentDesc.configurable) {
- return false;
- }
- if (level === 'frozen' && IsDataDescriptor(ToPropertyDescriptor(currentDesc)) && currentDesc.writable) {
- return false;
- }
- }
- return true;
- });
-};
diff --git a/node_modules/es-abstract/2015/TimeClip.js b/node_modules/es-abstract/2015/TimeClip.js
deleted file mode 100644
index 57aa08c..0000000
--- a/node_modules/es-abstract/2015/TimeClip.js
+++ /dev/null
@@ -1,21 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var $Date = GetIntrinsic('%Date%');
-var $Number = GetIntrinsic('%Number%');
-var $abs = GetIntrinsic('%Math.abs%');
-
-var $isFinite = require('../helpers/isFinite');
-
-var ToNumber = require('./ToNumber');
-
-// https://ecma-international.org/ecma-262/5.1/#sec-15.9.1.14
-
-module.exports = function TimeClip(time) {
- if (!$isFinite(time) || $abs(time) > 8.64e15) {
- return NaN;
- }
- return $Number(new $Date(ToNumber(time)));
-};
-
diff --git a/node_modules/es-abstract/2015/TimeFromYear.js b/node_modules/es-abstract/2015/TimeFromYear.js
deleted file mode 100644
index df646c3..0000000
--- a/node_modules/es-abstract/2015/TimeFromYear.js
+++ /dev/null
@@ -1,11 +0,0 @@
-'use strict';
-
-var msPerDay = require('../helpers/timeConstants').msPerDay;
-
-var DayFromYear = require('./DayFromYear');
-
-// https://ecma-international.org/ecma-262/5.1/#sec-15.9.1.3
-
-module.exports = function TimeFromYear(y) {
- return msPerDay * DayFromYear(y);
-};
diff --git a/node_modules/es-abstract/2015/TimeWithinDay.js b/node_modules/es-abstract/2015/TimeWithinDay.js
deleted file mode 100644
index c5b21d3..0000000
--- a/node_modules/es-abstract/2015/TimeWithinDay.js
+++ /dev/null
@@ -1,11 +0,0 @@
-'use strict';
-
-var mod = require('../helpers/mod');
-var msPerDay = require('../helpers/timeConstants').msPerDay;
-
-// https://ecma-international.org/ecma-262/5.1/#sec-15.9.1.2
-
-module.exports = function TimeWithinDay(t) {
- return mod(t, msPerDay);
-};
-
diff --git a/node_modules/es-abstract/2015/ToBoolean.js b/node_modules/es-abstract/2015/ToBoolean.js
deleted file mode 100644
index 65d8737..0000000
--- a/node_modules/es-abstract/2015/ToBoolean.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-// http://www.ecma-international.org/ecma-262/5.1/#sec-9.2
-
-module.exports = function ToBoolean(value) { return !!value; };
diff --git a/node_modules/es-abstract/2015/ToDateString.js b/node_modules/es-abstract/2015/ToDateString.js
deleted file mode 100644
index 7a6d4c4..0000000
--- a/node_modules/es-abstract/2015/ToDateString.js
+++ /dev/null
@@ -1,22 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var $TypeError = GetIntrinsic('%TypeError%');
-var $Date = GetIntrinsic('%Date%');
-
-var $isNaN = require('../helpers/isNaN');
-
-var Type = require('./Type');
-
-// https://ecma-international.org/ecma-262/6.0/#sec-todatestring
-
-module.exports = function ToDateString(tv) {
- if (Type(tv) !== 'Number') {
- throw new $TypeError('Assertion failed: `tv` must be a Number');
- }
- if ($isNaN(tv)) {
- return 'Invalid Date';
- }
- return $Date(tv);
-};
diff --git a/node_modules/es-abstract/2015/ToInt16.js b/node_modules/es-abstract/2015/ToInt16.js
deleted file mode 100644
index 5a112c2..0000000
--- a/node_modules/es-abstract/2015/ToInt16.js
+++ /dev/null
@@ -1,10 +0,0 @@
-'use strict';
-
-var ToUint16 = require('./ToUint16');
-
-// https://www.ecma-international.org/ecma-262/6.0/#sec-toint16
-
-module.exports = function ToInt16(argument) {
- var int16bit = ToUint16(argument);
- return int16bit >= 0x8000 ? int16bit - 0x10000 : int16bit;
-};
diff --git a/node_modules/es-abstract/2015/ToInt32.js b/node_modules/es-abstract/2015/ToInt32.js
deleted file mode 100644
index a8d2680..0000000
--- a/node_modules/es-abstract/2015/ToInt32.js
+++ /dev/null
@@ -1,9 +0,0 @@
-'use strict';
-
-var ToNumber = require('./ToNumber');
-
-// http://www.ecma-international.org/ecma-262/5.1/#sec-9.5
-
-module.exports = function ToInt32(x) {
- return ToNumber(x) >> 0;
-};
diff --git a/node_modules/es-abstract/2015/ToInt8.js b/node_modules/es-abstract/2015/ToInt8.js
deleted file mode 100644
index d103123..0000000
--- a/node_modules/es-abstract/2015/ToInt8.js
+++ /dev/null
@@ -1,10 +0,0 @@
-'use strict';
-
-var ToUint8 = require('./ToUint8');
-
-// https://www.ecma-international.org/ecma-262/6.0/#sec-toint8
-
-module.exports = function ToInt8(argument) {
- var int8bit = ToUint8(argument);
- return int8bit >= 0x80 ? int8bit - 0x100 : int8bit;
-};
diff --git a/node_modules/es-abstract/2015/ToInteger.js b/node_modules/es-abstract/2015/ToInteger.js
deleted file mode 100644
index 16f7db9..0000000
--- a/node_modules/es-abstract/2015/ToInteger.js
+++ /dev/null
@@ -1,12 +0,0 @@
-'use strict';
-
-var ES5ToInteger = require('../5/ToInteger');
-
-var ToNumber = require('./ToNumber');
-
-// https://www.ecma-international.org/ecma-262/6.0/#sec-tointeger
-
-module.exports = function ToInteger(value) {
- var number = ToNumber(value);
- return ES5ToInteger(number);
-};
diff --git a/node_modules/es-abstract/2015/ToLength.js b/node_modules/es-abstract/2015/ToLength.js
deleted file mode 100644
index 1bef9be..0000000
--- a/node_modules/es-abstract/2015/ToLength.js
+++ /dev/null
@@ -1,12 +0,0 @@
-'use strict';
-
-var MAX_SAFE_INTEGER = require('../helpers/maxSafeInteger');
-
-var ToInteger = require('./ToInteger');
-
-module.exports = function ToLength(argument) {
- var len = ToInteger(argument);
- if (len <= 0) { return 0; } // includes converting -0 to +0
- if (len > MAX_SAFE_INTEGER) { return MAX_SAFE_INTEGER; }
- return len;
-};
diff --git a/node_modules/es-abstract/2015/ToNumber.js b/node_modules/es-abstract/2015/ToNumber.js
deleted file mode 100644
index 7a3cdc8..0000000
--- a/node_modules/es-abstract/2015/ToNumber.js
+++ /dev/null
@@ -1,59 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var $TypeError = GetIntrinsic('%TypeError%');
-var $Number = GetIntrinsic('%Number%');
-var $RegExp = GetIntrinsic('%RegExp%');
-var $parseInteger = GetIntrinsic('%parseInt%');
-
-var callBound = require('../helpers/callBound');
-var regexTester = require('../helpers/regexTester');
-var isPrimitive = require('../helpers/isPrimitive');
-
-var $strSlice = callBound('String.prototype.slice');
-var isBinary = regexTester(/^0b[01]+$/i);
-var isOctal = regexTester(/^0o[0-7]+$/i);
-var isInvalidHexLiteral = regexTester(/^[-+]0x[0-9a-f]+$/i);
-var nonWS = ['\u0085', '\u200b', '\ufffe'].join('');
-var nonWSregex = new $RegExp('[' + nonWS + ']', 'g');
-var hasNonWS = regexTester(nonWSregex);
-
-// whitespace from: https://es5.github.io/#x15.5.4.20
-// implementation from https://github.com/es-shims/es5-shim/blob/v3.4.0/es5-shim.js#L1304-L1324
-var ws = [
- '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003',
- '\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028',
- '\u2029\uFEFF'
-].join('');
-var trimRegex = new RegExp('(^[' + ws + ']+)|([' + ws + ']+$)', 'g');
-var $replace = callBound('String.prototype.replace');
-var $trim = function (value) {
- return $replace(value, trimRegex, '');
-};
-
-var ToPrimitive = require('./ToPrimitive');
-
-// https://www.ecma-international.org/ecma-262/6.0/#sec-tonumber
-
-module.exports = function ToNumber(argument) {
- var value = isPrimitive(argument) ? argument : ToPrimitive(argument, $Number);
- if (typeof value === 'symbol') {
- throw new $TypeError('Cannot convert a Symbol value to a number');
- }
- if (typeof value === 'string') {
- if (isBinary(value)) {
- return ToNumber($parseInteger($strSlice(value, 2), 2));
- } else if (isOctal(value)) {
- return ToNumber($parseInteger($strSlice(value, 2), 8));
- } else if (hasNonWS(value) || isInvalidHexLiteral(value)) {
- return NaN;
- } else {
- var trimmed = $trim(value);
- if (trimmed !== value) {
- return ToNumber(trimmed);
- }
- }
- }
- return $Number(value);
-};
diff --git a/node_modules/es-abstract/2015/ToObject.js b/node_modules/es-abstract/2015/ToObject.js
deleted file mode 100644
index 50d5b94..0000000
--- a/node_modules/es-abstract/2015/ToObject.js
+++ /dev/null
@@ -1,14 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var $Object = GetIntrinsic('%Object%');
-
-var RequireObjectCoercible = require('./RequireObjectCoercible');
-
-// https://www.ecma-international.org/ecma-262/6.0/#sec-toobject
-
-module.exports = function ToObject(value) {
- RequireObjectCoercible(value);
- return $Object(value);
-};
diff --git a/node_modules/es-abstract/2015/ToPrimitive.js b/node_modules/es-abstract/2015/ToPrimitive.js
deleted file mode 100644
index 81c655d..0000000
--- a/node_modules/es-abstract/2015/ToPrimitive.js
+++ /dev/null
@@ -1,12 +0,0 @@
-'use strict';
-
-var toPrimitive = require('es-to-primitive/es2015');
-
-// https://www.ecma-international.org/ecma-262/6.0/#sec-toprimitive
-
-module.exports = function ToPrimitive(input) {
- if (arguments.length > 1) {
- return toPrimitive(input, arguments[1]);
- }
- return toPrimitive(input);
-};
diff --git a/node_modules/es-abstract/2015/ToPropertyDescriptor.js b/node_modules/es-abstract/2015/ToPropertyDescriptor.js
deleted file mode 100644
index 7c40136..0000000
--- a/node_modules/es-abstract/2015/ToPropertyDescriptor.js
+++ /dev/null
@@ -1,52 +0,0 @@
-'use strict';
-
-var has = require('has');
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var $TypeError = GetIntrinsic('%TypeError%');
-
-var Type = require('./Type');
-var ToBoolean = require('./ToBoolean');
-var IsCallable = require('./IsCallable');
-
-// https://ecma-international.org/ecma-262/5.1/#sec-8.10.5
-
-module.exports = function ToPropertyDescriptor(Obj) {
- if (Type(Obj) !== 'Object') {
- throw new $TypeError('ToPropertyDescriptor requires an object');
- }
-
- var desc = {};
- if (has(Obj, 'enumerable')) {
- desc['[[Enumerable]]'] = ToBoolean(Obj.enumerable);
- }
- if (has(Obj, 'configurable')) {
- desc['[[Configurable]]'] = ToBoolean(Obj.configurable);
- }
- if (has(Obj, 'value')) {
- desc['[[Value]]'] = Obj.value;
- }
- if (has(Obj, 'writable')) {
- desc['[[Writable]]'] = ToBoolean(Obj.writable);
- }
- if (has(Obj, 'get')) {
- var getter = Obj.get;
- if (typeof getter !== 'undefined' && !IsCallable(getter)) {
- throw new $TypeError('getter must be a function');
- }
- desc['[[Get]]'] = getter;
- }
- if (has(Obj, 'set')) {
- var setter = Obj.set;
- if (typeof setter !== 'undefined' && !IsCallable(setter)) {
- throw new $TypeError('setter must be a function');
- }
- desc['[[Set]]'] = setter;
- }
-
- if ((has(desc, '[[Get]]') || has(desc, '[[Set]]')) && (has(desc, '[[Value]]') || has(desc, '[[Writable]]'))) {
- throw new $TypeError('Invalid property descriptor. Cannot both specify accessors and a value or writable attribute');
- }
- return desc;
-};
diff --git a/node_modules/es-abstract/2015/ToPropertyKey.js b/node_modules/es-abstract/2015/ToPropertyKey.js
deleted file mode 100644
index 38f40dd..0000000
--- a/node_modules/es-abstract/2015/ToPropertyKey.js
+++ /dev/null
@@ -1,15 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var $String = GetIntrinsic('%String%');
-
-var ToPrimitive = require('./ToPrimitive');
-var ToString = require('./ToString');
-
-// https://www.ecma-international.org/ecma-262/6.0/#sec-topropertykey
-
-module.exports = function ToPropertyKey(argument) {
- var key = ToPrimitive(argument, $String);
- return typeof key === 'symbol' ? key : ToString(key);
-};
diff --git a/node_modules/es-abstract/2015/ToString.js b/node_modules/es-abstract/2015/ToString.js
deleted file mode 100644
index a345431..0000000
--- a/node_modules/es-abstract/2015/ToString.js
+++ /dev/null
@@ -1,15 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var $String = GetIntrinsic('%String%');
-var $TypeError = GetIntrinsic('%TypeError%');
-
-// https://www.ecma-international.org/ecma-262/6.0/#sec-tostring
-
-module.exports = function ToString(argument) {
- if (typeof argument === 'symbol') {
- throw new $TypeError('Cannot convert a Symbol value to a string');
- }
- return $String(argument);
-};
diff --git a/node_modules/es-abstract/2015/ToUint16.js b/node_modules/es-abstract/2015/ToUint16.js
deleted file mode 100644
index c8a408b..0000000
--- a/node_modules/es-abstract/2015/ToUint16.js
+++ /dev/null
@@ -1,24 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var $Math = GetIntrinsic('%Math%');
-
-var ToNumber = require('./ToNumber');
-
-var $isNaN = require('../helpers/isNaN');
-var $isFinite = require('../helpers/isFinite');
-var $sign = require('../helpers/sign');
-var $mod = require('../helpers/mod');
-
-var $floor = $Math.floor;
-var $abs = $Math.abs;
-
-// http://www.ecma-international.org/ecma-262/5.1/#sec-9.7
-
-module.exports = function ToUint16(value) {
- var number = ToNumber(value);
- if ($isNaN(number) || number === 0 || !$isFinite(number)) { return 0; }
- var posInt = $sign(number) * $floor($abs(number));
- return $mod(posInt, 0x10000);
-};
diff --git a/node_modules/es-abstract/2015/ToUint32.js b/node_modules/es-abstract/2015/ToUint32.js
deleted file mode 100644
index 3660f62..0000000
--- a/node_modules/es-abstract/2015/ToUint32.js
+++ /dev/null
@@ -1,9 +0,0 @@
-'use strict';
-
-var ToNumber = require('./ToNumber');
-
-// http://www.ecma-international.org/ecma-262/5.1/#sec-9.6
-
-module.exports = function ToUint32(x) {
- return ToNumber(x) >>> 0;
-};
diff --git a/node_modules/es-abstract/2015/ToUint8.js b/node_modules/es-abstract/2015/ToUint8.js
deleted file mode 100644
index bf84753..0000000
--- a/node_modules/es-abstract/2015/ToUint8.js
+++ /dev/null
@@ -1,22 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var $Math = GetIntrinsic('%Math%');
-
-var ToNumber = require('./ToNumber');
-
-var $isNaN = require('../helpers/isNaN');
-var $isFinite = require('../helpers/isFinite');
-var $sign = require('../helpers/sign');
-var $mod = require('../helpers/mod');
-
-var $floor = $Math.floor;
-var $abs = $Math.abs;
-
-module.exports = function ToUint8(argument) {
- var number = ToNumber(argument);
- if ($isNaN(number) || number === 0 || !$isFinite(number)) { return 0; }
- var posInt = $sign(number) * $floor($abs(number));
- return $mod(posInt, 0x100);
-};
diff --git a/node_modules/es-abstract/2015/ToUint8Clamp.js b/node_modules/es-abstract/2015/ToUint8Clamp.js
deleted file mode 100644
index c7f9f56..0000000
--- a/node_modules/es-abstract/2015/ToUint8Clamp.js
+++ /dev/null
@@ -1,24 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var $Math = GetIntrinsic('%Math%');
-
-var ToNumber = require('./ToNumber');
-
-var $isNaN = require('../helpers/isNaN');
-
-var $floor = $Math.floor;
-
-// https://www.ecma-international.org/ecma-262/6.0/#sec-touint8clamp
-
-module.exports = function ToUint8Clamp(argument) {
- var number = ToNumber(argument);
- if ($isNaN(number) || number <= 0) { return 0; }
- if (number >= 0xFF) { return 0xFF; }
- var f = $floor(argument);
- if (f + 0.5 < number) { return f + 1; }
- if (number < f + 0.5) { return f; }
- if (f % 2 !== 0) { return f + 1; }
- return f;
-};
diff --git a/node_modules/es-abstract/2015/Type.js b/node_modules/es-abstract/2015/Type.js
deleted file mode 100644
index 0bd1165..0000000
--- a/node_modules/es-abstract/2015/Type.js
+++ /dev/null
@@ -1,12 +0,0 @@
-'use strict';
-
-var ES5Type = require('../5/Type');
-
-// https://ecma-international.org/ecma-262/6.0/#sec-ecmascript-data-types-and-values
-
-module.exports = function Type(x) {
- if (typeof x === 'symbol') {
- return 'Symbol';
- }
- return ES5Type(x);
-};
diff --git a/node_modules/es-abstract/2015/ValidateAndApplyPropertyDescriptor.js b/node_modules/es-abstract/2015/ValidateAndApplyPropertyDescriptor.js
deleted file mode 100644
index d4b9007..0000000
--- a/node_modules/es-abstract/2015/ValidateAndApplyPropertyDescriptor.js
+++ /dev/null
@@ -1,170 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var $TypeError = GetIntrinsic('%TypeError%');
-
-var DefineOwnProperty = require('../helpers/DefineOwnProperty');
-var isPropertyDescriptor = require('../helpers/isPropertyDescriptor');
-var isSamePropertyDescriptor = require('../helpers/isSamePropertyDescriptor');
-
-var FromPropertyDescriptor = require('./FromPropertyDescriptor');
-var IsAccessorDescriptor = require('./IsAccessorDescriptor');
-var IsDataDescriptor = require('./IsDataDescriptor');
-var IsGenericDescriptor = require('./IsGenericDescriptor');
-var IsPropertyKey = require('./IsPropertyKey');
-var SameValue = require('./SameValue');
-var Type = require('./Type');
-
-// https://www.ecma-international.org/ecma-262/6.0/#sec-validateandapplypropertydescriptor
-// https://www.ecma-international.org/ecma-262/8.0/#sec-validateandapplypropertydescriptor
-
-// eslint-disable-next-line max-lines-per-function, max-statements, max-params
-module.exports = function ValidateAndApplyPropertyDescriptor(O, P, extensible, Desc, current) {
- // this uses the ES2017+ logic, since it fixes a number of bugs in the ES2015 logic.
- var oType = Type(O);
- if (oType !== 'Undefined' && oType !== 'Object') {
- throw new $TypeError('Assertion failed: O must be undefined or an Object');
- }
- if (Type(extensible) !== 'Boolean') {
- throw new $TypeError('Assertion failed: extensible must be a Boolean');
- }
- if (!isPropertyDescriptor({
- Type: Type,
- IsDataDescriptor: IsDataDescriptor,
- IsAccessorDescriptor: IsAccessorDescriptor
- }, Desc)) {
- throw new $TypeError('Assertion failed: Desc must be a Property Descriptor');
- }
- if (Type(current) !== 'Undefined' && !isPropertyDescriptor({
- Type: Type,
- IsDataDescriptor: IsDataDescriptor,
- IsAccessorDescriptor: IsAccessorDescriptor
- }, current)) {
- throw new $TypeError('Assertion failed: current must be a Property Descriptor, or undefined');
- }
- if (oType !== 'Undefined' && !IsPropertyKey(P)) {
- throw new $TypeError('Assertion failed: if O is not undefined, P must be a Property Key');
- }
- if (Type(current) === 'Undefined') {
- if (!extensible) {
- return false;
- }
- if (IsGenericDescriptor(Desc) || IsDataDescriptor(Desc)) {
- if (oType !== 'Undefined') {
- DefineOwnProperty(
- IsDataDescriptor,
- SameValue,
- FromPropertyDescriptor,
- O,
- P,
- {
- '[[Configurable]]': Desc['[[Configurable]]'],
- '[[Enumerable]]': Desc['[[Enumerable]]'],
- '[[Value]]': Desc['[[Value]]'],
- '[[Writable]]': Desc['[[Writable]]']
- }
- );
- }
- } else {
- if (!IsAccessorDescriptor(Desc)) {
- throw new $TypeError('Assertion failed: Desc is not an accessor descriptor');
- }
- if (oType !== 'Undefined') {
- return DefineOwnProperty(
- IsDataDescriptor,
- SameValue,
- FromPropertyDescriptor,
- O,
- P,
- Desc
- );
- }
- }
- return true;
- }
- if (IsGenericDescriptor(Desc) && !('[[Configurable]]' in Desc) && !('[[Enumerable]]' in Desc)) {
- return true;
- }
- if (isSamePropertyDescriptor({ SameValue: SameValue }, Desc, current)) {
- return true; // removed by ES2017, but should still be correct
- }
- // "if every field in Desc is absent, return true" can't really match the assertion that it's a Property Descriptor
- if (!current['[[Configurable]]']) {
- if (Desc['[[Configurable]]']) {
- return false;
- }
- if ('[[Enumerable]]' in Desc && !Desc['[[Enumerable]]'] === !!current['[[Enumerable]]']) {
- return false;
- }
- }
- if (IsGenericDescriptor(Desc)) {
- // no further validation is required.
- } else if (IsDataDescriptor(current) !== IsDataDescriptor(Desc)) {
- if (!current['[[Configurable]]']) {
- return false;
- }
- if (IsDataDescriptor(current)) {
- if (oType !== 'Undefined') {
- DefineOwnProperty(
- IsDataDescriptor,
- SameValue,
- FromPropertyDescriptor,
- O,
- P,
- {
- '[[Configurable]]': current['[[Configurable]]'],
- '[[Enumerable]]': current['[[Enumerable]]'],
- '[[Get]]': undefined
- }
- );
- }
- } else if (oType !== 'Undefined') {
- DefineOwnProperty(
- IsDataDescriptor,
- SameValue,
- FromPropertyDescriptor,
- O,
- P,
- {
- '[[Configurable]]': current['[[Configurable]]'],
- '[[Enumerable]]': current['[[Enumerable]]'],
- '[[Value]]': undefined
- }
- );
- }
- } else if (IsDataDescriptor(current) && IsDataDescriptor(Desc)) {
- if (!current['[[Configurable]]'] && !current['[[Writable]]']) {
- if ('[[Writable]]' in Desc && Desc['[[Writable]]']) {
- return false;
- }
- if ('[[Value]]' in Desc && !SameValue(Desc['[[Value]]'], current['[[Value]]'])) {
- return false;
- }
- return true;
- }
- } else if (IsAccessorDescriptor(current) && IsAccessorDescriptor(Desc)) {
- if (!current['[[Configurable]]']) {
- if ('[[Set]]' in Desc && !SameValue(Desc['[[Set]]'], current['[[Set]]'])) {
- return false;
- }
- if ('[[Get]]' in Desc && !SameValue(Desc['[[Get]]'], current['[[Get]]'])) {
- return false;
- }
- return true;
- }
- } else {
- throw new $TypeError('Assertion failed: current and Desc are not both data, both accessors, or one accessor and one data.');
- }
- if (oType !== 'Undefined') {
- return DefineOwnProperty(
- IsDataDescriptor,
- SameValue,
- FromPropertyDescriptor,
- O,
- P,
- Desc
- );
- }
- return true;
-};
diff --git a/node_modules/es-abstract/2015/WeekDay.js b/node_modules/es-abstract/2015/WeekDay.js
deleted file mode 100644
index 2973e02..0000000
--- a/node_modules/es-abstract/2015/WeekDay.js
+++ /dev/null
@@ -1,11 +0,0 @@
-'use strict';
-
-var mod = require('../helpers/mod');
-
-var Day = require('./Day');
-
-// https://ecma-international.org/ecma-262/5.1/#sec-15.9.1.6
-
-module.exports = function WeekDay(t) {
- return mod(Day(t) + 4, 7);
-};
diff --git a/node_modules/es-abstract/2015/YearFromTime.js b/node_modules/es-abstract/2015/YearFromTime.js
deleted file mode 100644
index ff5339f..0000000
--- a/node_modules/es-abstract/2015/YearFromTime.js
+++ /dev/null
@@ -1,16 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('../GetIntrinsic');
-
-var $Date = GetIntrinsic('%Date%');
-
-var callBound = require('../helpers/callBound');
-
-var $getUTCFullYear = callBound('Date.prototype.getUTCFullYear');
-
-// https://ecma-international.org/ecma-262/5.1/#sec-15.9.1.3
-
-module.exports = function YearFromTime(t) {
- // largest y such that this.TimeFromYear(y) <= t
- return $getUTCFullYear(new $Date(t));
-};
diff --git a/node_modules/es-abstract/2015/modulo.js b/node_modules/es-abstract/2015/modulo.js
deleted file mode 100644
index bc04c06..0000000
--- a/node_modules/es-abstract/2015/modulo.js
+++ /dev/null
@@ -1,9 +0,0 @@
-'use strict';
-
-var mod = require('../helpers/mod');
-
-// https://ecma-international.org/ecma-262/5.1/#sec-5.2
-
-module.exports = function modulo(x, y) {
- return mod(x, y);
-};
diff --git a/node_modules/es-abstract/2015/msFromTime.js b/node_modules/es-abstract/2015/msFromTime.js
deleted file mode 100644
index c31eda0..0000000
--- a/node_modules/es-abstract/2015/msFromTime.js
+++ /dev/null
@@ -1,10 +0,0 @@
-'use strict';
-
-var mod = require('../helpers/mod');
-var msPerSecond = require('../helpers/timeConstants').msPerSecond;
-
-// https://ecma-international.org/ecma-262/5.1/#sec-15.9.1.10
-
-module.exports = function msFromTime(t) {
- return mod(t, msPerSecond);
-};
diff --git a/node_modules/es-abstract/2015/thisBooleanValue.js b/node_modules/es-abstract/2015/thisBooleanValue.js
deleted file mode 100644
index 3ffac9c..0000000
--- a/node_modules/es-abstract/2015/thisBooleanValue.js
+++ /dev/null
@@ -1,15 +0,0 @@
-'use strict';
-
-var $BooleanValueOf = require('../helpers/callBound')('Boolean.prototype.valueOf');
-
-var Type = require('./Type');
-
-// https://ecma-international.org/ecma-262/6.0/#sec-properties-of-the-boolean-prototype-object
-
-module.exports = function thisBooleanValue(value) {
- if (Type(value) === 'Boolean') {
- return value;
- }
-
- return $BooleanValueOf(value);
-};
diff --git a/node_modules/es-abstract/2015/thisNumberValue.js b/node_modules/es-abstract/2015/thisNumberValue.js
deleted file mode 100644
index 0345e52..0000000
--- a/node_modules/es-abstract/2015/thisNumberValue.js
+++ /dev/null
@@ -1,18 +0,0 @@
-'use strict';
-
-var callBound = require('../helpers/callBound');
-
-var Type = require('./Type');
-
-var $NumberValueOf = callBound('Number.prototype.valueOf');
-
-// https://ecma-international.org/ecma-262/6.0/#sec-properties-of-the-number-prototype-object
-
-module.exports = function thisNumberValue(value) {
- if (Type(value) === 'Number') {
- return value;
- }
-
- return $NumberValueOf(value);
-};
-
diff --git a/node_modules/es-abstract/2015/thisStringValue.js b/node_modules/es-abstract/2015/thisStringValue.js
deleted file mode 100644
index 3b99b6e..0000000
--- a/node_modules/es-abstract/2015/thisStringValue.js
+++ /dev/null
@@ -1,15 +0,0 @@
-'use strict';
-
-var $StringValueOf = require('../helpers/callBound')('String.prototype.valueOf');
-
-var Type = require('./Type');
-
-// https://ecma-international.org/ecma-262/6.0/#sec-properties-of-the-string-prototype-object
-
-module.exports = function thisStringValue(value) {
- if (Type(value) === 'String') {
- return value;
- }
-
- return $StringValueOf(value);
-};
diff --git a/node_modules/es-abstract/2015/thisTimeValue.js b/node_modules/es-abstract/2015/thisTimeValue.js
deleted file mode 100644
index d7cda28..0000000
--- a/node_modules/es-abstract/2015/thisTimeValue.js
+++ /dev/null
@@ -1,9 +0,0 @@
-'use strict';
-
-var $DateValueOf = require('../helpers/callBound')('Date.prototype.valueOf');
-
-// https://ecma-international.org/ecma-262/6.0/#sec-properties-of-the-date-prototype-object
-
-module.exports = function thisTimeValue(value) {
- return $DateValueOf(value);
-};