Socket
Socket
Sign inDemoInstall

core-js-pure

Package Overview
Dependencies
0
Maintainers
1
Versions
151
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.0-beta.8 to 3.0.0-beta.9

features/set/is-disjoint-from.js

2

features/set/index.js

@@ -12,3 +12,3 @@ module.exports = require('../../es/set');

require('../../modules/esnext.set.intersection');
require('../../modules/esnext.set.is-disjoint-with');
require('../../modules/esnext.set.is-disjoint-from');
require('../../modules/esnext.set.is-subset-of');

@@ -15,0 +15,0 @@ require('../../modules/esnext.set.is-superset-of');

@@ -6,3 +6,3 @@ module.exports = require('../../es/string');

require('../../modules/esnext.string.replace-all');
require('../../modules/esnext.string.trim-left');
require('../../modules/esnext.string.trim-right');
require('../../modules/esnext.string.trim-start');
require('../../modules/esnext.string.trim-end');

@@ -1,3 +0,3 @@

require('../../modules/esnext.string.trim-right');
require('../../modules/esnext.string.trim-end');
module.exports = require('../../internals/entry-unbind')('String', 'trimRight');

@@ -1,3 +0,3 @@

require('../../modules/esnext.string.trim-left');
require('../../modules/esnext.string.trim-start');
module.exports = require('../../internals/entry-unbind')('String', 'trimLeft');

@@ -1,3 +0,3 @@

require('../../modules/esnext.string.trim-right');
require('../../modules/esnext.string.trim-end');
module.exports = require('../../internals/entry-unbind')('String', 'trimRight');

@@ -1,3 +0,3 @@

require('../../modules/esnext.string.trim-left');
require('../../modules/esnext.string.trim-start');
module.exports = require('../../internals/entry-unbind')('String', 'trimLeft');

@@ -6,3 +6,3 @@ module.exports = require('../../../es/string/virtual');

require('../../../modules/esnext.string.replace-all');
require('../../../modules/esnext.string.trim-left');
require('../../../modules/esnext.string.trim-right');
require('../../../modules/esnext.string.trim-start');
require('../../../modules/esnext.string.trim-end');

@@ -1,3 +0,3 @@

require('../../../modules/esnext.string.trim-right');
require('../../../modules/esnext.string.trim-end');
module.exports = require('../../../internals/entry-virtual')('String').trimRight;

@@ -1,3 +0,3 @@

require('../../../modules/esnext.string.trim-left');
require('../../../modules/esnext.string.trim-start');
module.exports = require('../../../internals/entry-virtual')('String').trimLeft;

@@ -1,3 +0,3 @@

require('../../../modules/esnext.string.trim-right');
require('../../../modules/esnext.string.trim-end');
module.exports = require('../../../internals/entry-virtual')('String').trimRight;

@@ -1,3 +0,3 @@

require('../../../modules/esnext.string.trim-left');
require('../../../modules/esnext.string.trim-start');
module.exports = require('../../../internals/entry-virtual')('String').trimLeft;
module.exports = function (it) {
if (typeof it != 'function') throw TypeError(String(it) + ' is not a function!');
return it;
if (typeof it != 'function') {
throw TypeError(String(it) + ' is not a function');
} return it;
};
'use strict';
var at = require('../internals/string-at')(true);
var codePointAt = require('../internals/string-at');

@@ -7,3 +7,3 @@ // `AdvanceStringIndex` abstract operation

module.exports = function (S, index, unicode) {
return index + (unicode ? at(S, index).length : 1);
return index + (unicode ? codePointAt(S, index, true).length : 1);
};
module.exports = function (it, Constructor, name) {
if (!(it instanceof Constructor)) {
throw TypeError((name ? name + ': i' : 'I') + 'ncorrect invocation!');
throw TypeError('Incorrect ' + (name ? name + ' ' : '') + 'invocation');
} return it;
};
var isObject = require('../internals/is-object');
module.exports = function (it) {
if (!isObject(it)) throw TypeError(String(it) + ' is not an object!');
return it;
if (!isObject(it)) {
throw TypeError(String(it) + ' is not an object');
} return it;
};

@@ -0,9 +1,11 @@

'use strict';
var nativeForEach = [].forEach;
var internalForEach = require('../internals/array-methods')(0);
var STRICT = require('../internals/strict-method')(nativeForEach, true);
var SLOPPY_METHOD = require('../internals/sloppy-array-method')('forEach');
// `Array.prototype.forEach` method implementation
// https://tc39.github.io/ecma262/#sec-array.prototype.foreach
module.exports = STRICT ? nativeForEach : function forEach(callbackfn /* , thisArg */) {
module.exports = SLOPPY_METHOD ? function forEach(callbackfn /* , thisArg */) {
return internalForEach(this, callbackfn, arguments[1]);
};
} : nativeForEach;

@@ -24,3 +24,5 @@ 'use strict';

