Comparing version 3.20.3 to 3.21.0
@@ -383,2 +383,4 @@ require('../modules/es.symbol'); | ||
require('../modules/esnext.weak-set.of'); | ||
require('../modules/web.atob'); | ||
require('../modules/web.btoa'); | ||
require('../modules/web.dom-collections.for-each'); | ||
@@ -385,0 +387,0 @@ require('../modules/web.dom-collections.iterator'); |
@@ -7,7 +7,7 @@ var IS_PURE = require('../internals/is-pure'); | ||
})('versions', []).push({ | ||
version: '3.20.3', | ||
version: '3.21.0', | ||
mode: IS_PURE ? 'pure' : 'global', | ||
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)', | ||
license: 'https://github.com/zloirock/core-js/blob/v3.20.3/LICENSE', | ||
license: 'https://github.com/zloirock/core-js/blob/v3.21.0/LICENSE', | ||
source: 'https://github.com/zloirock/core-js' | ||
}); |
@@ -10,2 +10,3 @@ var global = require('../internals/global'); | ||
var createElement = require('../internals/document-create-element'); | ||
var validateArgumentsLength = require('../internals/validate-arguments-length'); | ||
var IS_IOS = require('../internals/engine-is-ios'); | ||
@@ -56,6 +57,8 @@ var IS_NODE = require('../internals/engine-is-node'); | ||
if (!set || !clear) { | ||
set = function setImmediate(fn) { | ||
set = function setImmediate(handler) { | ||
validateArgumentsLength(arguments.length, 1); | ||
var fn = isCallable(handler) ? handler : Function(handler); | ||
var args = arraySlice(arguments, 1); | ||
queue[++counter] = function () { | ||
apply(isCallable(fn) ? fn : Function(fn), undefined, args); | ||
apply(fn, undefined, args); | ||
}; | ||
@@ -62,0 +65,0 @@ defer(counter); |
@@ -9,3 +9,3 @@ 'use strict'; | ||
// https://github.com/tc39/proposal-array-filtering | ||
$({ target: 'Array', proto: true }, { | ||
$({ target: 'Array', proto: true, forced: true }, { | ||
filterOut: function filterOut(callbackfn /* , thisArg */) { | ||
@@ -12,0 +12,0 @@ return $filterReject(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); |
@@ -8,3 +8,3 @@ 'use strict'; | ||
// https://github.com/tc39/proposal-array-filtering | ||
$({ target: 'Array', proto: true }, { | ||
$({ target: 'Array', proto: true, forced: true }, { | ||
filterReject: function filterReject(callbackfn /* , thisArg */) { | ||
@@ -11,0 +11,0 @@ return $filterReject(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); |
@@ -6,4 +6,4 @@ var $ = require('../internals/export'); | ||
// https://github.com/tc39/proposal-array-from-async | ||
$({ target: 'Array', stat: true }, { | ||
$({ target: 'Array', stat: true, forced: true }, { | ||
fromAsync: fromAsync | ||
}); |
@@ -22,3 +22,3 @@ var $ = require('../internals/export'); | ||
// https://github.com/tc39/proposal-array-is-template-object | ||
$({ target: 'Array', stat: true }, { | ||
$({ target: 'Array', stat: true, sham: true, forced: true }, { | ||
isTemplateObject: function isTemplateObject(value) { | ||
@@ -25,0 +25,0 @@ if (!isFrozenStringArray(value, true)) return false; |
@@ -10,3 +10,3 @@ 'use strict'; | ||
// https://github.com/keithamus/proposal-array-last | ||
if (DESCRIPTORS && !('lastIndex' in [])) { | ||
if (DESCRIPTORS) { | ||
defineProperty(Array.prototype, 'lastIndex', { | ||
@@ -13,0 +13,0 @@ configurable: true, |
@@ -10,3 +10,3 @@ 'use strict'; | ||
// https://github.com/keithamus/proposal-array-last | ||
if (DESCRIPTORS && !('lastItem' in [])) { | ||
if (DESCRIPTORS) { | ||
defineProperty(Array.prototype, 'lastItem', { | ||
@@ -13,0 +13,0 @@ configurable: true, |
@@ -12,3 +12,3 @@ 'use strict'; | ||
// https://tc39.es/proposal-change-array-by-copy/#sec-array.prototype.toReversed | ||
$({ target: 'Array', proto: true }, { | ||
$({ target: 'Array', proto: true, forced: true }, { | ||
toReversed: function toReversed() { | ||
@@ -15,0 +15,0 @@ return arrayToReversed(toIndexedObject(this), Array); |
@@ -16,3 +16,3 @@ 'use strict'; | ||
// https://tc39.es/proposal-change-array-by-copy/#sec-array.prototype.toSorted | ||
$({ target: 'Array', proto: true }, { | ||
$({ target: 'Array', proto: true, forced: true }, { | ||
toSorted: function toSorted(compareFn) { | ||
@@ -19,0 +19,0 @@ if (compareFn !== undefined) aCallable(compareFn); |
@@ -13,3 +13,3 @@ 'use strict'; | ||
// https://tc39.es/proposal-change-array-by-copy/#sec-array.prototype.toSpliced | ||
$({ target: 'Array', proto: true }, { | ||
$({ target: 'Array', proto: true, forced: true }, { | ||
// eslint-disable-next-line no-unused-vars -- required for .length | ||
@@ -16,0 +16,0 @@ toSpliced: function toSpliced(start, deleteCount /* , ...items */) { |
@@ -8,3 +8,3 @@ 'use strict'; | ||
// https://github.com/tc39/proposal-array-unique | ||
$({ target: 'Array', proto: true }, { | ||
$({ target: 'Array', proto: true, forced: true }, { | ||
uniqueBy: uniqueBy | ||
@@ -11,0 +11,0 @@ }); |
@@ -11,3 +11,3 @@ 'use strict'; | ||
// https://tc39.es/proposal-change-array-by-copy/#sec-array.prototype.with | ||
$({ target: 'Array', proto: true }, { | ||
$({ target: 'Array', proto: true, forced: true }, { | ||
'with': function (index, value) { | ||
@@ -14,0 +14,0 @@ return arrayWith(toIndexedObject(this), Array, index, value); |
@@ -21,3 +21,3 @@ 'use strict'; | ||
$({ target: 'AsyncIterator', proto: true, real: true }, { | ||
$({ target: 'AsyncIterator', proto: true, real: true, forced: true }, { | ||
asIndexedPairs: function asIndexedPairs() { | ||
@@ -24,0 +24,0 @@ return new AsyncIteratorProxy({ |
@@ -35,3 +35,3 @@ 'use strict'; | ||
$({ target: 'AsyncIterator', proto: true, real: true }, { | ||
$({ target: 'AsyncIterator', proto: true, real: true, forced: true }, { | ||
drop: function drop(limit) { | ||
@@ -38,0 +38,0 @@ return new AsyncIteratorProxy({ |
@@ -6,3 +6,3 @@ 'use strict'; | ||
$({ target: 'AsyncIterator', proto: true, real: true }, { | ||
$({ target: 'AsyncIterator', proto: true, real: true, forced: true }, { | ||
every: function every(fn) { | ||
@@ -9,0 +9,0 @@ return $every(this, fn); |
@@ -36,3 +36,3 @@ 'use strict'; | ||
$({ target: 'AsyncIterator', proto: true, real: true }, { | ||
$({ target: 'AsyncIterator', proto: true, real: true, forced: true }, { | ||
filter: function filter(filterer) { | ||
@@ -39,0 +39,0 @@ return new AsyncIteratorProxy({ |
@@ -6,3 +6,3 @@ 'use strict'; | ||
$({ target: 'AsyncIterator', proto: true, real: true }, { | ||
$({ target: 'AsyncIterator', proto: true, real: true, forced: true }, { | ||
find: function find(fn) { | ||
@@ -9,0 +9,0 @@ return $find(this, fn); |
@@ -56,3 +56,3 @@ 'use strict'; | ||
$({ target: 'AsyncIterator', proto: true, real: true }, { | ||
$({ target: 'AsyncIterator', proto: true, real: true, forced: true }, { | ||
flatMap: function flatMap(mapper) { | ||
@@ -59,0 +59,0 @@ return new AsyncIteratorProxy({ |
@@ -6,3 +6,3 @@ 'use strict'; | ||
$({ target: 'AsyncIterator', proto: true, real: true }, { | ||
$({ target: 'AsyncIterator', proto: true, real: true, forced: true }, { | ||
forEach: function forEach(fn) { | ||
@@ -9,0 +9,0 @@ return $forEach(this, fn); |
@@ -22,3 +22,3 @@ // https://github.com/tc39/proposal-iterator-helpers | ||
$({ target: 'AsyncIterator', stat: true }, { | ||
$({ target: 'AsyncIterator', stat: true, forced: true }, { | ||
from: function from(O) { | ||
@@ -25,0 +25,0 @@ var object = toObject(O); |
@@ -24,3 +24,3 @@ 'use strict'; | ||
$({ target: 'AsyncIterator', proto: true, real: true }, { | ||
$({ target: 'AsyncIterator', proto: true, real: true, forced: true }, { | ||
map: function map(mapper) { | ||
@@ -27,0 +27,0 @@ return new AsyncIteratorProxy({ |
@@ -13,3 +13,3 @@ 'use strict'; | ||
$({ target: 'AsyncIterator', proto: true, real: true }, { | ||
$({ target: 'AsyncIterator', proto: true, real: true, forced: true }, { | ||
reduce: function reduce(reducer /* , initialValue */) { | ||
@@ -16,0 +16,0 @@ var iterator = anObject(this); |
@@ -6,3 +6,3 @@ 'use strict'; | ||
$({ target: 'AsyncIterator', proto: true, real: true }, { | ||
$({ target: 'AsyncIterator', proto: true, real: true, forced: true }, { | ||
some: function some(fn) { | ||
@@ -9,0 +9,0 @@ return $some(this, fn); |
@@ -26,3 +26,3 @@ 'use strict'; | ||
$({ target: 'AsyncIterator', proto: true, real: true }, { | ||
$({ target: 'AsyncIterator', proto: true, real: true, forced: true }, { | ||
take: function take(limit) { | ||
@@ -29,0 +29,0 @@ return new AsyncIteratorProxy({ |
@@ -6,3 +6,3 @@ 'use strict'; | ||
$({ target: 'AsyncIterator', proto: true, real: true }, { | ||
$({ target: 'AsyncIterator', proto: true, real: true, forced: true }, { | ||
toArray: function toArray() { | ||
@@ -9,0 +9,0 @@ return $toArray(this, undefined, []); |
@@ -9,3 +9,3 @@ 'use strict'; | ||
if (typeof BigInt == 'function') { | ||
$({ target: 'BigInt', stat: true }, { | ||
$({ target: 'BigInt', stat: true, forced: true }, { | ||
range: function range(start, end, option) { | ||
@@ -12,0 +12,0 @@ return new NumericRangeIterator(start, end, option, 'bigint', BigInt(0), BigInt(1)); |
@@ -16,3 +16,3 @@ var $ = require('../internals/export'); | ||
// https://github.com/tc39/proposal-richer-keys/tree/master/compositeKey | ||
$({ global: true }, { | ||
$({ global: true, forced: true }, { | ||
compositeKey: function compositeKey() { | ||
@@ -19,0 +19,0 @@ return apply(getCompositeKeyNode, Object, arguments).get('object', initializer); |
@@ -7,3 +7,3 @@ var $ = require('../internals/export'); | ||
// https://github.com/tc39/proposal-richer-keys/tree/master/compositeKey | ||
$({ global: true }, { | ||
$({ global: true, forced: true }, { | ||
compositeSymbol: function compositeSymbol() { | ||
@@ -10,0 +10,0 @@ if (arguments.length == 1 && typeof arguments[0] == 'string') return getBuiltIn('Symbol')['for'](arguments[0]); |
@@ -25,3 +25,3 @@ var $ = require('../internals/export'); | ||
// https://github.com/caitp/TC39-Proposals/blob/trunk/tc39-reflect-isconstructor-iscallable.md | ||
$({ target: 'Function', stat: true, sham: true }, { | ||
$({ target: 'Function', stat: true, sham: true, forced: true }, { | ||
isCallable: function isCallable(argument) { | ||
@@ -28,0 +28,0 @@ return $isCallable(argument) && !isClassConstructor(argument); |
@@ -6,4 +6,4 @@ var $ = require('../internals/export'); | ||
// https://github.com/caitp/TC39-Proposals/blob/trunk/tc39-reflect-isconstructor-iscallable.md | ||
$({ target: 'Function', stat: true }, { | ||
$({ target: 'Function', stat: true, forced: true }, { | ||
isConstructor: isConstructor | ||
}); |
@@ -7,3 +7,3 @@ var $ = require('../internals/export'); | ||
// https://github.com/js-choi/proposal-function-un-this | ||
$({ target: 'Function', proto: true }, { | ||
$({ target: 'Function', proto: true, forced: true }, { | ||
unThis: function unThis() { | ||
@@ -10,0 +10,0 @@ return uncurryThis(aCallable(this)); |
@@ -14,3 +14,3 @@ 'use strict'; | ||
$({ target: 'Iterator', proto: true, real: true }, { | ||
$({ target: 'Iterator', proto: true, real: true, forced: true }, { | ||
asIndexedPairs: function asIndexedPairs() { | ||
@@ -17,0 +17,0 @@ return new IteratorProxy({ |
@@ -25,3 +25,3 @@ 'use strict'; | ||
$({ target: 'Iterator', proto: true, real: true }, { | ||
$({ target: 'Iterator', proto: true, real: true, forced: true }, { | ||
drop: function drop(limit) { | ||
@@ -28,0 +28,0 @@ return new IteratorProxy({ |
@@ -8,3 +8,3 @@ 'use strict'; | ||
$({ target: 'Iterator', proto: true, real: true }, { | ||
$({ target: 'Iterator', proto: true, real: true, forced: true }, { | ||
every: function every(fn) { | ||
@@ -11,0 +11,0 @@ anObject(this); |
@@ -24,3 +24,3 @@ 'use strict'; | ||
$({ target: 'Iterator', proto: true, real: true }, { | ||
$({ target: 'Iterator', proto: true, real: true, forced: true }, { | ||
filter: function filter(filterer) { | ||
@@ -27,0 +27,0 @@ return new IteratorProxy({ |
@@ -8,3 +8,3 @@ 'use strict'; | ||
$({ target: 'Iterator', proto: true, real: true }, { | ||
$({ target: 'Iterator', proto: true, real: true, forced: true }, { | ||
find: function find(fn) { | ||
@@ -11,0 +11,0 @@ anObject(this); |
@@ -46,3 +46,3 @@ 'use strict'; | ||
$({ target: 'Iterator', proto: true, real: true }, { | ||
$({ target: 'Iterator', proto: true, real: true, forced: true }, { | ||
flatMap: function flatMap(mapper) { | ||
@@ -49,0 +49,0 @@ return new IteratorProxy({ |
@@ -7,3 +7,3 @@ 'use strict'; | ||
$({ target: 'Iterator', proto: true, real: true }, { | ||
$({ target: 'Iterator', proto: true, real: true, forced: true }, { | ||
forEach: function forEach(fn) { | ||
@@ -10,0 +10,0 @@ iterate(anObject(this), fn, { IS_ITERATOR: true }); |
@@ -18,3 +18,3 @@ // https://github.com/tc39/proposal-iterator-helpers | ||
$({ target: 'Iterator', stat: true }, { | ||
$({ target: 'Iterator', stat: true, forced: true }, { | ||
from: function from(O) { | ||
@@ -21,0 +21,0 @@ var object = toObject(O); |
@@ -17,3 +17,3 @@ 'use strict'; | ||
$({ target: 'Iterator', proto: true, real: true }, { | ||
$({ target: 'Iterator', proto: true, real: true, forced: true }, { | ||
map: function map(mapper) { | ||
@@ -20,0 +20,0 @@ return new IteratorProxy({ |
@@ -11,3 +11,3 @@ 'use strict'; | ||
$({ target: 'Iterator', proto: true, real: true }, { | ||
$({ target: 'Iterator', proto: true, real: true, forced: true }, { | ||
reduce: function reduce(reducer /* , initialValue */) { | ||
@@ -14,0 +14,0 @@ anObject(this); |
@@ -8,3 +8,3 @@ 'use strict'; | ||
$({ target: 'Iterator', proto: true, real: true }, { | ||
$({ target: 'Iterator', proto: true, real: true, forced: true }, { | ||
some: function some(fn) { | ||
@@ -11,0 +11,0 @@ anObject(this); |
@@ -21,3 +21,3 @@ 'use strict'; | ||
$({ target: 'Iterator', proto: true, real: true }, { | ||
$({ target: 'Iterator', proto: true, real: true, forced: true }, { | ||
take: function take(limit) { | ||
@@ -24,0 +24,0 @@ return new IteratorProxy({ |
@@ -9,3 +9,3 @@ 'use strict'; | ||
$({ target: 'Iterator', proto: true, real: true }, { | ||
$({ target: 'Iterator', proto: true, real: true, forced: true }, { | ||
toArray: function toArray() { | ||
@@ -12,0 +12,0 @@ var result = []; |
@@ -6,3 +6,3 @@ 'use strict'; | ||
$({ target: 'Iterator', proto: true, real: true }, { | ||
$({ target: 'Iterator', proto: true, real: true, forced: true }, { | ||
toAsync: function toAsync() { | ||
@@ -9,0 +9,0 @@ return new AsyncFromSyncIterator(this); |
'use strict'; | ||
var $ = require('../internals/export'); | ||
var IS_PURE = require('../internals/is-pure'); | ||
var deleteAll = require('../internals/collection-delete-all'); | ||
@@ -8,4 +7,4 @@ | ||
// https://github.com/tc39/proposal-collection-methods | ||
$({ target: 'Map', proto: true, real: true, forced: IS_PURE }, { | ||
$({ target: 'Map', proto: true, real: true, forced: true }, { | ||
deleteAll: deleteAll | ||
}); |
'use strict'; | ||
var $ = require('../internals/export'); | ||
var IS_PURE = require('../internals/is-pure'); | ||
var emplace = require('../internals/map-emplace'); | ||
@@ -8,4 +7,4 @@ | ||
// https://github.com/thumbsupep/proposal-upsert | ||
$({ target: 'Map', proto: true, real: true, forced: IS_PURE }, { | ||
$({ target: 'Map', proto: true, real: true, forced: true }, { | ||
emplace: emplace | ||
}); |
'use strict'; | ||
var $ = require('../internals/export'); | ||
var IS_PURE = require('../internals/is-pure'); | ||
var anObject = require('../internals/an-object'); | ||
@@ -11,3 +10,3 @@ var bind = require('../internals/function-bind-context'); | ||
// https://github.com/tc39/proposal-collection-methods | ||
$({ target: 'Map', proto: true, real: true, forced: IS_PURE }, { | ||
$({ target: 'Map', proto: true, real: true, forced: true }, { | ||
every: function every(callbackfn /* , thisArg */) { | ||
@@ -14,0 +13,0 @@ var map = anObject(this); |
'use strict'; | ||
var IS_PURE = require('../internals/is-pure'); | ||
var $ = require('../internals/export'); | ||
@@ -15,3 +14,3 @@ var getBuiltIn = require('../internals/get-built-in'); | ||
// https://github.com/tc39/proposal-collection-methods | ||
$({ target: 'Map', proto: true, real: true, forced: IS_PURE }, { | ||
$({ target: 'Map', proto: true, real: true, forced: true }, { | ||
filter: function filter(callbackfn /* , thisArg */) { | ||
@@ -18,0 +17,0 @@ var map = anObject(this); |
'use strict'; | ||
var $ = require('../internals/export'); | ||
var IS_PURE = require('../internals/is-pure'); | ||
var anObject = require('../internals/an-object'); | ||
@@ -11,3 +10,3 @@ var bind = require('../internals/function-bind-context'); | ||
// https://github.com/tc39/proposal-collection-methods | ||
$({ target: 'Map', proto: true, real: true, forced: IS_PURE }, { | ||
$({ target: 'Map', proto: true, real: true, forced: true }, { | ||
findKey: function findKey(callbackfn /* , thisArg */) { | ||
@@ -14,0 +13,0 @@ var map = anObject(this); |
'use strict'; | ||
var $ = require('../internals/export'); | ||
var IS_PURE = require('../internals/is-pure'); | ||
var anObject = require('../internals/an-object'); | ||
@@ -11,3 +10,3 @@ var bind = require('../internals/function-bind-context'); | ||
// https://github.com/tc39/proposal-collection-methods | ||
$({ target: 'Map', proto: true, real: true, forced: IS_PURE }, { | ||
$({ target: 'Map', proto: true, real: true, forced: true }, { | ||
find: function find(callbackfn /* , thisArg */) { | ||
@@ -14,0 +13,0 @@ var map = anObject(this); |
@@ -6,4 +6,4 @@ var $ = require('../internals/export'); | ||
// https://tc39.github.io/proposal-setmap-offrom/#sec-map.from | ||
$({ target: 'Map', stat: true }, { | ||
$({ target: 'Map', stat: true, forced: true }, { | ||
from: from | ||
}); |
@@ -13,3 +13,3 @@ 'use strict'; | ||
// https://github.com/tc39/proposal-collection-methods | ||
$({ target: 'Map', stat: true }, { | ||
$({ target: 'Map', stat: true, forced: true }, { | ||
groupBy: function groupBy(iterable, keyDerivative) { | ||
@@ -16,0 +16,0 @@ aCallable(keyDerivative); |
'use strict'; | ||
var IS_PURE = require('../internals/is-pure'); | ||
var $ = require('../internals/export'); | ||
@@ -11,3 +10,3 @@ var anObject = require('../internals/an-object'); | ||
// https://github.com/tc39/proposal-collection-methods | ||
$({ target: 'Map', proto: true, real: true, forced: IS_PURE }, { | ||
$({ target: 'Map', proto: true, real: true, forced: true }, { | ||
includes: function includes(searchElement) { | ||
@@ -14,0 +13,0 @@ return iterate(getMapIterator(anObject(this)), function (key, value, stop) { |
@@ -9,3 +9,3 @@ 'use strict'; | ||
// https://github.com/tc39/proposal-collection-methods | ||
$({ target: 'Map', stat: true }, { | ||
$({ target: 'Map', stat: true, forced: true }, { | ||
keyBy: function keyBy(iterable, keyDerivative) { | ||
@@ -12,0 +12,0 @@ var newMap = new this(); |
'use strict'; | ||
var $ = require('../internals/export'); | ||
var IS_PURE = require('../internals/is-pure'); | ||
var anObject = require('../internals/an-object'); | ||
@@ -10,3 +9,3 @@ var getMapIterator = require('../internals/get-map-iterator'); | ||
// https://github.com/tc39/proposal-collection-methods | ||
$({ target: 'Map', proto: true, real: true, forced: IS_PURE }, { | ||
$({ target: 'Map', proto: true, real: true, forced: true }, { | ||
keyOf: function keyOf(searchElement) { | ||
@@ -13,0 +12,0 @@ return iterate(getMapIterator(anObject(this)), function (key, value, stop) { |
'use strict'; | ||
var IS_PURE = require('../internals/is-pure'); | ||
var $ = require('../internals/export'); | ||
@@ -15,3 +14,3 @@ var getBuiltIn = require('../internals/get-built-in'); | ||
// https://github.com/tc39/proposal-collection-methods | ||
$({ target: 'Map', proto: true, real: true, forced: IS_PURE }, { | ||
$({ target: 'Map', proto: true, real: true, forced: true }, { | ||
mapKeys: function mapKeys(callbackfn /* , thisArg */) { | ||
@@ -18,0 +17,0 @@ var map = anObject(this); |
'use strict'; | ||
var IS_PURE = require('../internals/is-pure'); | ||
var $ = require('../internals/export'); | ||
@@ -15,3 +14,3 @@ var getBuiltIn = require('../internals/get-built-in'); | ||
// https://github.com/tc39/proposal-collection-methods | ||
$({ target: 'Map', proto: true, real: true, forced: IS_PURE }, { | ||
$({ target: 'Map', proto: true, real: true, forced: true }, { | ||
mapValues: function mapValues(callbackfn /* , thisArg */) { | ||
@@ -18,0 +17,0 @@ var map = anObject(this); |
'use strict'; | ||
var $ = require('../internals/export'); | ||
var IS_PURE = require('../internals/is-pure'); | ||
var aCallable = require('../internals/a-callable'); | ||
@@ -10,3 +9,3 @@ var anObject = require('../internals/an-object'); | ||
// https://github.com/tc39/proposal-collection-methods | ||
$({ target: 'Map', proto: true, real: true, forced: IS_PURE }, { | ||
$({ target: 'Map', proto: true, real: true, forced: true }, { | ||
// eslint-disable-next-line no-unused-vars -- required for `.length` | ||
@@ -13,0 +12,0 @@ merge: function merge(iterable /* ...iterables */) { |
@@ -6,4 +6,4 @@ var $ = require('../internals/export'); | ||
// https://tc39.github.io/proposal-setmap-offrom/#sec-map.of | ||
$({ target: 'Map', stat: true }, { | ||
$({ target: 'Map', stat: true, forced: true }, { | ||
of: of | ||
}); |
'use strict'; | ||
var $ = require('../internals/export'); | ||
var global = require('../internals/global'); | ||
var IS_PURE = require('../internals/is-pure'); | ||
var anObject = require('../internals/an-object'); | ||
@@ -14,3 +13,3 @@ var aCallable = require('../internals/a-callable'); | ||
// https://github.com/tc39/proposal-collection-methods | ||
$({ target: 'Map', proto: true, real: true, forced: IS_PURE }, { | ||
$({ target: 'Map', proto: true, real: true, forced: true }, { | ||
reduce: function reduce(callbackfn /* , initialValue */) { | ||
@@ -17,0 +16,0 @@ var map = anObject(this); |
'use strict'; | ||
var $ = require('../internals/export'); | ||
var IS_PURE = require('../internals/is-pure'); | ||
var anObject = require('../internals/an-object'); | ||
@@ -11,3 +10,3 @@ var bind = require('../internals/function-bind-context'); | ||
// https://github.com/tc39/proposal-collection-methods | ||
$({ target: 'Map', proto: true, real: true, forced: IS_PURE }, { | ||
$({ target: 'Map', proto: true, real: true, forced: true }, { | ||
some: function some(callbackfn /* , thisArg */) { | ||
@@ -14,0 +13,0 @@ var map = anObject(this); |
'use strict'; | ||
// TODO: remove from `core-js@4` | ||
var $ = require('../internals/export'); | ||
var IS_PURE = require('../internals/is-pure'); | ||
var upsert = require('../internals/map-upsert'); | ||
@@ -9,4 +8,4 @@ | ||
// https://github.com/thumbsupep/proposal-upsert | ||
$({ target: 'Map', proto: true, real: true, name: 'upsert', forced: IS_PURE }, { | ||
$({ target: 'Map', proto: true, real: true, name: 'upsert', forced: true }, { | ||
updateOrInsert: upsert | ||
}); |
'use strict'; | ||
var IS_PURE = require('../internals/is-pure'); | ||
var $ = require('../internals/export'); | ||
@@ -13,3 +12,3 @@ var global = require('../internals/global'); | ||
// https://github.com/tc39/proposal-collection-methods | ||
$({ target: 'Map', proto: true, real: true, forced: IS_PURE }, { | ||
$({ target: 'Map', proto: true, real: true, forced: true }, { | ||
update: function update(key, callback /* , thunk */) { | ||
@@ -16,0 +15,0 @@ var map = anObject(this); |
'use strict'; | ||
// TODO: remove from `core-js@4` | ||
var $ = require('../internals/export'); | ||
var IS_PURE = require('../internals/is-pure'); | ||
var upsert = require('../internals/map-upsert'); | ||
@@ -9,4 +8,4 @@ | ||
// https://github.com/thumbsupep/proposal-upsert | ||
$({ target: 'Map', proto: true, real: true, forced: IS_PURE }, { | ||
$({ target: 'Map', proto: true, real: true, forced: true }, { | ||
upsert: upsert | ||
}); |
@@ -8,3 +8,3 @@ var $ = require('../internals/export'); | ||
// https://rwaldron.github.io/proposal-math-extensions/ | ||
$({ target: 'Math', stat: true }, { | ||
$({ target: 'Math', stat: true, forced: true }, { | ||
clamp: function clamp(x, lower, upper) { | ||
@@ -11,0 +11,0 @@ return min(upper, max(lower, x)); |
@@ -5,4 +5,4 @@ var $ = require('../internals/export'); | ||
// https://rwaldron.github.io/proposal-math-extensions/ | ||
$({ target: 'Math', stat: true }, { | ||
$({ target: 'Math', stat: true, forced: true }, { | ||
DEG_PER_RAD: Math.PI / 180 | ||
}); |
@@ -7,3 +7,3 @@ var $ = require('../internals/export'); | ||
// https://rwaldron.github.io/proposal-math-extensions/ | ||
$({ target: 'Math', stat: true }, { | ||
$({ target: 'Math', stat: true, forced: true }, { | ||
degrees: function degrees(radians) { | ||
@@ -10,0 +10,0 @@ return radians * RAD_PER_DEG; |
@@ -8,3 +8,3 @@ var $ = require('../internals/export'); | ||
// https://rwaldron.github.io/proposal-math-extensions/ | ||
$({ target: 'Math', stat: true }, { | ||
$({ target: 'Math', stat: true, forced: true }, { | ||
fscale: function fscale(x, inLow, inHigh, outLow, outHigh) { | ||
@@ -11,0 +11,0 @@ return fround(scale(x, inLow, inHigh, outLow, outHigh)); |
@@ -6,3 +6,3 @@ var $ = require('../internals/export'); | ||
// TODO: Remove from `core-js@4` | ||
$({ target: 'Math', stat: true }, { | ||
$({ target: 'Math', stat: true, forced: true }, { | ||
iaddh: function iaddh(x0, x1, y0, y1) { | ||
@@ -9,0 +9,0 @@ var $x0 = x0 >>> 0; |
@@ -6,3 +6,3 @@ var $ = require('../internals/export'); | ||
// TODO: Remove from `core-js@4` | ||
$({ target: 'Math', stat: true }, { | ||
$({ target: 'Math', stat: true, forced: true }, { | ||
imulh: function imulh(u, v) { | ||
@@ -9,0 +9,0 @@ var UINT16 = 0xFFFF; |
@@ -6,3 +6,3 @@ var $ = require('../internals/export'); | ||
// TODO: Remove from `core-js@4` | ||
$({ target: 'Math', stat: true }, { | ||
$({ target: 'Math', stat: true, forced: true }, { | ||
isubh: function isubh(x0, x1, y0, y1) { | ||
@@ -9,0 +9,0 @@ var $x0 = x0 >>> 0; |
@@ -5,4 +5,4 @@ var $ = require('../internals/export'); | ||
// https://rwaldron.github.io/proposal-math-extensions/ | ||
$({ target: 'Math', stat: true }, { | ||
$({ target: 'Math', stat: true, forced: true }, { | ||
RAD_PER_DEG: 180 / Math.PI | ||
}); |
@@ -7,3 +7,3 @@ var $ = require('../internals/export'); | ||
// https://rwaldron.github.io/proposal-math-extensions/ | ||
$({ target: 'Math', stat: true }, { | ||
$({ target: 'Math', stat: true, forced: true }, { | ||
radians: function radians(degrees) { | ||
@@ -10,0 +10,0 @@ return degrees * DEG_PER_RAD; |
@@ -6,4 +6,4 @@ var $ = require('../internals/export'); | ||
// https://rwaldron.github.io/proposal-math-extensions/ | ||
$({ target: 'Math', stat: true }, { | ||
$({ target: 'Math', stat: true, forced: true }, { | ||
scale: scale | ||
}); |
@@ -5,3 +5,3 @@ var $ = require('../internals/export'); | ||
// https://github.com/tc39/proposal-Math.signbit | ||
$({ target: 'Math', stat: true }, { | ||
$({ target: 'Math', stat: true, forced: true }, { | ||
signbit: function signbit(x) { | ||
@@ -8,0 +8,0 @@ return (x = +x) == x && x == 0 ? 1 / x == -Infinity : x < 0; |
@@ -6,3 +6,3 @@ var $ = require('../internals/export'); | ||
// TODO: Remove from `core-js@4` | ||
$({ target: 'Math', stat: true }, { | ||
$({ target: 'Math', stat: true, forced: true }, { | ||
umulh: function umulh(u, v) { | ||
@@ -9,0 +9,0 @@ var UINT16 = 0xFFFF; |
@@ -21,3 +21,3 @@ 'use strict'; | ||
// https://github.com/tc39/proposal-number-fromstring | ||
$({ target: 'Number', stat: true }, { | ||
$({ target: 'Number', stat: true, forced: true }, { | ||
fromString: function fromString(string, radix) { | ||
@@ -24,0 +24,0 @@ var sign = 1; |
@@ -7,3 +7,3 @@ 'use strict'; | ||
// https://github.com/tc39/proposal-Number.range | ||
$({ target: 'Number', stat: true }, { | ||
$({ target: 'Number', stat: true, forced: true }, { | ||
range: function range(start, end, option) { | ||
@@ -10,0 +10,0 @@ return new NumericRangeIterator(start, end, option, 'number', 0, 1); |
@@ -7,3 +7,3 @@ 'use strict'; | ||
// https://github.com/tc39/proposal-object-iteration | ||
$({ target: 'Object', stat: true }, { | ||
$({ target: 'Object', stat: true, forced: true }, { | ||
iterateEntries: function iterateEntries(object) { | ||
@@ -10,0 +10,0 @@ return new ObjectIterator(object, 'entries'); |
@@ -7,3 +7,3 @@ 'use strict'; | ||
// https://github.com/tc39/proposal-object-iteration | ||
$({ target: 'Object', stat: true }, { | ||
$({ target: 'Object', stat: true, forced: true }, { | ||
iterateKeys: function iterateKeys(object) { | ||
@@ -10,0 +10,0 @@ return new ObjectIterator(object, 'keys'); |
@@ -7,3 +7,3 @@ 'use strict'; | ||
// https://github.com/tc39/proposal-object-iteration | ||
$({ target: 'Object', stat: true }, { | ||
$({ target: 'Object', stat: true, forced: true }, { | ||
iterateValues: function iterateValues(object) { | ||
@@ -10,0 +10,0 @@ return new ObjectIterator(object, 'values'); |
@@ -34,3 +34,11 @@ 'use strict'; | ||
var Array = global.Array; | ||
var NativeObservable = global.Observable; | ||
var NativeObservablePrototype = NativeObservable && NativeObservable.prototype; | ||
var FORCED = !isCallable(NativeObservable) | ||
|| !isCallable(NativeObservable.from) | ||
|| !isCallable(NativeObservable.of) | ||
|| !isCallable(NativeObservablePrototype.subscribe) | ||
|| !isCallable(NativeObservablePrototype[$$OBSERVABLE]); | ||
var SubscriptionState = function (observer) { | ||
@@ -222,3 +230,3 @@ this.observer = anObject(observer); | ||
$({ global: true }, { | ||
$({ global: true, forced: FORCED }, { | ||
Observable: $Observable | ||
@@ -225,0 +233,0 @@ }); |
@@ -8,3 +8,3 @@ 'use strict'; | ||
// https://github.com/tc39/proposal-promise-try | ||
$({ target: 'Promise', stat: true }, { | ||
$({ target: 'Promise', stat: true, forced: true }, { | ||
'try': function (callbackfn) { | ||
@@ -11,0 +11,0 @@ var promiseCapability = newPromiseCapabilityModule.f(this); |
'use strict'; | ||
var $ = require('../internals/export'); | ||
var IS_PURE = require('../internals/is-pure'); | ||
var addAll = require('../internals/collection-add-all'); | ||
@@ -8,4 +7,4 @@ | ||
// https://github.com/tc39/proposal-collection-methods | ||
$({ target: 'Set', proto: true, real: true, forced: IS_PURE }, { | ||
$({ target: 'Set', proto: true, real: true, forced: true }, { | ||
addAll: addAll | ||
}); |
'use strict'; | ||
var $ = require('../internals/export'); | ||
var IS_PURE = require('../internals/is-pure'); | ||
var deleteAll = require('../internals/collection-delete-all'); | ||
@@ -8,4 +7,4 @@ | ||
// https://github.com/tc39/proposal-collection-methods | ||
$({ target: 'Set', proto: true, real: true, forced: IS_PURE }, { | ||
$({ target: 'Set', proto: true, real: true, forced: true }, { | ||
deleteAll: deleteAll | ||
}); |
'use strict'; | ||
var IS_PURE = require('../internals/is-pure'); | ||
var $ = require('../internals/export'); | ||
@@ -13,3 +12,3 @@ var getBuiltIn = require('../internals/get-built-in'); | ||
// https://github.com/tc39/proposal-set-methods | ||
$({ target: 'Set', proto: true, real: true, forced: IS_PURE }, { | ||
$({ target: 'Set', proto: true, real: true, forced: true }, { | ||
difference: function difference(iterable) { | ||
@@ -16,0 +15,0 @@ var set = anObject(this); |
'use strict'; | ||
var $ = require('../internals/export'); | ||
var IS_PURE = require('../internals/is-pure'); | ||
var anObject = require('../internals/an-object'); | ||
@@ -11,3 +10,3 @@ var bind = require('../internals/function-bind-context'); | ||
// https://github.com/tc39/proposal-collection-methods | ||
$({ target: 'Set', proto: true, real: true, forced: IS_PURE }, { | ||
$({ target: 'Set', proto: true, real: true, forced: true }, { | ||
every: function every(callbackfn /* , thisArg */) { | ||
@@ -14,0 +13,0 @@ var set = anObject(this); |
'use strict'; | ||
var IS_PURE = require('../internals/is-pure'); | ||
var $ = require('../internals/export'); | ||
@@ -15,3 +14,3 @@ var getBuiltIn = require('../internals/get-built-in'); | ||
// https://github.com/tc39/proposal-collection-methods | ||
$({ target: 'Set', proto: true, real: true, forced: IS_PURE }, { | ||
$({ target: 'Set', proto: true, real: true, forced: true }, { | ||
filter: function filter(callbackfn /* , thisArg */) { | ||
@@ -18,0 +17,0 @@ var set = anObject(this); |
'use strict'; | ||
var $ = require('../internals/export'); | ||
var IS_PURE = require('../internals/is-pure'); | ||
var anObject = require('../internals/an-object'); | ||
@@ -11,3 +10,3 @@ var bind = require('../internals/function-bind-context'); | ||
// https://github.com/tc39/proposal-collection-methods | ||
$({ target: 'Set', proto: true, real: true, forced: IS_PURE }, { | ||
$({ target: 'Set', proto: true, real: true, forced: true }, { | ||
find: function find(callbackfn /* , thisArg */) { | ||
@@ -14,0 +13,0 @@ var set = anObject(this); |
@@ -6,4 +6,4 @@ var $ = require('../internals/export'); | ||
// https://tc39.github.io/proposal-setmap-offrom/#sec-set.from | ||
$({ target: 'Set', stat: true }, { | ||
$({ target: 'Set', stat: true, forced: true }, { | ||
from: from | ||
}); |
'use strict'; | ||
var IS_PURE = require('../internals/is-pure'); | ||
var $ = require('../internals/export'); | ||
@@ -13,3 +12,3 @@ var getBuiltIn = require('../internals/get-built-in'); | ||
// https://github.com/tc39/proposal-set-methods | ||
$({ target: 'Set', proto: true, real: true, forced: IS_PURE }, { | ||
$({ target: 'Set', proto: true, real: true, forced: true }, { | ||
intersection: function intersection(iterable) { | ||
@@ -16,0 +15,0 @@ var set = anObject(this); |
'use strict'; | ||
var IS_PURE = require('../internals/is-pure'); | ||
var $ = require('../internals/export'); | ||
@@ -11,3 +10,3 @@ var call = require('../internals/function-call'); | ||
// https://tc39.github.io/proposal-set-methods/#Set.prototype.isDisjointFrom | ||
$({ target: 'Set', proto: true, real: true, forced: IS_PURE }, { | ||
$({ target: 'Set', proto: true, real: true, forced: true }, { | ||
isDisjointFrom: function isDisjointFrom(iterable) { | ||
@@ -14,0 +13,0 @@ var set = anObject(this); |
'use strict'; | ||
var IS_PURE = require('../internals/is-pure'); | ||
var $ = require('../internals/export'); | ||
@@ -14,3 +13,3 @@ var getBuiltIn = require('../internals/get-built-in'); | ||
// https://tc39.github.io/proposal-set-methods/#Set.prototype.isSubsetOf | ||
$({ target: 'Set', proto: true, real: true, forced: IS_PURE }, { | ||
$({ target: 'Set', proto: true, real: true, forced: true }, { | ||
isSubsetOf: function isSubsetOf(iterable) { | ||
@@ -17,0 +16,0 @@ var iterator = getIterator(this); |
'use strict'; | ||
var IS_PURE = require('../internals/is-pure'); | ||
var $ = require('../internals/export'); | ||
@@ -11,3 +10,3 @@ var call = require('../internals/function-call'); | ||
// https://tc39.github.io/proposal-set-methods/#Set.prototype.isSupersetOf | ||
$({ target: 'Set', proto: true, real: true, forced: IS_PURE }, { | ||
$({ target: 'Set', proto: true, real: true, forced: true }, { | ||
isSupersetOf: function isSupersetOf(iterable) { | ||
@@ -14,0 +13,0 @@ var set = anObject(this); |
'use strict'; | ||
var IS_PURE = require('../internals/is-pure'); | ||
var $ = require('../internals/export'); | ||
@@ -15,3 +14,3 @@ var uncurryThis = require('../internals/function-uncurry-this'); | ||
// https://github.com/tc39/proposal-collection-methods | ||
$({ target: 'Set', proto: true, real: true, forced: IS_PURE }, { | ||
$({ target: 'Set', proto: true, real: true, forced: true }, { | ||
join: function join(separator) { | ||
@@ -18,0 +17,0 @@ var set = anObject(this); |
'use strict'; | ||
var IS_PURE = require('../internals/is-pure'); | ||
var $ = require('../internals/export'); | ||
@@ -15,3 +14,3 @@ var getBuiltIn = require('../internals/get-built-in'); | ||
// https://github.com/tc39/proposal-collection-methods | ||
$({ target: 'Set', proto: true, real: true, forced: IS_PURE }, { | ||
$({ target: 'Set', proto: true, real: true, forced: true }, { | ||
map: function map(callbackfn /* , thisArg */) { | ||
@@ -18,0 +17,0 @@ var set = anObject(this); |
@@ -6,4 +6,4 @@ var $ = require('../internals/export'); | ||
// https://tc39.github.io/proposal-setmap-offrom/#sec-set.of | ||
$({ target: 'Set', stat: true }, { | ||
$({ target: 'Set', stat: true, forced: true }, { | ||
of: of | ||
}); |
'use strict'; | ||
var $ = require('../internals/export'); | ||
var global = require('../internals/global'); | ||
var IS_PURE = require('../internals/is-pure'); | ||
var aCallable = require('../internals/a-callable'); | ||
@@ -14,3 +13,3 @@ var anObject = require('../internals/an-object'); | ||
// https://github.com/tc39/proposal-collection-methods | ||
$({ target: 'Set', proto: true, real: true, forced: IS_PURE }, { | ||
$({ target: 'Set', proto: true, real: true, forced: true }, { | ||
reduce: function reduce(callbackfn /* , initialValue */) { | ||
@@ -17,0 +16,0 @@ var set = anObject(this); |
'use strict'; | ||
var $ = require('../internals/export'); | ||
var IS_PURE = require('../internals/is-pure'); | ||
var anObject = require('../internals/an-object'); | ||
@@ -11,3 +10,3 @@ var bind = require('../internals/function-bind-context'); | ||
// https://github.com/tc39/proposal-collection-methods | ||
$({ target: 'Set', proto: true, real: true, forced: IS_PURE }, { | ||
$({ target: 'Set', proto: true, real: true, forced: true }, { | ||
some: function some(callbackfn /* , thisArg */) { | ||
@@ -14,0 +13,0 @@ var set = anObject(this); |
'use strict'; | ||
var IS_PURE = require('../internals/is-pure'); | ||
var $ = require('../internals/export'); | ||
@@ -13,3 +12,3 @@ var getBuiltIn = require('../internals/get-built-in'); | ||
// https://github.com/tc39/proposal-set-methods | ||
$({ target: 'Set', proto: true, real: true, forced: IS_PURE }, { | ||
$({ target: 'Set', proto: true, real: true, forced: true }, { | ||
symmetricDifference: function symmetricDifference(iterable) { | ||
@@ -16,0 +15,0 @@ var set = anObject(this); |
'use strict'; | ||
var $ = require('../internals/export'); | ||
var IS_PURE = require('../internals/is-pure'); | ||
var getBuiltIn = require('../internals/get-built-in'); | ||
@@ -12,3 +11,3 @@ var aCallable = require('../internals/a-callable'); | ||
// https://github.com/tc39/proposal-set-methods | ||
$({ target: 'Set', proto: true, real: true, forced: IS_PURE }, { | ||
$({ target: 'Set', proto: true, real: true, forced: true }, { | ||
union: function union(iterable) { | ||
@@ -15,0 +14,0 @@ var set = anObject(this); |
'use strict'; | ||
var $ = require('../internals/export'); | ||
var charAt = require('../internals/string-multibyte').charAt; | ||
var fails = require('../internals/fails'); | ||
var requireObjectCoercible = require('../internals/require-object-coercible'); | ||
@@ -9,9 +8,5 @@ var toIntegerOrInfinity = require('../internals/to-integer-or-infinity'); | ||
var FORCED = fails(function () { | ||
return '𠮷'.at(-2) !== '𠮷'; | ||
}); | ||
// `String.prototype.at` method | ||
// https://github.com/mathiasbynens/String.prototype.at | ||
$({ target: 'String', proto: true, forced: FORCED }, { | ||
$({ target: 'String', proto: true, forced: true }, { | ||
at: function at(index) { | ||
@@ -18,0 +13,0 @@ var S = toString(requireObjectCoercible(this)); |
@@ -35,3 +35,3 @@ 'use strict'; | ||
// https://github.com/tc39/proposal-string-prototype-codepoints | ||
$({ target: 'String', proto: true }, { | ||
$({ target: 'String', proto: true, forced: true }, { | ||
codePoints: function codePoints() { | ||
@@ -38,0 +38,0 @@ return new $StringIterator(toString(requireObjectCoercible(this))); |
@@ -15,3 +15,3 @@ var $ = require('../internals/export'); | ||
// https://github.com/tc39/proposal-string-cooked | ||
$({ target: 'String', stat: true }, { | ||
$({ target: 'String', stat: true, forced: true }, { | ||
cooked: function cooked(template /* , ...substitutions */) { | ||
@@ -18,0 +18,0 @@ var cookedTemplate = toIndexedObject(template); |
@@ -15,2 +15,2 @@ 'use strict'; | ||
return fromSpeciesAndList(this, list); | ||
}); | ||
}, true); |
@@ -14,2 +14,2 @@ 'use strict'; | ||
return fromSpeciesAndList(this, list); | ||
}); | ||
}, true); |
@@ -6,3 +6,2 @@ 'use strict'; | ||
var arrayFromAsync = require('../internals/array-from-async'); | ||
var TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS = require('../internals/typed-array-constructors-require-wrappers'); | ||
var ArrayBufferViewCore = require('../internals/array-buffer-view-core'); | ||
@@ -27,2 +26,2 @@ var arrayFromConstructorAndList = require('../internals/array-from-constructor-and-list'); | ||
}); | ||
}, TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS); | ||
}, true); |
@@ -15,2 +15,2 @@ 'use strict'; | ||
return $groupBy(aTypedArray(this), callbackfn, thisArg, typedArraySpeciesConstructor); | ||
}); | ||
}, true); |
@@ -13,2 +13,2 @@ 'use strict'; | ||
return arrayToReversed(aTypedArray(this), this[TYPED_ARRAY_CONSTRUCTOR]); | ||
}); | ||
}, true); |
@@ -19,2 +19,2 @@ 'use strict'; | ||
return sort(A, compareFn); | ||
}); | ||
}, true); |
@@ -15,2 +15,2 @@ 'use strict'; | ||
return arrayToSpliced(aTypedArray(this), this[TYPED_ARRAY_CONSTRUCTOR], arraySlice(arguments)); | ||
}); | ||
}, true); |
@@ -15,2 +15,2 @@ 'use strict'; | ||
return fromSpeciesAndList(this, arrayUniqueBy(aTypedArray(this), resolver)); | ||
}); | ||
}, true); |
@@ -13,2 +13,2 @@ 'use strict'; | ||
return arrayWith(aTypedArray(this), this[TYPED_ARRAY_CONSTRUCTOR], index, value); | ||
} }['with']); | ||
} }['with'], true); |
'use strict'; | ||
var $ = require('../internals/export'); | ||
var IS_PURE = require('../internals/is-pure'); | ||
var deleteAll = require('../internals/collection-delete-all'); | ||
@@ -8,4 +7,4 @@ | ||
// https://github.com/tc39/proposal-collection-methods | ||
$({ target: 'WeakMap', proto: true, real: true, forced: IS_PURE }, { | ||
$({ target: 'WeakMap', proto: true, real: true, forced: true }, { | ||
deleteAll: deleteAll | ||
}); |
'use strict'; | ||
var $ = require('../internals/export'); | ||
var IS_PURE = require('../internals/is-pure'); | ||
var emplace = require('../internals/map-emplace'); | ||
@@ -8,4 +7,4 @@ | ||
// https://github.com/tc39/proposal-upsert | ||
$({ target: 'WeakMap', proto: true, real: true, forced: IS_PURE }, { | ||
$({ target: 'WeakMap', proto: true, real: true, forced: true }, { | ||
emplace: emplace | ||
}); |
@@ -6,4 +6,4 @@ var $ = require('../internals/export'); | ||
// https://tc39.github.io/proposal-setmap-offrom/#sec-weakmap.from | ||
$({ target: 'WeakMap', stat: true }, { | ||
$({ target: 'WeakMap', stat: true, forced: true }, { | ||
from: from | ||
}); |
@@ -6,4 +6,4 @@ var $ = require('../internals/export'); | ||
// https://tc39.github.io/proposal-setmap-offrom/#sec-weakmap.of | ||
$({ target: 'WeakMap', stat: true }, { | ||
$({ target: 'WeakMap', stat: true, forced: true }, { | ||
of: of | ||
}); |
'use strict'; | ||
// TODO: remove from `core-js@4` | ||
var $ = require('../internals/export'); | ||
var IS_PURE = require('../internals/is-pure'); | ||
var upsert = require('../internals/map-upsert'); | ||
@@ -9,4 +8,4 @@ | ||
// https://github.com/tc39/proposal-upsert | ||
$({ target: 'WeakMap', proto: true, real: true, forced: IS_PURE }, { | ||
$({ target: 'WeakMap', proto: true, real: true, forced: true }, { | ||
upsert: upsert | ||
}); |
'use strict'; | ||
var $ = require('../internals/export'); | ||
var IS_PURE = require('../internals/is-pure'); | ||
var addAll = require('../internals/collection-add-all'); | ||
@@ -8,4 +7,4 @@ | ||
// https://github.com/tc39/proposal-collection-methods | ||
$({ target: 'WeakSet', proto: true, real: true, forced: IS_PURE }, { | ||
$({ target: 'WeakSet', proto: true, real: true, forced: true }, { | ||
addAll: addAll | ||
}); |
'use strict'; | ||
var $ = require('../internals/export'); | ||
var IS_PURE = require('../internals/is-pure'); | ||
var deleteAll = require('../internals/collection-delete-all'); | ||
@@ -8,4 +7,4 @@ | ||
// https://github.com/tc39/proposal-collection-methods | ||
$({ target: 'WeakSet', proto: true, real: true, forced: IS_PURE }, { | ||
$({ target: 'WeakSet', proto: true, real: true, forced: true }, { | ||
deleteAll: deleteAll | ||
}); |
@@ -6,4 +6,4 @@ var $ = require('../internals/export'); | ||
// https://tc39.github.io/proposal-setmap-offrom/#sec-weakset.from | ||
$({ target: 'WeakSet', stat: true }, { | ||
$({ target: 'WeakSet', stat: true, forced: true }, { | ||
from: from | ||
}); |
@@ -6,4 +6,4 @@ var $ = require('../internals/export'); | ||
// https://tc39.github.io/proposal-setmap-offrom/#sec-weakset.of | ||
$({ target: 'WeakSet', stat: true }, { | ||
$({ target: 'WeakSet', stat: true, forced: true }, { | ||
of: of | ||
}); |
var $ = require('../internals/export'); | ||
var global = require('../internals/global'); | ||
var microtask = require('../internals/microtask'); | ||
var aCallable = require('../internals/a-callable'); | ||
var validateArgumentsLength = require('../internals/validate-arguments-length'); | ||
var IS_NODE = require('../internals/engine-is-node'); | ||
@@ -12,2 +14,4 @@ | ||
queueMicrotask: function queueMicrotask(fn) { | ||
validateArgumentsLength(arguments.length, 1); | ||
aCallable(fn); | ||
var domain = IS_NODE && process.domain; | ||
@@ -14,0 +18,0 @@ microtask(domain ? domain.bind(fn) : fn); |
@@ -7,2 +7,3 @@ var $ = require('../internals/export'); | ||
var arraySlice = require('../internals/array-slice'); | ||
var validateArgumentsLength = require('../internals/validate-arguments-length'); | ||
@@ -14,7 +15,8 @@ var MSIE = /MSIE .\./.test(userAgent); // <- dirty ie9- check | ||
return function (handler, timeout /* , ...arguments */) { | ||
var boundArgs = arguments.length > 2; | ||
var boundArgs = validateArgumentsLength(arguments.length, 1) > 2; | ||
var fn = isCallable(handler) ? handler : Function(handler); | ||
var args = boundArgs ? arraySlice(arguments, 2) : undefined; | ||
return scheduler(boundArgs ? function () { | ||
apply(isCallable(handler) ? handler : Function(handler), this, args); | ||
} : handler, timeout); | ||
apply(fn, this, args); | ||
} : fn, timeout); | ||
}; | ||
@@ -21,0 +23,0 @@ }; |
@@ -21,2 +21,3 @@ 'use strict'; | ||
var setToStringTag = require('../internals/set-to-string-tag'); | ||
var validateArgumentsLength = require('../internals/validate-arguments-length'); | ||
var URLSearchParamsModule = require('../modules/web.url-search-params'); | ||
@@ -943,3 +944,3 @@ var InternalStateModule = require('../internals/internal-state'); | ||
var that = anInstance(this, URLPrototype); | ||
var base = arguments.length > 1 ? arguments[1] : undefined; | ||
var base = validateArgumentsLength(arguments.length, 1) > 1 ? arguments[1] : undefined; | ||
var state = setInternalState(that, new URLState(url, false, base)); | ||
@@ -946,0 +947,0 @@ if (!DESCRIPTORS) { |
{ | ||
"name": "core-js", | ||
"description": "Standard library", | ||
"version": "3.20.3", | ||
"version": "3.21.0", | ||
"repository": { | ||
@@ -57,3 +57,3 @@ "type": "git", | ||
}, | ||
"gitHead": "4bcdaf8646f4e60bab9ac182b06803ebd230568c" | ||
"gitHead": "32492dc5f55ea9bbd21b8fa8145cedd36d68c160" | ||
} |
@@ -227,2 +227,4 @@ require('../modules/es.symbol'); | ||
require('../modules/es.weak-set'); | ||
require('../modules/web.atob'); | ||
require('../modules/web.btoa'); | ||
require('../modules/web.dom-collections.for-each'); | ||
@@ -229,0 +231,0 @@ require('../modules/web.dom-collections.iterator'); |
@@ -0,1 +1,3 @@ | ||
require('../modules/web.atob'); | ||
require('../modules/web.btoa'); | ||
require('../modules/web.dom-collections.for-each'); | ||
@@ -2,0 +4,0 @@ require('../modules/web.dom-collections.iterator'); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
933843
2393
21928