if (iteratorMethod != undefined && !(C == Array && isArrayIteratorMethod(iteratorMethod))) {
for (iterator = iteratorMethod.call(O), result = new C(); !(step = iterator.next()).done; index++) {
iterator = iteratorMethod.call(O);
result = new C();
for (;!(step = iterator.next()).done; index++) {
createProperty(result, index, mapping

@@ -33,3 +35,4 @@ ? callWithSafeIterationClosing(iterator, mapfn, [step.value, index], true)

length = toLength(O.length);
for (result = new C(length); length > index; index++) {
result = new C(length);
for (;length > index; index++) {
createProperty(result, index, mapping ? mapfn(O[index], index) : O[index]);

@@ -36,0 +39,0 @@ }

@@ -6,4 +6,5 @@ 'use strict';

var nativeLastIndexOf = [].lastIndexOf;
var NEGATIVE_ZERO = !!nativeLastIndexOf && 1 / [1].lastIndexOf(1, -0) < 0;
var SLOPPY_METHOD = !require('../internals/strict-method')(nativeLastIndexOf);
var SLOPPY_METHOD = require('../internals/sloppy-array-method')('lastIndexOf');

@@ -10,0 +11,0 @@ // `Array.prototype.lastIndexOf` method implementation

@@ -16,3 +16,3 @@ var aFunction = require('../internals/a-function');

var i = isRight ? -1 : 1;
if (argumentsLength < 2) for (;;) {
if (argumentsLength < 2) while (true) {
if (index in self) {

@@ -25,3 +25,3 @@ memo = self[index];

if (isRight ? index < 0 : length <= index) {
throw TypeError('Reduce of empty array with no initial value!');
throw TypeError('Reduce of empty array with no initial value');
}

@@ -28,0 +28,0 @@ }

@@ -13,3 +13,3 @@ 'use strict';

}
return allDeleted;
return !!allDeleted;
};

@@ -17,7 +17,7 @@ 'use strict';

module.exports = {
getConstructor: function (wrapper, NAME, IS_MAP, ADDER) {
getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) {
var C = wrapper(function (that, iterable) {
anInstance(that, C, NAME);
anInstance(that, C, CONSTRUCTOR_NAME);
setInternalState(that, {
type: NAME,
type: CONSTRUCTOR_NAME,
index: create(null),

@@ -32,3 +32,3 @@ first: undefined,

var getInternalState = internalStateGetterFor(NAME);
var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);

@@ -152,9 +152,9 @@ var define = function (that, key, value) {

},
setStrong: function (C, NAME, IS_MAP) {
var ITERATOR_NAME = NAME + ' Iterator';
var getInternalCollectionState = internalStateGetterFor(NAME);
setStrong: function (C, CONSTRUCTOR_NAME, IS_MAP) {
var ITERATOR_NAME = CONSTRUCTOR_NAME + ' Iterator';
var getInternalCollectionState = internalStateGetterFor(CONSTRUCTOR_NAME);
var getInternalIteratorState = internalStateGetterFor(ITERATOR_NAME);
// add .keys, .values, .entries, [@@iterator]
// 23.1.3.4, 23.1.3.8, 23.1.3.11, 23.1.3.12, 23.2.3.5, 23.2.3.8, 23.2.3.10, 23.2.3.11
defineIterator(C, NAME, function (iterated, kind) {
defineIterator(C, CONSTRUCTOR_NAME, function (iterated, kind) {
setInternalState(this, {

@@ -186,4 +186,4 @@ type: ITERATOR_NAME,

// add [@@species], 23.1.2.2, 23.2.2.2
setSpecies(NAME);
setSpecies(CONSTRUCTOR_NAME);
}
};

@@ -55,7 +55,7 @@ 'use strict';

module.exports = {
getConstructor: function (wrapper, NAME, IS_MAP, ADDER) {
getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) {
var C = wrapper(function (that, iterable) {
anInstance(that, C, NAME);
anInstance(that, C, CONSTRUCTOR_NAME);
setInternalState(that, {
type: NAME,
type: CONSTRUCTOR_NAME,
id: id++,

@@ -67,3 +67,3 @@ frozen: undefined

var getInternalState = internalStateGetterFor(NAME);
var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);

@@ -70,0 +70,0 @@ var define = function (that, key, value) {

@@ -18,4 +18,4 @@ 'use strict';

module.exports = function (NAME, wrapper, common, IS_MAP, IS_WEAK) {
var NativeConstructor = global[NAME];
module.exports = function (CONSTRUCTOR_NAME, wrapper, common, IS_MAP, IS_WEAK) {
var NativeConstructor = global[CONSTRUCTOR_NAME];
var NativePrototype = NativeConstructor && NativeConstructor.prototype;

@@ -30,8 +30,8 @@ var ADDER = IS_MAP ? 'set' : 'add';

// create collection constructor
Constructor = common.getConstructor(wrapper, NAME, IS_MAP, ADDER);
Constructor = common.getConstructor(wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER);
InternalMetadataModule.REQUIRED = true;
} else {
Constructor = wrapper(function (target, iterable) {
setInternalState(anInstance(target, Constructor, NAME), {
type: NAME,
setInternalState(anInstance(target, Constructor, CONSTRUCTOR_NAME), {
type: CONSTRUCTOR_NAME,
collection: new NativeConstructor()

@@ -42,3 +42,3 @@ });

var getInternalState = internalStateGetterFor(NAME);
var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);

@@ -62,10 +62,10 @@ each(['add', 'clear', 'delete', 'forEach', 'get', 'has', 'set', 'keys', 'values', 'entries'], function (KEY) {

setToStringTag(Constructor, NAME, false, true);
setToStringTag(Constructor, CONSTRUCTOR_NAME, false, true);
exported[NAME] = Constructor;
exported[CONSTRUCTOR_NAME] = Constructor;
$export({ global: true, forced: true }, exported);
if (!IS_WEAK) common.setStrong(Constructor, NAME, IS_MAP);
if (!IS_WEAK) common.setStrong(Constructor, CONSTRUCTOR_NAME, IS_MAP);
return Constructor;
};

@@ -6,4 +6,5 @@ 'use strict';

module.exports = function (hint) {
if (hint !== 'string' && hint !== 'number' && hint !== 'default') throw TypeError('Incorrect hint');
return toPrimitive(anObject(this), hint !== 'number');
if (hint !== 'string' && hint !== 'number' && hint !== 'default') {
throw TypeError('Incorrect hint');
} return toPrimitive(anObject(this), hint !== 'number');
};

@@ -1,5 +0,1 @@

var path = require('../internals/path');
module.exports = function (CONSTRUCTOR, METHOD) {
return path[CONSTRUCTOR][METHOD];
};
module.exports = require('../internals/get-built-in');

@@ -7,8 +7,8 @@ 'use strict';

var construct = function (F, len, args) {
if (!(len in factories)) {
for (var n = [], i = 0; i < len; i++) n[i] = 'a[' + i + ']';
var construct = function (C, argsLength, args) {
if (!(argsLength in factories)) {
for (var list = [], i = 0; i < argsLength; i++) list[i] = 'a[' + i + ']';
// eslint-disable-next-line no-new-func
factories[len] = Function('F,a', 'return new F(' + n.join(',') + ')');
} return factories[len](F, args);
factories[argsLength] = Function('C,a', 'return new C(' + list.join(',') + ')');
} return factories[argsLength](C, args);
};

@@ -15,0 +15,0 @@

@@ -6,4 +6,5 @@ var anObject = require('../internals/an-object');

var iteratorMethod = getIteratorMethod(it);
if (typeof iteratorMethod != 'function') throw TypeError(it + ' is not iterable!');
return anObject(iteratorMethod.call(it));
if (typeof iteratorMethod != 'function') {
throw TypeError(String(it) + ' is not iterable');
} return anObject(iteratorMethod.call(it));
};
var IS_PURE = require('../internals/is-pure');
var getIterator = require('../internals/get-iterator');
module.exports = function (it) {
module.exports = IS_PURE ? getIterator : function (it) {
// eslint-disable-next-line no-undef
return IS_PURE ? getIterator(it) : Map.prototype.entries.call(it);
return Map.prototype.entries.call(it);
};
var IS_PURE = require('../internals/is-pure');
var getIterator = require('../internals/get-iterator');
module.exports = function (it) {
module.exports = IS_PURE ? getIterator : function (it) {
// eslint-disable-next-line no-undef
return IS_PURE ? getIterator(it) : Set.prototype.values.call(it);
return Set.prototype.values.call(it);
};
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
module.exports = typeof window != 'undefined' && window.Math == Math
? window : typeof self != 'undefined' && self.Math == Math ? self
module.exports = typeof window != 'undefined' && window.Math == Math ? window
: typeof self != 'undefined' && self.Math == Math ? self
// eslint-disable-next-line no-new-func
: Function('return this')();

@@ -19,3 +19,3 @@ var global = require('../internals/global');

if (!isObject(it) || (state = get(it)).type !== TYPE) {
throw TypeError('Incompatible receiver, ' + TYPE + ' required!');
throw TypeError('Incompatible receiver, ' + TYPE + ' required');
} return state;

@@ -22,0 +22,0 @@ };

@@ -17,3 +17,3 @@ var anObject = require('../internals/an-object');

iterFn = getIteratorMethod(iterable);
if (typeof iterFn != 'function') throw TypeError('Target is not iterable!');
if (typeof iterFn != 'function') throw TypeError('Target is not iterable');
// optimisation for array iterators

@@ -20,0 +20,0 @@ if (isArrayIteratorMethod(iterFn)) {

@@ -6,12 +6,9 @@ // `Math.scale` method implementation

arguments.length === 0
// eslint-disable-next-line no-self-compare
/* eslint-disable no-self-compare */
|| x != x
// eslint-disable-next-line no-self-compare
|| inLow != inLow
// eslint-disable-next-line no-self-compare
|| inHigh != inHigh
// eslint-disable-next-line no-self-compare
|| outLow != outLow
// eslint-disable-next-line no-self-compare
|| outHigh != outHigh
/* eslint-enable no-self-compare */
) return NaN;

@@ -18,0 +15,0 @@ if (x === Infinity || x === -Infinity) return x;

@@ -11,3 +11,3 @@ var global = require('../internals/global');

var flush, head, last, notify;
var flush, head, last, notify, toggle, node, promise;

@@ -40,4 +40,4 @@ // modern engines have queueMicrotask method

} else if (MutationObserver && !/(iPhone|iPod|iPad).*AppleWebKit/i.test(userAgent)) {
var toggle = true;
var node = document.createTextNode('');
toggle = true;
node = document.createTextNode('');
new MutationObserver(flush).observe(node, { characterData: true }); // eslint-disable-line no-new

@@ -50,3 +50,3 @@ notify = function () {

// Promise.resolve without an argument throws an error in LG WebOS 2
var promise = Promise.resolve(undefined);
promise = Promise.resolve(undefined);
notify = function () {

@@ -53,0 +53,0 @@ promise.then(flush);

@@ -15,7 +15,7 @@ 'use strict';

// eslint-disable-next-line no-undef
var S = Symbol();
var K = 'abcdefghijklmnopqrst';
A[S] = 7;
K.split('').forEach(function (k) { B[k] = k; });
return nativeAssign({}, A)[S] != 7 || Object.keys(nativeAssign({}, B)).join('') != K;
var symbol = Symbol();
var alphabet = 'abcdefghijklmnopqrst';
A[symbol] = 7;
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
return nativeAssign({}, A)[symbol] != 7 || objectKeys(nativeAssign({}, B)).join('') != alphabet;
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars

@@ -22,0 +22,0 @@ var T = toObject(target);

@@ -19,6 +19,7 @@ // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])

var gt = '>';
var js = 'java' + script + ':';
var iframeDocument;
iframe.style.display = 'none';
html.appendChild(iframe);
iframe.src = 'java' + script + ':';
iframe.src = String(js);
iframeDocument = iframe.contentWindow.document;

@@ -25,0 +26,0 @@ iframeDocument.open();

@@ -14,5 +14,5 @@ var DESCRIPTORS = require('../internals/descriptors');

} catch (e) { /* empty */ }
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
if ('value' in Attributes) O[P] = Attributes.value;
return O;
};

@@ -6,4 +6,4 @@ // Works with __proto__ only. Old v8 can't work with null proto objects.

module.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () { // eslint-disable-line
var correctSetter = false;
var test = {};
var correctSetter = true;
var setter;

@@ -14,3 +14,3 @@ try {

correctSetter = test instanceof Array;
} catch (e) { correctSetter = false; }
} catch (e) { /* empty */ }
return function setPrototypeOf(O, proto) {

@@ -17,0 +17,0 @@ validateSetPrototypeOfArguments(O, proto);

@@ -5,14 +5,14 @@ var objectKeys = require('../internals/object-keys');

module.exports = function (isEntries) {
return function (it) {
var O = toIndexedObject(it);
var keys = objectKeys(O);
var length = keys.length;
var i = 0;
var result = [];
var key;
while (length > i) if (propertyIsEnumerable.call(O, key = keys[i++])) {
result.push(isEntries ? [key, O[key]] : O[key]);
} return result;
};
// TO_ENTRIES: true -> Object.entries
// TO_ENTRIES: false -> Object.values
module.exports = function (it, TO_ENTRIES) {
var O = toIndexedObject(it);
var keys = objectKeys(O);
var length = keys.length;
var i = 0;
var result = [];
var key;
while (length > i) if (propertyIsEnumerable.call(O, key = keys[i++])) {
result.push(TO_ENTRIES ? [key, O[key]] : O[key]);
} return result;
};
var nativeParseFloat = require('../internals/global').parseFloat;
var internalStringTrim = require('../internals/string-trim').trim;
var internalStringTrim = require('../internals/string-trim');
var whitespaces = require('../internals/whitespaces');

@@ -4,0 +4,0 @@ var FORCED = 1 / nativeParseFloat(whitespaces + '-0') !== -Infinity;

var nativeParseInt = require('../internals/global').parseInt;
var internalStringTrim = require('../internals/string-trim').trim;
var internalStringTrim = require('../internals/string-trim');
var whitespaces = require('../internals/whitespaces');

@@ -4,0 +4,0 @@ var hex = /^[-+]?0[xX]/;

@@ -123,3 +123,3 @@ 'use strict';

if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {
throw new RangeError(OVERFLOW_ERROR);
throw RangeError(OVERFLOW_ERROR);
}

@@ -133,3 +133,3 @@

if (currentValue < n && ++delta > maxInt) {
throw new RangeError(OVERFLOW_ERROR);
throw RangeError(OVERFLOW_ERROR);
}

@@ -136,0 +136,0 @@ if (currentValue == n) {

var Map = require('../modules/es.map');
var WeakMap = require('../modules/es.weak-map');
var $export = require('../internals/export');
var shared = require('../internals/shared')('metadata');

@@ -10,3 +9,3 @@ var store = shared.store || (shared.store = new WeakMap());

if (!targetMetadata) {
if (!create) return undefined;
if (!create) return;
store.set(target, targetMetadata = new Map());

@@ -16,6 +15,7 @@ }

if (!keyMetadata) {
if (!create) return undefined;
if (!create) return;
targetMetadata.set(targetKey, keyMetadata = new Map());
} return keyMetadata;
};
var ordinaryHasOwnMetadata = function (MetadataKey, O, P) {

@@ -25,2 +25,3 @@ var metadataMap = getOrCreateMetadataMap(O, P, false);

};
var ordinaryGetOwnMetadata = function (MetadataKey, O, P) {

@@ -30,5 +31,7 @@ var metadataMap = getOrCreateMetadataMap(O, P, false);

};
var ordinaryDefineOwnMetadata = function (MetadataKey, MetadataValue, O, P) {
getOrCreateMetadataMap(O, P, true).set(MetadataKey, MetadataValue);
};
var ordinaryOwnMetadataKeys = function (target, targetKey) {

@@ -40,12 +43,10 @@ var metadataMap = getOrCreateMetadataMap(target, targetKey, false);

};
var toMetaKey = function (it) {
var toMetadataKey = function (it) {
return it === undefined || typeof it == 'symbol' ? it : String(it);
};
var exp = function (exported) {
$export({ target: 'Reflect', stat: true }, exported);
};
module.exports = {
store: store,
map: getOrCreateMetadataMap,
getMap: getOrCreateMetadataMap,
has: ordinaryHasOwnMetadata,

@@ -55,4 +56,3 @@ get: ordinaryGetOwnMetadata,

keys: ordinaryOwnMetadataKeys,
key: toMetaKey,
exp: exp
toKey: toMetadataKey
};
// `RequireObjectCoercible` abstract operation
// https://tc39.github.io/ecma262/#sec-requireobjectcoercible
module.exports = function (it) {
if (it == undefined) throw TypeError("Can't call method on " + it);
if (it == undefined) throw TypeError("Can't call method on " + it);
return it;
};
'use strict';
var global = require('../internals/global');
var path = require('../internals/path');
var getBuiltIn = require('../internals/get-built-in');
var definePropertyModule = require('../internals/object-define-property');

@@ -8,5 +7,6 @@ var DESCRIPTORS = require('../internals/descriptors');

module.exports = function (KEY) {
var C = typeof path[KEY] == 'function' ? path[KEY] : global[KEY];
if (DESCRIPTORS && C && !C[SPECIES]) definePropertyModule.f(C, SPECIES, {
module.exports = function (CONSTRUCTOR_NAME) {
var C = getBuiltIn(CONSTRUCTOR_NAME);
var defineProperty = definePropertyModule.f;
if (DESCRIPTORS && C && !C[SPECIES]) defineProperty(C, SPECIES, {
configurable: true,

@@ -13,0 +13,0 @@ get: function () { return this; }

@@ -9,5 +9,5 @@ var global = require('../internals/global');

})('versions', []).push({
version: '3.0.0-beta.8',
version: '3.0.0-beta.9',
mode: require('../internals/is-pure') ? 'pure' : 'global',
copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
});
var toInteger = require('../internals/to-integer');
var requireObjectCoercible = require('../internals/require-object-coercible');
// true -> String#at
// false -> String#codePointAt
module.exports = function (TO_STRING) {
return function (that, pos) {
var S = String(requireObjectCoercible(that));
var position = toInteger(pos);
var size = S.length;
var first, second;
if (position < 0 || position >= size) return TO_STRING ? '' : undefined;
first = S.charCodeAt(position);
return first < 0xd800 || first > 0xdbff || position + 1 === size
|| (second = S.charCodeAt(position + 1)) < 0xdc00 || second > 0xdfff
? TO_STRING ? S.charAt(position) : first
: TO_STRING ? S.slice(position, position + 2) : (first - 0xd800 << 10) + (second - 0xdc00) + 0x10000;
};
// CONVERT_TO_STRING: true -> String#at
// CONVERT_TO_STRING: false -> String#codePointAt
module.exports = function (that, pos, CONVERT_TO_STRING) {
var S = String(requireObjectCoercible(that));
var position = toInteger(pos);
var size = S.length;
var first, second;
if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
first = S.charCodeAt(position);
return first < 0xd800 || first > 0xdbff || position + 1 === size
|| (second = S.charCodeAt(position + 1)) < 0xdc00 || second > 0xdfff
? CONVERT_TO_STRING ? S.charAt(position) : first
: CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xd800 << 10) + (second - 0xdc00) + 0x10000;
};

@@ -11,7 +11,8 @@ // https://github.com/tc39/proposal-string-pad-start-end

var intMaxLength = toLength(maxLength);
var fillLen, stringFiller;
if (intMaxLength <= stringLength || fillStr == '') return S;
var fillLen = intMaxLength - stringLength;
var stringFiller = repeat.call(fillStr, Math.ceil(fillLen / fillStr.length));
fillLen = intMaxLength - stringLength;
stringFiller = repeat.call(fillStr, Math.ceil(fillLen / fillStr.length));
if (stringFiller.length > fillLen) stringFiller = stringFiller.slice(0, fillLen);
return left ? stringFiller + S : S + stringFiller;
};

@@ -11,5 +11,5 @@ 'use strict';

var n = toInteger(count);
if (n < 0 || n == Infinity) throw RangeError("Count can't be negative");
if (n < 0 || n == Infinity) throw RangeError('Wrong number of repetitions');
for (;n > 0; (n >>>= 1) && (str += str)) if (n & 1) result += str;
return result;
};

@@ -1,24 +0,10 @@

var $export = require('../internals/export');
var requireObjectCoercible = require('../internals/require-object-coercible');
var fails = require('../internals/fails');
var whitespaces = require('../internals/whitespaces');
var space = '[' + whitespaces + ']';
var non = '\u200b\u0085\u180e';
var ltrim = RegExp('^' + space + space + '*');
var rtrim = RegExp(space + space + '*$');
var whitespace = '[' + require('../internals/whitespaces') + ']';
var ltrim = RegExp('^' + whitespace + whitespace + '*');
var rtrim = RegExp(whitespace + whitespace + '*$');
var exporter = module.exports = function (KEY, exec, ALIAS) {
var exported = {};
var FORCED = fails(function () {
return !!whitespaces[KEY]() || non[KEY]() != non || whitespaces[KEY].name !== KEY;
});
var fn = exported[KEY] = FORCED ? exec(trim) : whitespaces[KEY];
if (ALIAS) exported[ALIAS] = fn;
$export({ target: 'String', proto: true, forced: FORCED }, exported);
};
// 1 -> String#trimLeft
// 2 -> String#trimRight
// 1 -> String#trimStart
// 2 -> String#trimEnd
// 3 -> String#trim
var trim = exporter.trim = function (string, TYPE) {
module.exports = function (string, TYPE) {
string = String(requireObjectCoercible(string));

@@ -25,0 +11,0 @@ if (TYPE & 1) string = string.replace(ltrim, '');

@@ -6,4 +6,6 @@ var classof = require('../internals/classof-raw');

module.exports = function (value) {
if (typeof value != 'number' && classof(value) != 'Number') throw TypeError('Incorrect invocation!');
if (typeof value != 'number' && classof(value) != 'Number') {
throw TypeError('Incorrect invocation');
}
return +value;
};

@@ -10,4 +10,4 @@ var toInteger = require('../internals/to-integer');

var length = toLength(number);
if (number !== length) throw RangeError('Wrong length or index!');
if (number !== length) throw RangeError('Wrong length or index');
return length;
};

@@ -0,1 +1,2 @@

/* eslint-disable no-new */
var global = require('../internals/global');

@@ -11,8 +12,8 @@ var fails = require('../internals/fails');

}) || !fails(function () {
new Int8Array(-1); // eslint-disable-line no-new
new Int8Array(-1);
}) || !checkCorrectnessOfIteration(function (iterable) {
new Int8Array(); // eslint-disable-line no-new
new Int8Array(null); // eslint-disable-line no-new
new Int8Array(1.5); // eslint-disable-line no-new
new Int8Array(iterable); // eslint-disable-line no-new
new Int8Array();
new Int8Array(null);
new Int8Array(1.5);
new Int8Array(iterable);
}, true) || fails(function () {

@@ -19,0 +20,0 @@ // Safari 11 bug

@@ -6,3 +6,5 @@ var isObject = require('../internals/is-object');

anObject(O);
if (!isObject(proto) && proto !== null) throw TypeError(String(proto) + ": can't set as a prototype!");
if (!isObject(proto) && proto !== null) {
throw TypeError("Can't set " + String(proto) + ' as a prototype');
}
};

@@ -6,4 +6,5 @@ // helper for String#{startsWith, endsWith, includes}

module.exports = function (that, searchString, NAME) {
if (isRegExp(searchString)) throw TypeError('String#' + NAME + " doesn't accept regex!");
return String(requireObjectCoercible(that));
if (isRegExp(searchString)) {
throw TypeError('String.prototype.' + NAME + " doesn't accept regex");
} return String(requireObjectCoercible(that));
};
var store = require('../internals/shared')('wks');
var uid = require('../internals/uid');
var Symbol = require('../internals/global').Symbol;
var USE_SYMBOL = require('../internals/native-symbol');
var NATIVE_SYMBOL = require('../internals/native-symbol');
module.exports = function (name) {
return store[name] || (store[name] = USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));
return store[name] || (store[name] = NATIVE_SYMBOL && Symbol[name]
|| (NATIVE_SYMBOL ? Symbol : uid)('Symbol.' + name));
};

@@ -9,2 +9,4 @@ 'use strict';

var IS_CONCAT_SPREADABLE = require('../internals/well-known-symbol')('isConcatSpreadable');
var MAX_SAFE_INTEGER = 0x1fffffffffffff;
var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';

@@ -17,5 +19,3 @@ var IS_CONCAT_SPREADABLE_SUPPORT = !require('../internals/fails')(function () {

var SPECIES_SUPPORT = require('../internals/check-array-species-create')(function (array) {
return array.concat();
});
var SPECIES_SUPPORT = require('../internals/array-method-has-species-support')('concat');

@@ -28,8 +28,8 @@ var isConcatSpreadable = function (O) {

var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
// `Array.prototype.concat` method
// https://tc39.github.io/ecma262/#sec-array.prototype.concat
// with adding support of @@isConcatSpreadable and @@species
require('../internals/export')({
target: 'Array', proto: true, forced: !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT
}, {
require('../internals/export')({ target: 'Array', proto: true, forced: FORCED }, {
concat: function concat(arg) { // eslint-disable-line no-unused-vars

@@ -44,5 +44,8 @@ var O = toObject(this);

len = toLength(E.length);
if (n + len > 9007199254740991) throw TypeError('Incorrect length!');
if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
} else createProperty(A, n++, E);
} else {
if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
createProperty(A, n++, E);
}
}

@@ -49,0 +52,0 @@ A.length = n;

'use strict';
var internalEvery = require('../internals/array-methods')(4);
var SLOPPY_METHOD = !require('../internals/strict-method')([].every, true);
var SLOPPY_METHOD = require('../internals/sloppy-array-method')('every');

@@ -6,0 +6,0 @@ // `Array.prototype.every` method

'use strict';
var internalFilter = require('../internals/array-methods')(2);
var SPECIES_SUPPORT = require('../internals/check-array-species-create')(function (array) {
return array.filter(Boolean);
});
var SPECIES_SUPPORT = require('../internals/array-method-has-species-support')('filter');

@@ -8,0 +6,0 @@ // `Array.prototype.filter` method

@@ -6,3 +6,3 @@ 'use strict';

var NEGATIVE_ZERO = !!nativeIndexOf && 1 / [1].indexOf(1, -0) < 0;
var SLOPPY_METHOD = !require('../internals/strict-method')(nativeIndexOf);
var SLOPPY_METHOD = require('../internals/sloppy-array-method')('indexOf');

@@ -9,0 +9,0 @@ // `Array.prototype.indexOf` method

@@ -6,3 +6,3 @@ 'use strict';

var ES3_STRINGS = require('../internals/indexed-object') != Object;
var SLOPPY_METHOD = !require('../internals/strict-method')(nativeJoin);
var SLOPPY_METHOD = require('../internals/sloppy-array-method')('join', ',');

@@ -9,0 +9,0 @@ // `Array.prototype.join` method

'use strict';
var internalMap = require('../internals/array-methods')(1);
var SPECIES_SUPPORT = require('../internals/check-array-species-create')(function (array) {
return array.map(Boolean);
});
var SPECIES_SUPPORT = require('../internals/array-method-has-species-support')('map');

@@ -8,0 +6,0 @@ // `Array.prototype.map` method

'use strict';
var internalReduceRight = require('../internals/array-reduce');
var SLOPPY_METHOD = !require('../internals/strict-method')([].reduceRight, true);
var SLOPPY_METHOD = require('../internals/sloppy-array-method')('reduceRight');

@@ -6,0 +6,0 @@ // `Array.prototype.reduceRight` method

'use strict';
var internalReduce = require('../internals/array-reduce');
var SLOPPY_METHOD = !require('../internals/strict-method')([].reduce, true);
var SLOPPY_METHOD = require('../internals/sloppy-array-method')('reduce');

@@ -6,0 +6,0 @@ // `Array.prototype.reduce` method

@@ -12,5 +12,3 @@ 'use strict';

var SPECIES_SUPPORT = require('../internals/check-array-species-create')(function (array) {
return array.slice();
});
var SPECIES_SUPPORT = require('../internals/array-method-has-species-support')('slice');

@@ -37,3 +35,5 @@ // `Array.prototype.slice` method

}
if (Constructor === Array || Constructor === undefined) return nativeSlice.call(O, k, fin);
if (Constructor === Array || Constructor === undefined) {
return nativeSlice.call(O, k, fin);
}
}

@@ -40,0 +40,0 @@ result = new (Constructor === undefined ? Array : Constructor)(max(fin - k, 0));

'use strict';
var internalSome = require('../internals/array-methods')(3);
var SLOPPY_METHOD = !require('../internals/strict-method')([].some, true);
var SLOPPY_METHOD = require('../internals/sloppy-array-method')('some');

@@ -6,0 +6,0 @@ // `Array.prototype.some` method

@@ -6,20 +6,20 @@ 'use strict';

var nativeSort = [].sort;
var testData = [1, 2, 3];
var test = [1, 2, 3];
// IE8-
var FAILS_ON_UNDEFINED = fails(function () {
testData.sort(undefined);
test.sort(undefined);
});
// V8 bug
var FAILS_ON_NULL = fails(function () {
testData.sort(null);
test.sort(null);
});
// Old WebKit
var SLOPPY_METHOD = !require('../internals/strict-method')(nativeSort);
var SLOPPY_METHOD = require('../internals/sloppy-array-method')('sort');
var FORCED = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || SLOPPY_METHOD;
// `Array.prototype.sort` method
// https://tc39.github.io/ecma262/#sec-array.prototype.sort
require('../internals/export')({
target: 'Array', proto: true, forced: FAILS_ON_UNDEFINED || !FAILS_ON_NULL || SLOPPY_METHOD
}, {
require('../internals/export')({ target: 'Array', proto: true, forced: FORCED }, {
sort: function sort(comparefn) {

@@ -26,0 +26,0 @@ return comparefn === undefined

@@ -10,6 +10,6 @@ 'use strict';

var min = Math.min;
var MAX_SAFE_INTEGER = 0x1fffffffffffff;
var MAXIMUM_ALLOWED_LENGTH_EXCEEDED = 'Maximum allowed length exceeded';
var SPECIES_SUPPORT = require('../internals/check-array-species-create')(function (array) {
return array.splice();
});
var SPECIES_SUPPORT = require('../internals/array-method-has-species-support')('splice');

@@ -35,3 +35,5 @@ // `Array.prototype.splice` method

}
if (len + insertCount - actualDeleteCount > 9007199254740991) throw TypeError('Incorrect length!');
if (len + insertCount - actualDeleteCount > MAX_SAFE_INTEGER) {
throw TypeError(MAXIMUM_ALLOWED_LENGTH_EXCEEDED);
}
A = arraySpeciesCreate(O, actualDeleteCount);

@@ -59,3 +61,5 @@ for (k = 0; k < actualDeleteCount; k++) {

}
for (k = 0; k < insertCount; k++) O[k + actualStart] = arguments[k + 2];
for (k = 0; k < insertCount; k++) {
O[k + actualStart] = arguments[k + 2];
}
O.length = len - actualDeleteCount + insertCount;

@@ -62,0 +66,0 @@ return A;

@@ -7,6 +7,8 @@ 'use strict';

require('../internals/export')({ target: 'Date', proto: true, forced: require('../internals/fails')(function () {
var FORCED = require('../internals/fails')(function () {
return new Date(NaN).toJSON() !== null
|| Date.prototype.toJSON.call({ toISOString: function () { return 1; } }) !== 1;
}) }, {
});
require('../internals/export')({ target: 'Date', proto: true, forced: FORCED }, {
// eslint-disable-next-line no-unused-vars

@@ -13,0 +15,0 @@ toJSON: function toJSON(key) {

@@ -7,10 +7,11 @@ var log1p = require('../internals/math-log1p');

var FORCED = !nativeAcosh
// V8 bug: https://code.google.com/p/v8/issues/detail?id=3509
|| Math.floor(nativeAcosh(Number.MAX_VALUE)) != 710
// Tor Browser bug: Math.acosh(Infinity) -> NaN
|| nativeAcosh(Infinity) != Infinity;
// `Math.acosh` method
// https://tc39.github.io/ecma262/#sec-math.acosh
require('../internals/export')({ target: 'Math', stat: true, forced: !(nativeAcosh
// V8 bug: https://code.google.com/p/v8/issues/detail?id=3509
&& Math.floor(nativeAcosh(Number.MAX_VALUE)) == 710
// Tor Browser bug: Math.acosh(Infinity) -> NaN
&& nativeAcosh(Infinity) == Infinity
) }, {
require('../internals/export')({ target: 'Math', stat: true, forced: FORCED }, {
acosh: function acosh(x) {

@@ -17,0 +18,0 @@ return (x = +x) < 1 ? NaN : x > 94906265.62425156

@@ -12,4 +12,4 @@ var nativeAsinh = Math.asinh;

// Tor Browser bug: Math.asinh(0) -> -0
require('../internals/export')({ target: 'Math', stat: true, forced: !(
nativeAsinh && 1 / nativeAsinh(0) > 0
) }, { asinh: asinh });
require('../internals/export')({ target: 'Math', stat: true, forced: !(nativeAsinh && 1 / nativeAsinh(0) > 0) }, {
asinh: asinh
});
var nativeImul = Math.imul;
var FORCED = require('../internals/fails')(function () {
return nativeImul(0xffffffff, 5) != -5 || nativeImul.length != 2;
});
// `Math.imul` method
// https://tc39.github.io/ecma262/#sec-math.imul
// some WebKit versions fails with big numbers, some has wrong arity
require('../internals/export')({ target: 'Math', stat: true, forced: require('../internals/fails')(function () {
return nativeImul(0xffffffff, 5) != -5 || nativeImul.length != 2;
}) }, {
require('../internals/export')({ target: 'Math', stat: true, forced: FORCED }, {
imul: function imul(x, y) {

@@ -10,0 +12,0 @@ var UINT16 = 0xffff;

@@ -6,8 +6,10 @@ var expm1 = require('../internals/math-expm1');

var FORCED = require('../internals/fails')(function () {
return Math.sinh(-2e-17) != -2e-17;
});
// `Math.sinh` method
// https://tc39.github.io/ecma262/#sec-math.sinh
// V8 near Chromium 38 has a problem with very small numbers
require('../internals/export')({ target: 'Math', stat: true, forced: require('../internals/fails')(function () {
return Math.sinh(-2e-17) != -2e-17;
}) }, {
require('../internals/export')({ target: 'Math', stat: true, forced: FORCED }, {
sinh: function sinh(x) {

@@ -14,0 +16,0 @@ return abs(x = +x) < 1 ? (expm1(x) - expm1(-x)) / 2 : (exp(x - 1) - exp(-x - 1)) * (E / 2);

@@ -74,3 +74,3 @@ 'use strict';

var e, z, j, k;
if (f < 0 || f > 20) throw RangeError('Incorrect fraction digits!');
if (f < 0 || f > 20) throw RangeError('Incorrect fraction digits');
// eslint-disable-next-line no-self-compare

@@ -77,0 +77,0 @@ if (x != x) return 'NaN';

@@ -5,2 +5,3 @@ 'use strict';

var definePropertyModule = require('../internals/object-define-property');
var FORCED = require('../internals/forced-object-prototype-accessors-methods');

@@ -10,3 +11,3 @@ // `Object.prototype.__defineGetter__` method

if (require('../internals/descriptors')) {
require('../internals/export')({ target: 'Object', proto: true, forced: require('../internals/object-forced-pam') }, {
require('../internals/export')({ target: 'Object', proto: true, forced: FORCED }, {
__defineGetter__: function __defineGetter__(P, getter) {

@@ -13,0 +14,0 @@ definePropertyModule.f(toObject(this), P, { get: aFunction(getter), enumerable: true, configurable: true });

@@ -5,2 +5,3 @@ 'use strict';

var definePropertyModule = require('../internals/object-define-property');
var FORCED = require('../internals/forced-object-prototype-accessors-methods');

@@ -10,3 +11,3 @@ // `Object.prototype.__defineSetter__` method

if (require('../internals/descriptors')) {
require('../internals/export')({ target: 'Object', proto: true, forced: require('../internals/object-forced-pam') }, {
require('../internals/export')({ target: 'Object', proto: true, forced: FORCED }, {
__defineSetter__: function __defineSetter__(P, setter) {

@@ -13,0 +14,0 @@ definePropertyModule.f(toObject(this), P, { set: aFunction(setter), enumerable: true, configurable: true });

@@ -1,2 +0,2 @@

var internalEntries = require('../internals/object-to-array')(true);
var objectToArray = require('../internals/object-to-array');

@@ -7,4 +7,4 @@ // `Object.entries` method

entries: function entries(O) {
return internalEntries(O);
return objectToArray(O, true);
}
});
var isObject = require('../internals/is-object');
var onFreeze = require('../internals/internal-metadata').onFreeze;
var nativeFreeze = Object.freeze;
var FREEZING = require('../internals/freezing');
var FAILS_ON_PRIMITIVES = require('../internals/fails')(function () { nativeFreeze(1); });
// `Object.freeze` method
// https://tc39.github.io/ecma262/#sec-object.freeze
require('../internals/object-statics-accept-primitives')('freeze', function (nativeFreeze) {
return function freeze(it) {
require('../internals/export')({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES, sham: !FREEZING }, {
freeze: function freeze(it) {
return nativeFreeze && isObject(it) ? nativeFreeze(onFreeze(it)) : it;
};
}, !FREEZING);
}
});

@@ -1,11 +0,13 @@

var DESCRIPTORS = require('../internals/descriptors');
var toIndexedObject = require('../internals/to-indexed-object');
var nativeGetOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;
var DESCRIPTORS = require('../internals/descriptors');
var FAILS_ON_PRIMITIVES = require('../internals/fails')(function () { nativeGetOwnPropertyDescriptor(1); });
var FORCED = !DESCRIPTORS || FAILS_ON_PRIMITIVES;
// `Object.getOwnPropertyDescriptor` method
// https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptor
require('../internals/object-statics-accept-primitives')('getOwnPropertyDescriptor', function () {
return function getOwnPropertyDescriptor(it, key) {
require('../internals/export')({ target: 'Object', stat: true, forced: FORCED, sham: !DESCRIPTORS }, {
getOwnPropertyDescriptor: function getOwnPropertyDescriptor(it, key) {
return nativeGetOwnPropertyDescriptor(toIndexedObject(it), key);
};
}, !DESCRIPTORS);
}
});

@@ -0,5 +1,8 @@

var nativeGetOwnPropertyNames = require('../internals/object-get-own-property-names-external').f;
var FAILS_ON_PRIMITIVES = require('../internals/fails')(function () { nativeGetOwnPropertyNames(1); });
// `Object.getOwnPropertyNames` method
// https://tc39.github.io/ecma262/#sec-object.getownpropertynames
require('../internals/object-statics-accept-primitives')('getOwnPropertyNames', function () {
return require('../internals/object-get-own-property-names-external').f;
require('../internals/export')({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {
getOwnPropertyNames: nativeGetOwnPropertyNames
});
var toObject = require('../internals/to-object');
var nativeGetPrototypeOf = require('../internals/object-get-prototype-of');
var CORRECT_PROTOTYPE_GETTER = require('../internals/correct-prototype-getter');
var FAILS_ON_PRIMITIVES = require('../internals/fails')(function () { nativeGetPrototypeOf(1); });
// `Object.getPrototypeOf` method
// https://tc39.github.io/ecma262/#sec-object.getprototypeof
require('../internals/object-statics-accept-primitives')('getPrototypeOf', function () {
return function getPrototypeOf(it) {
require('../internals/export')({
target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES, sham: !CORRECT_PROTOTYPE_GETTER
}, {
getPrototypeOf: function getPrototypeOf(it) {
return nativeGetPrototypeOf(toObject(it));
};
}, !CORRECT_PROTOTYPE_GETTER);
}
});
var isObject = require('../internals/is-object');
var nativeIsExtensible = Object.isExtensible;
var FAILS_ON_PRIMITIVES = require('../internals/fails')(function () { nativeIsExtensible(1); });
// `Object.isExtensible` method
// https://tc39.github.io/ecma262/#sec-object.isextensible
require('../internals/object-statics-accept-primitives')('isExtensible', function (nativeIsExtensible) {
return function isExtensible(it) {
require('../internals/export')({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {
isExtensible: function isExtensible(it) {
return isObject(it) ? nativeIsExtensible ? nativeIsExtensible(it) : true : false;
};
}
});
var isObject = require('../internals/is-object');
var nativeIsFrozen = Object.isFrozen;
var FAILS_ON_PRIMITIVES = require('../internals/fails')(function () { nativeIsFrozen(1); });
// `Object.isFrozen` method
// https://tc39.github.io/ecma262/#sec-object.isfrozen
require('../internals/object-statics-accept-primitives')('isFrozen', function (nativeIsFrozen) {
return function isFrozen(it) {
require('../internals/export')({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {
isFrozen: function isFrozen(it) {
return isObject(it) ? nativeIsFrozen ? nativeIsFrozen(it) : false : true;
};
}
});
var isObject = require('../internals/is-object');
var nativeIsSealed = Object.isSealed;
var FAILS_ON_PRIMITIVES = require('../internals/fails')(function () { nativeIsSealed(1); });
// `Object.isSealed` method
// https://tc39.github.io/ecma262/#sec-object.issealed
require('../internals/object-statics-accept-primitives')('isSealed', function (nativeIsSealed) {
return function isSealed(it) {
require('../internals/export')({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {
isSealed: function isSealed(it) {
return isObject(it) ? nativeIsSealed ? nativeIsSealed(it) : false : true;
};
}
});
var toObject = require('../internals/to-object');
var nativeKeys = require('../internals/object-keys');
var FAILS_ON_PRIMITIVES = require('../internals/fails')(function () { nativeKeys(1); });
// `Object.keys` method
// https://tc39.github.io/ecma262/#sec-object.keys
require('../internals/object-statics-accept-primitives')('keys', function () {
return function keys(it) {
require('../internals/export')({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {
keys: function keys(it) {
return nativeKeys(toObject(it));
};
}
});

@@ -6,2 +6,3 @@ 'use strict';

var getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;
var FORCED = require('../internals/forced-object-prototype-accessors-methods');

@@ -11,9 +12,9 @@ // `Object.prototype.__lookupGetter__` method

if (require('../internals/descriptors')) {
require('../internals/export')({ target: 'Object', proto: true, forced: require('../internals/object-forced-pam') }, {
require('../internals/export')({ target: 'Object', proto: true, forced: FORCED }, {
__lookupGetter__: function __lookupGetter__(P) {
var O = toObject(this);
var K = toPrimitive(P, true);
var descriptor;
var key = toPrimitive(P, true);
var desc;
do {
if (descriptor = getOwnPropertyDescriptor(O, K)) return descriptor.get;
if (desc = getOwnPropertyDescriptor(O, key)) return desc.get;
} while (O = getPrototypeOf(O));

@@ -20,0 +21,0 @@ }

@@ -6,2 +6,3 @@ 'use strict';

var getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;
var FORCED = require('../internals/forced-object-prototype-accessors-methods');

@@ -11,9 +12,9 @@ // `Object.prototype.__lookupSetter__` method

if (require('../internals/descriptors')) {
require('../internals/export')({ target: 'Object', proto: true, forced: require('../internals/object-forced-pam') }, {
require('../internals/export')({ target: 'Object', proto: true, forced: FORCED }, {
__lookupSetter__: function __lookupSetter__(P) {
var O = toObject(this);
var K = toPrimitive(P, true);
var descriptor;
var key = toPrimitive(P, true);
var desc;
do {
if (descriptor = getOwnPropertyDescriptor(O, K)) return descriptor.set;
if (desc = getOwnPropertyDescriptor(O, key)) return desc.set;
} while (O = getPrototypeOf(O));

@@ -20,0 +21,0 @@ }

var isObject = require('../internals/is-object');
var onFreeze = require('../internals/internal-metadata').onFreeze;
var nativePreventExtensions = Object.preventExtensions;
var FREEZING = require('../internals/freezing');
var FAILS_ON_PRIMITIVES = require('../internals/fails')(function () { nativePreventExtensions(1); });
// `Object.preventExtensions` method
// https://tc39.github.io/ecma262/#sec-object.preventextensions
require('../internals/object-statics-accept-primitives')('preventExtensions', function (nativePreventExtensions) {
return function preventExtensions(it) {
require('../internals/export')({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES, sham: !FREEZING }, {
preventExtensions: function preventExtensions(it) {
return nativePreventExtensions && isObject(it) ? nativePreventExtensions(onFreeze(it)) : it;
};
}, !FREEZING);
}
});
var isObject = require('../internals/is-object');
var onFreeze = require('../internals/internal-metadata').onFreeze;
var nativeSeal = Object.seal;
var FREEZING = require('../internals/freezing');
var FAILS_ON_PRIMITIVES = require('../internals/fails')(function () { nativeSeal(1); });
// `Object.seal` method
// https://tc39.github.io/ecma262/#sec-object.seal
require('../internals/object-statics-accept-primitives')('seal', function (nativeSeal) {
return function seal(it) {
require('../internals/export')({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES, sham: !FREEZING }, {
seal: function seal(it) {
return nativeSeal && isObject(it) ? nativeSeal(onFreeze(it)) : it;
};
}, !FREEZING);
}
});

@@ -1,2 +0,2 @@

var internalValues = require('../internals/object-to-array')(false);
var objectToArray = require('../internals/object-to-array');

@@ -7,4 +7,4 @@ // `Object.values` method

values: function values(O) {
return internalValues(O);
return objectToArray(O);
}
});
'use strict';
var path = require('../internals/path');
var global = require('../internals/global');
var getBuiltIn = require('../internals/get-built-in');
var speciesConstructor = require('../internals/species-constructor');

@@ -9,13 +8,15 @@ var promiseResolve = require('../internals/promise-resolve');

// https://tc39.github.io/ecma262/#sec-promise.prototype.finally
require('../internals/export')({ target: 'Promise', proto: true, real: true }, { 'finally': function (onFinally) {
var C = speciesConstructor(this, typeof path.Promise == 'function' ? path.Promise : global.Promise);
var isFunction = typeof onFinally == 'function';
return this.then(
isFunction ? function (x) {
return promiseResolve(C, onFinally()).then(function () { return x; });
} : onFinally,
isFunction ? function (e) {
return promiseResolve(C, onFinally()).then(function () { throw e; });
} : onFinally
);
} });
require('../internals/export')({ target: 'Promise', proto: true, real: true }, {
'finally': function (onFinally) {
var C = speciesConstructor(this, getBuiltIn('Promise'));
var isFunction = typeof onFinally == 'function';
return this.then(
isFunction ? function (x) {
return promiseResolve(C, onFinally()).then(function () { return x; });
} : onFinally,
isFunction ? function (e) {
return promiseResolve(C, onFinally()).then(function () { throw e; });
} : onFinally
);
}
});

@@ -63,2 +63,6 @@ 'use strict';

var INCORRECT_ITERATION = FORCED || !checkCorrectnessOfIteration(function (iterable) {
PromiseConstructor.all(iterable)['catch'](function () { /* empty */ });
});
// helpers

@@ -180,3 +184,3 @@ var isThenable = function (it) {

try {
if (promise === value) throw TypeError("Promise can't be resolved itself!");
if (promise === value) throw TypeError("Promise can't be resolved itself");
var then = isThenable(value);

@@ -292,5 +296,3 @@ if (then) {

$export({ target: PROMISE, stat: true, forced: FORCED || !checkCorrectnessOfIteration(function (iterable) {
PromiseConstructor.all(iterable)['catch'](function () { /* empty */ });
}) }, {
$export({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {
// `Promise.all` method

@@ -297,0 +299,0 @@ // https://tc39.github.io/ecma262/#sec-promise.all

@@ -15,6 +15,8 @@ var aFunction = require('../internals/a-function');

apply: function apply(target, thisArgument, argumentsList) {
var T = aFunction(target);
var L = anObject(argumentsList);
return nativeApply ? nativeApply(T, thisArgument, L) : functionApply.call(T, thisArgument, L);
aFunction(target);
anObject(argumentsList);
return nativeApply
? nativeApply(target, thisArgument, argumentsList)
: functionApply.call(target, thisArgument, argumentsList);
}
});

@@ -15,5 +15,5 @@ var getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');

? descriptor.value
: descriptor.get !== undefined
? descriptor.get.call(receiver)
: undefined;
: descriptor.get === undefined
? undefined
: descriptor.get.call(receiver);
if (isObject(prototype = getPrototypeOf(target))) return get(prototype, propertyKey, receiver);

@@ -20,0 +20,0 @@ }

@@ -0,4 +1,4 @@

var getBuiltIn = require('../internals/get-built-in');
var anObject = require('../internals/an-object');
var FREEZING = require('../internals/freezing');
var anObject = require('../internals/an-object');
var objectPreventExtensions = Object.preventExtensions;

@@ -11,2 +11,3 @@ // `Reflect.preventExtensions` method

try {
var objectPreventExtensions = getBuiltIn('Object', 'preventExtensions');
if (objectPreventExtensions) objectPreventExtensions(target);

@@ -13,0 +14,0 @@ return true;

'use strict';
var createHTML = require('../internals/create-html');
var FORCED = require('../internals/forced-string-html-method')('anchor');
// `String.prototype.anchor` method
// https://tc39.github.io/ecma262/#sec-string.prototype.anchor
require('../internals/string-html')('anchor', function (createHTML) {
return function anchor(name) {
require('../internals/export')({ target: 'String', proto: true, forced: FORCED }, {
anchor: function anchor(name) {
return createHTML(this, 'a', 'name', name);
};
}
});
'use strict';
var createHTML = require('../internals/create-html');
var FORCED = require('../internals/forced-string-html-method')('big');
// `String.prototype.big` method
// https://tc39.github.io/ecma262/#sec-string.prototype.big
require('../internals/string-html')('big', function (createHTML) {
return function big() {
require('../internals/export')({ target: 'String', proto: true, forced: FORCED }, {
big: function big() {
return createHTML(this, 'big', '', '');
};
}
});
'use strict';
var createHTML = require('../internals/create-html');
var FORCED = require('../internals/forced-string-html-method')('blink');
// `String.prototype.blink` method
// https://tc39.github.io/ecma262/#sec-string.prototype.blink
require('../internals/string-html')('blink', function (createHTML) {
return function blink() {
require('../internals/export')({ target: 'String', proto: true, forced: FORCED }, {
blink: function blink() {
return createHTML(this, 'blink', '', '');
};
}
});
'use strict';
var createHTML = require('../internals/create-html');
var FORCED = require('../internals/forced-string-html-method')('bold');
// `String.prototype.bold` method
// https://tc39.github.io/ecma262/#sec-string.prototype.bold
require('../internals/string-html')('bold', function (createHTML) {
return function bold() {
require('../internals/export')({ target: 'String', proto: true, forced: FORCED }, {
bold: function bold() {
return createHTML(this, 'b', '', '');
};
}
});
'use strict';
var internalCodePointAt = require('../internals/string-at')(false);
var internalCodePointAt = require('../internals/string-at');

@@ -4,0 +4,0 @@ // `String.prototype.codePointAt` method

'use strict';
var createHTML = require('../internals/create-html');
var FORCED = require('../internals/forced-string-html-method')('fixed');
// `String.prototype.fixed` method
// https://tc39.github.io/ecma262/#sec-string.prototype.fixed
require('../internals/string-html')('fixed', function (createHTML) {
return function fixed() {
require('../internals/export')({ target: 'String', proto: true, forced: FORCED }, {
fixed: function fixed() {
return createHTML(this, 'tt', '', '');
};
}
});
'use strict';
var createHTML = require('../internals/create-html');
var FORCED = require('../internals/forced-string-html-method')('fontcolor');
// `String.prototype.fontcolor` method
// https://tc39.github.io/ecma262/#sec-string.prototype.fontcolor
require('../internals/string-html')('fontcolor', function (createHTML) {
return function fontcolor(color) {
require('../internals/export')({ target: 'String', proto: true, forced: FORCED }, {
fontcolor: function fontcolor(color) {
return createHTML(this, 'font', 'color', color);
};
}
});
'use strict';
var createHTML = require('../internals/create-html');
var FORCED = require('../internals/forced-string-html-method')('fontsize');
// `String.prototype.fontsize` method
// https://tc39.github.io/ecma262/#sec-string.prototype.fontsize
require('../internals/string-html')('fontsize', function (createHTML) {
return function fontsize(size) {
require('../internals/export')({ target: 'String', proto: true, forced: FORCED }, {
fontsize: function fontsize(size) {
return createHTML(this, 'font', 'size', size);
};
}
});
'use strict';
var createHTML = require('../internals/create-html');
var FORCED = require('../internals/forced-string-html-method')('italics');
// `String.prototype.italics` method
// https://tc39.github.io/ecma262/#sec-string.prototype.italics
require('../internals/string-html')('italics', function (createHTML) {
return function italics() {
require('../internals/export')({ target: 'String', proto: true, forced: FORCED }, {
italics: function italics() {
return createHTML(this, 'i', '', '');
};
}
});
'use strict';
var at = require('../internals/string-at')(true);
var codePointAt = require('../internals/string-at');
var InternalStateModule = require('../internals/internal-state');

@@ -25,5 +25,5 @@ var defineIterator = require('../internals/define-iterator');

if (index >= string.length) return { value: undefined, done: true };
point = at(string, index);
point = codePointAt(string, index, true);
state.index += point.length;
return { value: point, done: false };
});
'use strict';
var createHTML = require('../internals/create-html');
var FORCED = require('../internals/forced-string-html-method')('link');
// `String.prototype.link` method
// https://tc39.github.io/ecma262/#sec-string.prototype.link
require('../internals/string-html')('link', function (createHTML) {
return function link(url) {
require('../internals/export')({ target: 'String', proto: true, forced: FORCED }, {
link: function link(url) {
return createHTML(this, 'a', 'href', url);
};
}
});
'use strict';
var createHTML = require('../internals/create-html');
var FORCED = require('../internals/forced-string-html-method')('small');
// `String.prototype.small` method
// https://tc39.github.io/ecma262/#sec-string.prototype.small
require('../internals/string-html')('small', function (createHTML) {
return function small() {
require('../internals/export')({ target: 'String', proto: true, forced: FORCED }, {
small: function small() {
return createHTML(this, 'small', '', '');
};
}
});
'use strict';
var createHTML = require('../internals/create-html');
var FORCED = require('../internals/forced-string-html-method')('strike');
// `String.prototype.strike` method
// https://tc39.github.io/ecma262/#sec-string.prototype.strike
require('../internals/string-html')('strike', function (createHTML) {
return function strike() {
require('../internals/export')({ target: 'String', proto: true, forced: FORCED }, {
strike: function strike() {
return createHTML(this, 'strike', '', '');
};
}
});
'use strict';
var createHTML = require('../internals/create-html');
var FORCED = require('../internals/forced-string-html-method')('sub');
// `String.prototype.sub` method
// https://tc39.github.io/ecma262/#sec-string.prototype.sub
require('../internals/string-html')('sub', function (createHTML) {
return function sub() {
require('../internals/export')({ target: 'String', proto: true, forced: FORCED }, {
sub: function sub() {
return createHTML(this, 'sub', '', '');
};
}
});
'use strict';
var createHTML = require('../internals/create-html');
var FORCED = require('../internals/forced-string-html-method')('sup');
// `String.prototype.sup` method
// https://tc39.github.io/ecma262/#sec-string.prototype.sup
require('../internals/string-html')('sup', function (createHTML) {
return function sup() {
require('../internals/export')({ target: 'String', proto: true, forced: FORCED }, {
sup: function sup() {
return createHTML(this, 'sup', '', '');
};
}
});
'use strict';
var internalStringTrim = require('../internals/string-trim');
var FORCED = require('../internals/forced-string-trim-method')('trim');
// `String.prototype.trim` method
// https://tc39.github.io/ecma262/#sec-string.prototype.trim
require('../internals/string-trim')('trim', function (internalTrim) {
return function trim() {
return internalTrim(this, 3);
};
require('../internals/export')({ target: 'String', proto: true, forced: FORCED }, {
trim: function trim() {
return internalStringTrim(this, 3);
}
});

@@ -51,3 +51,3 @@ 'use strict';

var QObject = global.QObject;
var USE_NATIVE = require('../internals/native-symbol');
var NATIVE_SYMBOL = require('../internals/native-symbol');
// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173

@@ -81,6 +81,6 @@ var USE_SETTER = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;

var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) {
var isSymbol = NATIVE_SYMBOL && typeof $Symbol.iterator == 'symbol' ? function (it) {
return typeof it == 'symbol';
} : function (it) {
return it instanceof $Symbol;
return Object(it) instanceof $Symbol;
};

@@ -156,5 +156,5 @@

// https://tc39.github.io/ecma262/#sec-symbol-constructor
if (!USE_NATIVE) {
if (!NATIVE_SYMBOL) {
$Symbol = function Symbol() {
if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!');
if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor');
var description = arguments[0] === undefined ? undefined : String(arguments[0]);

@@ -198,3 +198,3 @@ var tag = uid(description);

$export({ global: true, wrap: true, forced: !USE_NATIVE, sham: !USE_NATIVE }, { Symbol: $Symbol });
$export({ global: true, wrap: true, forced: !NATIVE_SYMBOL, sham: !NATIVE_SYMBOL }, { Symbol: $Symbol });

@@ -205,3 +205,3 @@ for (var wellKnownSymbols = objectKeys(WellKnownSymbolsStore), k = 0; wellKnownSymbols.length > k;) {

$export({ target: SYMBOL, stat: true, forced: !USE_NATIVE }, {
$export({ target: SYMBOL, stat: true, forced: !NATIVE_SYMBOL }, {
// `Symbol.for` method

@@ -217,3 +217,3 @@ // https://tc39.github.io/ecma262/#sec-symbol.for

keyFor: function keyFor(sym) {
if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!');
if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol');
for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key;

@@ -225,3 +225,3 @@ },

$export({ target: 'Object', stat: true, forced: !USE_NATIVE, sham: !DESCRIPTORS }, {
$export({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL, sham: !DESCRIPTORS }, {
// `Object.create` method

@@ -241,3 +241,3 @@ // https://tc39.github.io/ecma262/#sec-object.create

$export({ target: 'Object', stat: true, forced: !USE_NATIVE }, {
$export({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL }, {
// `Object.getOwnPropertyNames` method

@@ -253,3 +253,3 @@ // https://tc39.github.io/ecma262/#sec-object.getownpropertynames

// https://tc39.github.io/ecma262/#sec-json.stringify
JSON && $export({ target: 'JSON', stat: true, forced: !USE_NATIVE || fails(function () {
JSON && $export({ target: 'JSON', stat: true, forced: !NATIVE_SYMBOL || fails(function () {
var symbol = $Symbol();

@@ -256,0 +256,0 @@ // MS Edge converts symbol values to JSON as {}

var getCompositeKeyNode = require('../internals/composite-key');
var getBuiltIn = require('../internals/get-built-in');
var create = require('../internals/object-create');
var $Object = require('../internals/path').Object;
var freeze = $Object && $Object.freeze;
var initializer = function () {
var freeze = getBuiltIn('Object', 'freeze');
return freeze ? freeze(create(null)) : create(null);

@@ -8,0 +8,0 @@ };

var getCompositeKeyNode = require('../internals/composite-key');
var path = require('../internals/path');
var global = require('../internals/global');
var getBuiltIn = require('../internals/get-built-in');
var getSymbolConstructor = function () {
return typeof path.Symbol === 'function' ? path.Symbol : global.Symbol;
};
// https://github.com/tc39/proposal-richer-keys/tree/master/compositeKey
require('../internals/export')({ global: true }, {
compositeSymbol: function compositeSymbol() {
if (arguments.length === 1 && typeof arguments[0] === 'string') return getSymbolConstructor()['for'](arguments[0]);
return getCompositeKeyNode.apply(null, arguments).get('symbol', getSymbolConstructor());
if (arguments.length === 1 && typeof arguments[0] === 'string') return getBuiltIn('Symbol')['for'](arguments[0]);
return getCompositeKeyNode.apply(null, arguments).get('symbol', getBuiltIn('Symbol'));
}
});
'use strict';
var getBuiltIn = require('../internals/get-built-in');
var anObject = require('../internals/an-object');

@@ -7,3 +8,2 @@ var aFunction = require('../internals/a-function');

var getMapIterator = require('../internals/get-map-iterator');
var Map = require('../internals/path').Map;

@@ -17,3 +17,3 @@ // `Map.prototype.filter` method

var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3);
var newMap = new (speciesConstructor(map, Map))();
var newMap = new (speciesConstructor(map, getBuiltIn('Map')))();
var setter = aFunction(newMap.set);

@@ -20,0 +20,0 @@ var step, entry, key, value;

// `Map.from` method
// https://tc39.github.io/proposal-setmap-offrom/#sec-map.from
require('../internals/set-collection-from')('Map');
require('../internals/export')({ target: 'Map', stat: true }, {
from: require('../internals/collection-from')
});
'use strict';
var getBuiltIn = require('../internals/get-built-in');
var anObject = require('../internals/an-object');

@@ -7,3 +8,2 @@ var aFunction = require('../internals/a-function');

var getMapIterator = require('../internals/get-map-iterator');
var Map = require('../internals/path').Map;

@@ -17,3 +17,3 @@ // `Map.prototype.mapKeys` method

var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3);
var newMap = new (speciesConstructor(map, Map))();
var newMap = new (speciesConstructor(map, getBuiltIn('Map')))();
var setter = aFunction(newMap.set);

@@ -20,0 +20,0 @@ var step, entry, value;

'use strict';
var getBuiltIn = require('../internals/get-built-in');
var anObject = require('../internals/an-object');

@@ -7,3 +8,2 @@ var aFunction = require('../internals/a-function');

var getMapIterator = require('../internals/get-map-iterator');
var Map = require('../internals/path').Map;

@@ -17,3 +17,3 @@ // `Map.prototype.mapValues` method

var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3);
var newMap = new (speciesConstructor(map, Map))();
var newMap = new (speciesConstructor(map, getBuiltIn('Map')))();
var setter = aFunction(newMap.set);

@@ -20,0 +20,0 @@ var step, entry, key;

// `Map.of` method
// https://tc39.github.io/proposal-setmap-offrom/#sec-map.of
require('../internals/set-collection-of')('Map');
require('../internals/export')({ target: 'Map', stat: true }, {
of: require('../internals/collection-of')
});

@@ -17,3 +17,3 @@ 'use strict';

step = iterator.next();
if (step.done) throw TypeError('Reduce of empty map with no initial value!');
if (step.done) throw TypeError('Reduce of empty map with no initial value');
accumulator = step.value[1];

@@ -20,0 +20,0 @@ }

'use strict';
var toInteger = require('../internals/to-integer');
var parseInt = require('../internals/parse-int');
var INVALID_NUMBER_REPRESENTATION = 'Invalid number representation!';
var INVALID_RADIX = 'Invalid radix!';
var INVALID_NUMBER_REPRESENTATION = 'Invalid number representation';
var INVALID_RADIX = 'Invalid radix';
var valid = /^[0-9a-z]+$/;

@@ -14,13 +14,13 @@

var R, mathNum;
if (typeof string != 'string') throw new TypeError(INVALID_NUMBER_REPRESENTATION);
if (!string.length) throw new SyntaxError(INVALID_NUMBER_REPRESENTATION);
if (typeof string != 'string') throw TypeError(INVALID_NUMBER_REPRESENTATION);
if (!string.length) throw SyntaxError(INVALID_NUMBER_REPRESENTATION);
if (string.charAt(0) == '-') {
sign = -1;
string = string.slice(1);
if (!string.length) throw new SyntaxError(INVALID_NUMBER_REPRESENTATION);
if (!string.length) throw SyntaxError(INVALID_NUMBER_REPRESENTATION);
}
R = radix === undefined ? 10 : toInteger(radix);
if (R < 2 || R > 36) throw new RangeError(INVALID_RADIX);
if (R < 2 || R > 36) throw RangeError(INVALID_RADIX);
if (!valid.test(string) || (mathNum = parseInt(string, R)).toString(R) !== string) {
throw new SyntaxError(INVALID_NUMBER_REPRESENTATION);
throw SyntaxError(INVALID_NUMBER_REPRESENTATION);
}

@@ -27,0 +27,0 @@ return sign * mathNum;

@@ -26,3 +26,3 @@ 'use strict';

alreadyCalled = true;
values[index] = { value: value, status: 'fulfilled' };
values[index] = { status: 'fulfilled', value: value };
--remaining || resolve(values);

@@ -32,3 +32,3 @@ }, function (e) {

alreadyCalled = true;
values[index] = { reason: e, status: 'rejected' };
values[index] = { status: 'rejected', reason: e };
--remaining || resolve(values);

@@ -35,0 +35,0 @@ });

var ReflectMetadataModule = require('../internals/reflect-metadata');
var anObject = require('../internals/an-object');
var toMetaKey = ReflectMetadataModule.key;
var toMetadataKey = ReflectMetadataModule.toKey;
var ordinaryDefineOwnMetadata = ReflectMetadataModule.set;

@@ -8,4 +8,7 @@

// https://github.com/rbuckton/reflect-metadata
ReflectMetadataModule.exp({ defineMetadata: function defineMetadata(metadataKey, metadataValue, target, targetKey) {
ordinaryDefineOwnMetadata(metadataKey, metadataValue, anObject(target), toMetaKey(targetKey));
} });
require('../internals/export')({ target: 'Reflect', stat: true }, {
defineMetadata: function defineMetadata(metadataKey, metadataValue, target /* , targetKey */) {
var targetKey = arguments.length < 4 ? undefined : toMetadataKey(arguments[3]);
ordinaryDefineOwnMetadata(metadataKey, metadataValue, anObject(target), targetKey);
}
});
var ReflectMetadataModule = require('../internals/reflect-metadata');
var anObject = require('../internals/an-object');
var toMetaKey = ReflectMetadataModule.key;
var getOrCreateMetadataMap = ReflectMetadataModule.map;
var toMetadataKey = ReflectMetadataModule.toKey;
var getOrCreateMetadataMap = ReflectMetadataModule.getMap;
var store = ReflectMetadataModule.store;

@@ -9,10 +9,12 @@

// https://github.com/rbuckton/reflect-metadata
ReflectMetadataModule.exp({ deleteMetadata: function deleteMetadata(metadataKey, target /* , targetKey */) {
var targetKey = arguments.length < 3 ? undefined : toMetaKey(arguments[2]);
var metadataMap = getOrCreateMetadataMap(anObject(target), targetKey, false);
if (metadataMap === undefined || !metadataMap['delete'](metadataKey)) return false;
if (metadataMap.size) return true;
var targetMetadata = store.get(target);
targetMetadata['delete'](targetKey);
return !!targetMetadata.size || store['delete'](target);
} });
require('../internals/export')({ target: 'Reflect', stat: true }, {
deleteMetadata: function deleteMetadata(metadataKey, target /* , targetKey */) {
var targetKey = arguments.length < 3 ? undefined : toMetadataKey(arguments[2]);
var metadataMap = getOrCreateMetadataMap(anObject(target), targetKey, false);
if (metadataMap === undefined || !metadataMap['delete'](metadataKey)) return false;
if (metadataMap.size) return true;
var targetMetadata = store.get(target);
targetMetadata['delete'](targetKey);
return !!targetMetadata.size || store['delete'](target);
}
});

@@ -7,3 +7,3 @@ var Set = require('../modules/es.set');

var ordinaryOwnMetadataKeys = ReflectMetadataModule.keys;
var toMetaKey = ReflectMetadataModule.key;
var toMetadataKey = ReflectMetadataModule.toKey;

@@ -26,4 +26,7 @@ var from = function (iter) {

// https://github.com/rbuckton/reflect-metadata
ReflectMetadataModule.exp({ getMetadataKeys: function getMetadataKeys(target /* , targetKey */) {
return ordinaryMetadataKeys(anObject(target), arguments.length < 2 ? undefined : toMetaKey(arguments[1]));
} });
require('../internals/export')({ target: 'Reflect', stat: true }, {
getMetadataKeys: function getMetadataKeys(target /* , targetKey */) {
var targetKey = arguments.length < 2 ? undefined : toMetadataKey(arguments[1]);
return ordinaryMetadataKeys(anObject(target), targetKey);
}
});

@@ -6,3 +6,3 @@ var ReflectMetadataModule = require('../internals/reflect-metadata');

var ordinaryGetOwnMetadata = ReflectMetadataModule.get;
var toMetaKey = ReflectMetadataModule.key;
var toMetadataKey = ReflectMetadataModule.toKey;

@@ -18,4 +18,7 @@ var ordinaryGetMetadata = function (MetadataKey, O, P) {

// https://github.com/rbuckton/reflect-metadata
ReflectMetadataModule.exp({ getMetadata: function getMetadata(metadataKey, target /* , targetKey */) {
return ordinaryGetMetadata(metadataKey, anObject(target), arguments.length < 3 ? undefined : toMetaKey(arguments[2]));
} });
require('../internals/export')({ target: 'Reflect', stat: true }, {
getMetadata: function getMetadata(metadataKey, target /* , targetKey */) {
var targetKey = arguments.length < 3 ? undefined : toMetadataKey(arguments[2]);
return ordinaryGetMetadata(metadataKey, anObject(target), targetKey);
}
});
var ReflectMetadataModule = require('../internals/reflect-metadata');
var anObject = require('../internals/an-object');
var ordinaryOwnMetadataKeys = ReflectMetadataModule.keys;
var toMetaKey = ReflectMetadataModule.key;
var toMetadataKey = ReflectMetadataModule.toKey;
// `Reflect.getOwnMetadataKeys` method
// https://github.com/rbuckton/reflect-metadata
ReflectMetadataModule.exp({ getOwnMetadataKeys: function getOwnMetadataKeys(target /* , targetKey */) {
return ordinaryOwnMetadataKeys(anObject(target), arguments.length < 2 ? undefined : toMetaKey(arguments[1]));
} });
require('../internals/export')({ target: 'Reflect', stat: true }, {
getOwnMetadataKeys: function getOwnMetadataKeys(target /* , targetKey */) {
var targetKey = arguments.length < 2 ? undefined : toMetadataKey(arguments[1]);
return ordinaryOwnMetadataKeys(anObject(target), targetKey);
}
});
var ReflectMetadataModule = require('../internals/reflect-metadata');
var anObject = require('../internals/an-object');
var ordinaryGetOwnMetadata = ReflectMetadataModule.get;
var toMetaKey = ReflectMetadataModule.key;
var toMetadataKey = ReflectMetadataModule.toKey;
// `Reflect.getOwnMetadata` method
// https://github.com/rbuckton/reflect-metadata
ReflectMetadataModule.exp({ getOwnMetadata: function getOwnMetadata(metadataKey, target /* , targetKey */) {
return ordinaryGetOwnMetadata(metadataKey, anObject(target)
, arguments.length < 3 ? undefined : toMetaKey(arguments[2]));
} });
require('../internals/export')({ target: 'Reflect', stat: true }, {
getOwnMetadata: function getOwnMetadata(metadataKey, target /* , targetKey */) {
var targetKey = arguments.length < 3 ? undefined : toMetadataKey(arguments[2]);
return ordinaryGetOwnMetadata(metadataKey, anObject(target), targetKey);
}
});

@@ -5,3 +5,3 @@ var ReflectMetadataModule = require('../internals/reflect-metadata');

var ordinaryHasOwnMetadata = ReflectMetadataModule.has;
var toMetaKey = ReflectMetadataModule.key;
var toMetadataKey = ReflectMetadataModule.toKey;

@@ -17,4 +17,7 @@ var ordinaryHasMetadata = function (MetadataKey, O, P) {

// https://github.com/rbuckton/reflect-metadata
ReflectMetadataModule.exp({ hasMetadata: function hasMetadata(metadataKey, target /* , targetKey */) {
return ordinaryHasMetadata(metadataKey, anObject(target), arguments.length < 3 ? undefined : toMetaKey(arguments[2]));
} });
require('../internals/export')({ target: 'Reflect', stat: true }, {
hasMetadata: function hasMetadata(metadataKey, target /* , targetKey */) {
var targetKey = arguments.length < 3 ? undefined : toMetadataKey(arguments[2]);
return ordinaryHasMetadata(metadataKey, anObject(target), targetKey);
}
});
var ReflectMetadataModule = require('../internals/reflect-metadata');
var anObject = require('../internals/an-object');
var ordinaryHasOwnMetadata = ReflectMetadataModule.has;
var toMetaKey = ReflectMetadataModule.key;
var toMetadataKey = ReflectMetadataModule.toKey;
// `Reflect.hasOwnMetadata` method
// https://github.com/rbuckton/reflect-metadata
ReflectMetadataModule.exp({ hasOwnMetadata: function hasOwnMetadata(metadataKey, target /* , targetKey */) {
return ordinaryHasOwnMetadata(metadataKey, anObject(target)
, arguments.length < 3 ? undefined : toMetaKey(arguments[2]));
} });
require('../internals/export')({ target: 'Reflect', stat: true }, {
hasOwnMetadata: function hasOwnMetadata(metadataKey, target /* , targetKey */) {
var targetKey = arguments.length < 3 ? undefined : toMetadataKey(arguments[2]);
return ordinaryHasOwnMetadata(metadataKey, anObject(target), targetKey);
}
});
var ReflectMetadataModule = require('../internals/reflect-metadata');
var anObject = require('../internals/an-object');
var aFunction = require('../internals/a-function');
var toMetaKey = ReflectMetadataModule.key;
var toMetadataKey = ReflectMetadataModule.toKey;
var ordinaryDefineOwnMetadata = ReflectMetadataModule.set;

@@ -9,10 +8,8 @@

// https://github.com/rbuckton/reflect-metadata
ReflectMetadataModule.exp({ metadata: function metadata(metadataKey, metadataValue) {
return function decorator(target, targetKey) {
ordinaryDefineOwnMetadata(
metadataKey, metadataValue,
(targetKey !== undefined ? anObject : aFunction)(target),
toMetaKey(targetKey)
);
};
} });
require('../internals/export')({ target: 'Reflect', stat: true }, {
metadata: function metadata(metadataKey, metadataValue) {
return function decorator(target, key) {
ordinaryDefineOwnMetadata(metadataKey, metadataValue, anObject(target), toMetadataKey(key));
};
}
});
'use strict';
var path = require('../internals/path');
var getBuiltIn = require('../internals/get-built-in');
var anObject = require('../internals/an-object');

@@ -7,3 +7,2 @@ var aFunction = require('../internals/a-function');

var iterate = require('../internals/iterate');
var Set = path.Set;

@@ -15,3 +14,3 @@ // `Set.prototype.difference` method

var set = anObject(this);
var newSet = new (speciesConstructor(set, Set))(set);
var newSet = new (speciesConstructor(set, getBuiltIn('Set')))(set);
var remover = aFunction(newSet['delete']);

@@ -18,0 +17,0 @@ iterate(iterable, function (value) {

'use strict';
var getBuiltIn = require('../internals/get-built-in');
var anObject = require('../internals/an-object');

@@ -7,3 +8,2 @@ var aFunction = require('../internals/a-function');

var getSetIterator = require('../internals/get-set-iterator');
var Set = require('../internals/path').Set;

@@ -17,3 +17,3 @@ // `Set.prototype.filter` method

var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3);
var newSet = new (speciesConstructor(set, Set))();
var newSet = new (speciesConstructor(set, getBuiltIn('Set')))();
var adder = aFunction(newSet.add);

@@ -20,0 +20,0 @@ var step, value;

// `Set.from` method
// https://tc39.github.io/proposal-setmap-offrom/#sec-set.from
require('../internals/set-collection-from')('Set');
require('../internals/export')({ target: 'Set', stat: true }, {
from: require('../internals/collection-from')
});
'use strict';
var path = require('../internals/path');
var getBuiltIn = require('../internals/get-built-in');
var anObject = require('../internals/an-object');

@@ -7,3 +7,2 @@ var aFunction = require('../internals/a-function');

var iterate = require('../internals/iterate');
var Set = path.Set;

@@ -15,3 +14,3 @@ // `Set.prototype.intersection` method

var set = anObject(this);
var newSet = new (speciesConstructor(set, Set))();
var newSet = new (speciesConstructor(set, getBuiltIn('Set')))();
var hasCheck = aFunction(set.has);

@@ -18,0 +17,0 @@ var adder = aFunction(newSet.add);

'use strict';
var Set = require('../internals/path').Set;
var getBuiltIn = require('../internals/get-built-in');
var anObject = require('../internals/an-object');
var aFunction = require('../internals/a-function');
var getSetIterator = require('../internals/get-set-iterator');
var getIterator = require('../internals/get-iterator');
var iterate = require('../internals/iterate');
var classof = require('../internals/classof');
var BREAK = iterate.BREAK;

@@ -14,9 +13,13 @@

isSubsetOf: function isSubsetOf(iterable) {
var iterator = getSetIterator(anObject(this));
var otherSet = classof(anObject(iterable)) == 'Set' ? iterable : new Set(iterable);
var hasCheck = aFunction(otherSet.has);
var iterator = getIterator(this);
var otherSet = anObject(iterable);
var hasCheck = otherSet.has;
if (typeof hasCheck != 'function') {
otherSet = new (getBuiltIn('Set'))(iterable);
hasCheck = aFunction(otherSet.has);
}
return iterate(iterator, function (value) {
if (hasCheck.call(otherSet, value) === false) return BREAK;
}) !== BREAK;
}, undefined, false, true) !== BREAK;
}
});
'use strict';
var getBuiltIn = require('../internals/get-built-in');
var anObject = require('../internals/an-object');

@@ -7,3 +8,2 @@ var aFunction = require('../internals/a-function');

var getSetIterator = require('../internals/get-set-iterator');
var Set = require('../internals/path').Set;

@@ -17,3 +17,3 @@ // `Set.prototype.map` method

var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3);
var newSet = new (speciesConstructor(set, Set))();
var newSet = new (speciesConstructor(set, getBuiltIn('Set')))();
var adder = aFunction(newSet.add);

@@ -20,0 +20,0 @@ var step, value;

// `Set.of` method
// https://tc39.github.io/proposal-setmap-offrom/#sec-set.of
require('../internals/set-collection-of')('Set');
require('../internals/export')({ target: 'Set', stat: true }, {
of: require('../internals/collection-of')
});

@@ -17,3 +17,3 @@ 'use strict';

step = iterator.next();
if (step.done) throw TypeError('Reduce of empty set with no initial value!');
if (step.done) throw TypeError('Reduce of empty set with no initial value');
accumulator = step.value;

@@ -20,0 +20,0 @@ }

'use strict';
var path = require('../internals/path');
var getBuiltIn = require('../internals/get-built-in');
var anObject = require('../internals/an-object');

@@ -7,3 +7,2 @@ var aFunction = require('../internals/a-function');

var iterate = require('../internals/iterate');
var Set = path.Set;

@@ -15,3 +14,3 @@ // `Set.prototype.symmetricDifference` method

var set = anObject(this);
var newSet = new (speciesConstructor(set, Set))(set);
var newSet = new (speciesConstructor(set, getBuiltIn('Set')))(set);
var remover = aFunction(newSet['delete']);

@@ -18,0 +17,0 @@ var adder = aFunction(newSet.add);

'use strict';
var path = require('../internals/path');
var getBuiltIn = require('../internals/get-built-in');
var anObject = require('../internals/an-object');

@@ -7,3 +7,2 @@ var aFunction = require('../internals/a-function');

var iterate = require('../internals/iterate');
var Set = path.Set;

@@ -15,3 +14,3 @@ // `Set.prototype.union` method

var set = anObject(this);
var newSet = new (speciesConstructor(set, Set))(set);
var newSet = new (speciesConstructor(set, getBuiltIn('Set')))(set);
iterate(iterable, aFunction(newSet.add), newSet);

@@ -18,0 +17,0 @@ return newSet;

'use strict';
var internalAt = require('../internals/string-at')(true);
var codePointAt = require('../internals/string-at');

@@ -8,4 +8,4 @@ // `String.prototype.at` method

at: function at(pos) {
return internalAt(this, pos);
return codePointAt(this, pos, true);
}
});

@@ -5,8 +5,6 @@ 'use strict';

var InternalStateModule = require('../internals/internal-state');
var createAt = require('../internals/string-at');
var codePointAt = require('../internals/string-at');
var STRING_ITERATOR = 'String Iterator';
var setInternalState = InternalStateModule.set;
var getInternalState = InternalStateModule.getterFor(STRING_ITERATOR);
var codePointAt = createAt(false);
var at = createAt(true);

@@ -26,3 +24,3 @@ // TODO: unify with String#@@iterator

if (index >= string.length) return { value: undefined, done: true };
point = at(string, index);
point = codePointAt(string, index, true);
state.index += point.length;

@@ -29,0 +27,0 @@ return { value: { codePoint: codePointAt(point, 0), position: index }, done: false };

@@ -27,3 +27,3 @@ 'use strict';

result = exec.call(R, S);
if (typeof result != 'object') throw TypeError('Incorrect exec result!');
if (typeof result != 'object') throw TypeError('Incorrect exec result');
return result;

@@ -30,0 +30,0 @@ } return regExpBuiltinExec.call(R, S);

// `WeakMap.from` method
// https://tc39.github.io/proposal-setmap-offrom/#sec-weakmap.from
require('../internals/set-collection-from')('WeakMap');
require('../internals/export')({ target: 'WeakMap', stat: true }, {
from: require('../internals/collection-from')
});
// `WeakMap.of` method
// https://tc39.github.io/proposal-setmap-offrom/#sec-weakmap.of
require('../internals/set-collection-of')('WeakMap');
require('../internals/export')({ target: 'WeakMap', stat: true }, {
of: require('../internals/collection-of')
});
// `WeakSet.from` method
// https://tc39.github.io/proposal-setmap-offrom/#sec-weakset.from
require('../internals/set-collection-from')('WeakSet');
require('../internals/export')({ target: 'WeakSet', stat: true }, {
from: require('../internals/collection-from')
});
// `WeakSet.of` method
// https://tc39.github.io/proposal-setmap-offrom/#sec-weakset.of
require('../internals/set-collection-of')('WeakSet');
require('../internals/export')({ target: 'WeakSet', stat: true }, {
of: require('../internals/collection-of')
});

@@ -71,3 +71,3 @@ 'use strict';

var validateArgumentsLength = function (passed, required) {
if (passed < required) throw new TypeError('Not enough arguments!');
if (passed < required) throw TypeError('Not enough arguments');
};

@@ -118,3 +118,3 @@

!entryIterator.next().done
) throw new TypeError('Expected sequence with length 2');
) throw TypeError('Expected sequence with length 2');
entries.push({ key: first.value + '', value: second.value + '' });

@@ -121,0 +121,0 @@ }

@@ -13,3 +13,3 @@ 'use strict';

var arrayFrom = require('../internals/array-from');
var codePointAt = require('../internals/string-at')(false);
var codePointAt = require('../internals/string-at');
var toASCII = require('../internals/punycode-to-ascii');

@@ -746,7 +746,7 @@ var URLSearchParamsModule = require('../modules/web.url-search-params');

failure = parseURL(baseState = {}, String(base));
if (failure) throw new TypeError(failure);
if (failure) throw TypeError(failure);
}
}
failure = parseURL(state, urlString, null, baseState);
if (failure) throw new TypeError(failure);
if (failure) throw TypeError(failure);
var searchParams = state.searchParams = new URLSearchParams();

@@ -877,3 +877,3 @@ var searchParamsState = getInternalSearchParamsState(searchParams);

var failure = parseURL(url, urlString);
if (failure) throw new TypeError(failure);
if (failure) throw TypeError(failure);
getInternalSearchParamsState(url.searchParams).updateSearchParams(url.query);

@@ -880,0 +880,0 @@ }),

{
"name": "core-js-pure",
"description": "Standard library",
"version": "3.0.0-beta.8",
"version": "3.0.0-beta.9",
"repository": {

@@ -6,0 +6,0 @@ "type": "git",

require('../modules/esnext.set.difference');
require('../modules/esnext.set.intersection');
require('../modules/esnext.set.is-disjoint-with');
require('../modules/esnext.set.is-disjoint-from');
require('../modules/esnext.set.is-subset-of');

@@ -5,0 +5,0 @@ require('../modules/esnext.set.is-superset-of');

@@ -1,2 +0,2 @@

require('../modules/esnext.string.trim-left');
require('../modules/esnext.string.trim-right');
require('../modules/esnext.string.trim-start');
require('../modules/esnext.string.trim-end');
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc