diff --git a/CHANGELOG.md b/CHANGELOG.md index 9dd75cf8f2c7..b30caf2f48bb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - `atob` - `btoa` - Added the proper validation of arguments to some methods from web standards +- Forced replacement of all methods from early stage proposals for avoiding possible web compatibility issues in the future - Added Rhino 1.7.14 compat data - Added Deno 1.19 compat data mapping - Added Opera Android 66 and 67 compat data mapping diff --git a/packages/core-js/modules/esnext.array.filter-out.js b/packages/core-js/modules/esnext.array.filter-out.js index 2682305c3120..fc737f2427dc 100644 --- a/packages/core-js/modules/esnext.array.filter-out.js +++ b/packages/core-js/modules/esnext.array.filter-out.js @@ -6,7 +6,7 @@ var addToUnscopables = require('../internals/add-to-unscopables'); // `Array.prototype.filterOut` method // https://github.com/tc39/proposal-array-filtering -$({ target: 'Array', proto: true }, { +$({ target: 'Array', proto: true, forced: true }, { filterOut: function filterOut(callbackfn /* , thisArg */) { return $filterReject(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); } diff --git a/packages/core-js/modules/esnext.array.filter-reject.js b/packages/core-js/modules/esnext.array.filter-reject.js index 0599a9ee489e..8a9ee56decdf 100644 --- a/packages/core-js/modules/esnext.array.filter-reject.js +++ b/packages/core-js/modules/esnext.array.filter-reject.js @@ -5,7 +5,7 @@ var addToUnscopables = require('../internals/add-to-unscopables'); // `Array.prototype.filterReject` method // https://github.com/tc39/proposal-array-filtering -$({ target: 'Array', proto: true }, { +$({ target: 'Array', proto: true, forced: true }, { filterReject: function filterReject(callbackfn /* , thisArg */) { return $filterReject(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); } diff --git a/packages/core-js/modules/esnext.array.from-async.js b/packages/core-js/modules/esnext.array.from-async.js index 30b7155c0fe4..301288e2f990 100644 --- a/packages/core-js/modules/esnext.array.from-async.js +++ b/packages/core-js/modules/esnext.array.from-async.js @@ -3,6 +3,6 @@ var fromAsync = require('../internals/array-from-async'); // `Array.fromAsync` method // https://github.com/tc39/proposal-array-from-async -$({ target: 'Array', stat: true }, { +$({ target: 'Array', stat: true, forced: true }, { fromAsync: fromAsync }); diff --git a/packages/core-js/modules/esnext.array.is-template-object.js b/packages/core-js/modules/esnext.array.is-template-object.js index 1d6d6ac8f863..b3bb100384b2 100644 --- a/packages/core-js/modules/esnext.array.is-template-object.js +++ b/packages/core-js/modules/esnext.array.is-template-object.js @@ -19,7 +19,7 @@ var isFrozenStringArray = function (array, allowUndefined) { // `Array.isTemplateObject` method // 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) { if (!isFrozenStringArray(value, true)) return false; var raw = value.raw; diff --git a/packages/core-js/modules/esnext.array.last-index.js b/packages/core-js/modules/esnext.array.last-index.js index 85fc7f5f4d68..6a89e13a3b0b 100644 --- a/packages/core-js/modules/esnext.array.last-index.js +++ b/packages/core-js/modules/esnext.array.last-index.js @@ -7,7 +7,7 @@ var defineProperty = require('../internals/object-define-property').f; // `Array.prototype.lastIndex` getter // https://github.com/keithamus/proposal-array-last -if (DESCRIPTORS && !('lastIndex' in [])) { +if (DESCRIPTORS) { defineProperty(Array.prototype, 'lastIndex', { configurable: true, get: function lastIndex() { diff --git a/packages/core-js/modules/esnext.array.last-item.js b/packages/core-js/modules/esnext.array.last-item.js index c5da5d648632..f0da4e6706e9 100644 --- a/packages/core-js/modules/esnext.array.last-item.js +++ b/packages/core-js/modules/esnext.array.last-item.js @@ -7,7 +7,7 @@ var defineProperty = require('../internals/object-define-property').f; // `Array.prototype.lastIndex` accessor // https://github.com/keithamus/proposal-array-last -if (DESCRIPTORS && !('lastItem' in [])) { +if (DESCRIPTORS) { defineProperty(Array.prototype, 'lastItem', { configurable: true, get: function lastItem() { diff --git a/packages/core-js/modules/esnext.array.to-reversed.js b/packages/core-js/modules/esnext.array.to-reversed.js index 67e2d6244f64..f78965667329 100644 --- a/packages/core-js/modules/esnext.array.to-reversed.js +++ b/packages/core-js/modules/esnext.array.to-reversed.js @@ -9,7 +9,7 @@ var Array = global.Array; // `Array.prototype.toReversed` method // 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() { return arrayToReversed(toIndexedObject(this), Array); } diff --git a/packages/core-js/modules/esnext.array.to-sorted.js b/packages/core-js/modules/esnext.array.to-sorted.js index 212e93b03672..357acdea2bcc 100644 --- a/packages/core-js/modules/esnext.array.to-sorted.js +++ b/packages/core-js/modules/esnext.array.to-sorted.js @@ -13,7 +13,7 @@ var sort = uncurryThis(getVirtual('Array').sort); // `Array.prototype.toSorted` method // 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) { if (compareFn !== undefined) aCallable(compareFn); var O = toIndexedObject(this); diff --git a/packages/core-js/modules/esnext.array.to-spliced.js b/packages/core-js/modules/esnext.array.to-spliced.js index 1b6ca49d4f43..667d88ed668f 100644 --- a/packages/core-js/modules/esnext.array.to-spliced.js +++ b/packages/core-js/modules/esnext.array.to-spliced.js @@ -10,7 +10,7 @@ var Array = global.Array; // `Array.prototype.toSpliced` method // 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 toSpliced: function toSpliced(start, deleteCount /* , ...items */) { return arrayToSpliced(toIndexedObject(this), Array, arraySlice(arguments)); diff --git a/packages/core-js/modules/esnext.array.unique-by.js b/packages/core-js/modules/esnext.array.unique-by.js index 6f23dcff04eb..ea8f4f97f9ab 100644 --- a/packages/core-js/modules/esnext.array.unique-by.js +++ b/packages/core-js/modules/esnext.array.unique-by.js @@ -5,7 +5,7 @@ var uniqueBy = require('../internals/array-unique-by'); // `Array.prototype.uniqueBy` method // https://github.com/tc39/proposal-array-unique -$({ target: 'Array', proto: true }, { +$({ target: 'Array', proto: true, forced: true }, { uniqueBy: uniqueBy }); diff --git a/packages/core-js/modules/esnext.array.with.js b/packages/core-js/modules/esnext.array.with.js index c585d71f45cb..ad1b93c4619a 100644 --- a/packages/core-js/modules/esnext.array.with.js +++ b/packages/core-js/modules/esnext.array.with.js @@ -8,7 +8,7 @@ var Array = global.Array; // `Array.prototype.with` method // 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) { return arrayWith(toIndexedObject(this), Array, index, value); } diff --git a/packages/core-js/modules/esnext.async-iterator.as-indexed-pairs.js b/packages/core-js/modules/esnext.async-iterator.as-indexed-pairs.js index a1545f5138bb..52182c0f3a5b 100644 --- a/packages/core-js/modules/esnext.async-iterator.as-indexed-pairs.js +++ b/packages/core-js/modules/esnext.async-iterator.as-indexed-pairs.js @@ -18,7 +18,7 @@ var AsyncIteratorProxy = createAsyncIteratorProxy(function (Promise, args) { }); }); -$({ target: 'AsyncIterator', proto: true, real: true }, { +$({ target: 'AsyncIterator', proto: true, real: true, forced: true }, { asIndexedPairs: function asIndexedPairs() { return new AsyncIteratorProxy({ iterator: anObject(this), diff --git a/packages/core-js/modules/esnext.async-iterator.drop.js b/packages/core-js/modules/esnext.async-iterator.drop.js index 44d4f76ad845..76ab43163f4d 100644 --- a/packages/core-js/modules/esnext.async-iterator.drop.js +++ b/packages/core-js/modules/esnext.async-iterator.drop.js @@ -32,7 +32,7 @@ var AsyncIteratorProxy = createAsyncIteratorProxy(function (Promise, args) { }); }); -$({ target: 'AsyncIterator', proto: true, real: true }, { +$({ target: 'AsyncIterator', proto: true, real: true, forced: true }, { drop: function drop(limit) { return new AsyncIteratorProxy({ iterator: anObject(this), diff --git a/packages/core-js/modules/esnext.async-iterator.every.js b/packages/core-js/modules/esnext.async-iterator.every.js index 70c945dc787a..db989b619a16 100644 --- a/packages/core-js/modules/esnext.async-iterator.every.js +++ b/packages/core-js/modules/esnext.async-iterator.every.js @@ -3,7 +3,7 @@ var $ = require('../internals/export'); var $every = require('../internals/async-iterator-iteration').every; -$({ target: 'AsyncIterator', proto: true, real: true }, { +$({ target: 'AsyncIterator', proto: true, real: true, forced: true }, { every: function every(fn) { return $every(this, fn); } diff --git a/packages/core-js/modules/esnext.async-iterator.filter.js b/packages/core-js/modules/esnext.async-iterator.filter.js index b6ab7984e86f..2a1f1976511a 100644 --- a/packages/core-js/modules/esnext.async-iterator.filter.js +++ b/packages/core-js/modules/esnext.async-iterator.filter.js @@ -33,7 +33,7 @@ var AsyncIteratorProxy = createAsyncIteratorProxy(function (Promise, args) { }); }); -$({ target: 'AsyncIterator', proto: true, real: true }, { +$({ target: 'AsyncIterator', proto: true, real: true, forced: true }, { filter: function filter(filterer) { return new AsyncIteratorProxy({ iterator: anObject(this), diff --git a/packages/core-js/modules/esnext.async-iterator.find.js b/packages/core-js/modules/esnext.async-iterator.find.js index 0211e51f017a..14588137ae96 100644 --- a/packages/core-js/modules/esnext.async-iterator.find.js +++ b/packages/core-js/modules/esnext.async-iterator.find.js @@ -3,7 +3,7 @@ var $ = require('../internals/export'); var $find = require('../internals/async-iterator-iteration').find; -$({ target: 'AsyncIterator', proto: true, real: true }, { +$({ target: 'AsyncIterator', proto: true, real: true, forced: true }, { find: function find(fn) { return $find(this, fn); } diff --git a/packages/core-js/modules/esnext.async-iterator.flat-map.js b/packages/core-js/modules/esnext.async-iterator.flat-map.js index bfbc22e3546f..f34b57ffa5a5 100644 --- a/packages/core-js/modules/esnext.async-iterator.flat-map.js +++ b/packages/core-js/modules/esnext.async-iterator.flat-map.js @@ -53,7 +53,7 @@ var AsyncIteratorProxy = createAsyncIteratorProxy(function (Promise) { }); }); -$({ target: 'AsyncIterator', proto: true, real: true }, { +$({ target: 'AsyncIterator', proto: true, real: true, forced: true }, { flatMap: function flatMap(mapper) { return new AsyncIteratorProxy({ iterator: anObject(this), diff --git a/packages/core-js/modules/esnext.async-iterator.for-each.js b/packages/core-js/modules/esnext.async-iterator.for-each.js index 8dfbcedce95a..6e9d71f39e3f 100644 --- a/packages/core-js/modules/esnext.async-iterator.for-each.js +++ b/packages/core-js/modules/esnext.async-iterator.for-each.js @@ -3,7 +3,7 @@ var $ = require('../internals/export'); var $forEach = require('../internals/async-iterator-iteration').forEach; -$({ target: 'AsyncIterator', proto: true, real: true }, { +$({ target: 'AsyncIterator', proto: true, real: true, forced: true }, { forEach: function forEach(fn) { return $forEach(this, fn); } diff --git a/packages/core-js/modules/esnext.async-iterator.from.js b/packages/core-js/modules/esnext.async-iterator.from.js index 1ff70145316a..9ddce9b395fb 100644 --- a/packages/core-js/modules/esnext.async-iterator.from.js +++ b/packages/core-js/modules/esnext.async-iterator.from.js @@ -19,7 +19,7 @@ var AsyncIteratorProxy = createAsyncIteratorProxy(function (Promise, args) { return anObject(apply(this.next, this.iterator, args)); }, true); -$({ target: 'AsyncIterator', stat: true }, { +$({ target: 'AsyncIterator', stat: true, forced: true }, { from: function from(O) { var object = toObject(O); var usingIterator = getMethod(object, ASYNC_ITERATOR); diff --git a/packages/core-js/modules/esnext.async-iterator.map.js b/packages/core-js/modules/esnext.async-iterator.map.js index d7532ec70db9..9b69734160d5 100644 --- a/packages/core-js/modules/esnext.async-iterator.map.js +++ b/packages/core-js/modules/esnext.async-iterator.map.js @@ -21,7 +21,7 @@ var AsyncIteratorProxy = createAsyncIteratorProxy(function (Promise, args) { }); }); -$({ target: 'AsyncIterator', proto: true, real: true }, { +$({ target: 'AsyncIterator', proto: true, real: true, forced: true }, { map: function map(mapper) { return new AsyncIteratorProxy({ iterator: anObject(this), diff --git a/packages/core-js/modules/esnext.async-iterator.reduce.js b/packages/core-js/modules/esnext.async-iterator.reduce.js index a3701f2e9d24..0f313bbe001c 100644 --- a/packages/core-js/modules/esnext.async-iterator.reduce.js +++ b/packages/core-js/modules/esnext.async-iterator.reduce.js @@ -10,7 +10,7 @@ var getBuiltIn = require('../internals/get-built-in'); var Promise = getBuiltIn('Promise'); var TypeError = global.TypeError; -$({ target: 'AsyncIterator', proto: true, real: true }, { +$({ target: 'AsyncIterator', proto: true, real: true, forced: true }, { reduce: function reduce(reducer /* , initialValue */) { var iterator = anObject(this); var next = aCallable(iterator.next); diff --git a/packages/core-js/modules/esnext.async-iterator.some.js b/packages/core-js/modules/esnext.async-iterator.some.js index 13fc1ee5af6c..f0101fd0d37b 100644 --- a/packages/core-js/modules/esnext.async-iterator.some.js +++ b/packages/core-js/modules/esnext.async-iterator.some.js @@ -3,7 +3,7 @@ var $ = require('../internals/export'); var $some = require('../internals/async-iterator-iteration').some; -$({ target: 'AsyncIterator', proto: true, real: true }, { +$({ target: 'AsyncIterator', proto: true, real: true, forced: true }, { some: function some(fn) { return $some(this, fn); } diff --git a/packages/core-js/modules/esnext.async-iterator.take.js b/packages/core-js/modules/esnext.async-iterator.take.js index 81520365844a..b3199fc46042 100644 --- a/packages/core-js/modules/esnext.async-iterator.take.js +++ b/packages/core-js/modules/esnext.async-iterator.take.js @@ -23,7 +23,7 @@ var AsyncIteratorProxy = createAsyncIteratorProxy(function (Promise, args) { } return apply(this.next, iterator, args); }); -$({ target: 'AsyncIterator', proto: true, real: true }, { +$({ target: 'AsyncIterator', proto: true, real: true, forced: true }, { take: function take(limit) { return new AsyncIteratorProxy({ iterator: anObject(this), diff --git a/packages/core-js/modules/esnext.async-iterator.to-array.js b/packages/core-js/modules/esnext.async-iterator.to-array.js index 2027325d5a3a..3785102214d5 100644 --- a/packages/core-js/modules/esnext.async-iterator.to-array.js +++ b/packages/core-js/modules/esnext.async-iterator.to-array.js @@ -3,7 +3,7 @@ var $ = require('../internals/export'); var $toArray = require('../internals/async-iterator-iteration').toArray; -$({ target: 'AsyncIterator', proto: true, real: true }, { +$({ target: 'AsyncIterator', proto: true, real: true, forced: true }, { toArray: function toArray() { return $toArray(this, undefined, []); } diff --git a/packages/core-js/modules/esnext.bigint.range.js b/packages/core-js/modules/esnext.bigint.range.js index 46c0aca54292..93625a6f0ee3 100644 --- a/packages/core-js/modules/esnext.bigint.range.js +++ b/packages/core-js/modules/esnext.bigint.range.js @@ -6,7 +6,7 @@ var NumericRangeIterator = require('../internals/numeric-range-iterator'); // `BigInt.range` method // https://github.com/tc39/proposal-Number.range if (typeof BigInt == 'function') { - $({ target: 'BigInt', stat: true }, { + $({ target: 'BigInt', stat: true, forced: true }, { range: function range(start, end, option) { return new NumericRangeIterator(start, end, option, 'bigint', BigInt(0), BigInt(1)); } diff --git a/packages/core-js/modules/esnext.composite-key.js b/packages/core-js/modules/esnext.composite-key.js index 819a24322630..08883efdbbbf 100644 --- a/packages/core-js/modules/esnext.composite-key.js +++ b/packages/core-js/modules/esnext.composite-key.js @@ -13,7 +13,7 @@ var initializer = function () { }; // https://github.com/tc39/proposal-richer-keys/tree/master/compositeKey -$({ global: true }, { +$({ global: true, forced: true }, { compositeKey: function compositeKey() { return apply(getCompositeKeyNode, Object, arguments).get('object', initializer); } diff --git a/packages/core-js/modules/esnext.composite-symbol.js b/packages/core-js/modules/esnext.composite-symbol.js index ed314c0efa85..c0cd17ef191a 100644 --- a/packages/core-js/modules/esnext.composite-symbol.js +++ b/packages/core-js/modules/esnext.composite-symbol.js @@ -4,7 +4,7 @@ var getBuiltIn = require('../internals/get-built-in'); var apply = require('../internals/function-apply'); // https://github.com/tc39/proposal-richer-keys/tree/master/compositeKey -$({ global: true }, { +$({ global: true, forced: true }, { compositeSymbol: function compositeSymbol() { if (arguments.length == 1 && typeof arguments[0] == 'string') return getBuiltIn('Symbol')['for'](arguments[0]); return apply(getCompositeKeyNode, null, arguments).get('symbol', getBuiltIn('Symbol')); diff --git a/packages/core-js/modules/esnext.function.is-callable.js b/packages/core-js/modules/esnext.function.is-callable.js index d4fc74fe1498..466699915446 100644 --- a/packages/core-js/modules/esnext.function.is-callable.js +++ b/packages/core-js/modules/esnext.function.is-callable.js @@ -22,7 +22,7 @@ var isClassConstructor = function (argument) { // `Function.isCallable` method // 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) { return $isCallable(argument) && !isClassConstructor(argument); } diff --git a/packages/core-js/modules/esnext.function.is-constructor.js b/packages/core-js/modules/esnext.function.is-constructor.js index 5d8904ded4c4..2b117e244e7d 100644 --- a/packages/core-js/modules/esnext.function.is-constructor.js +++ b/packages/core-js/modules/esnext.function.is-constructor.js @@ -3,6 +3,6 @@ var isConstructor = require('../internals/is-constructor'); // `Function.isConstructor` method // 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 }); diff --git a/packages/core-js/modules/esnext.function.un-this.js b/packages/core-js/modules/esnext.function.un-this.js index 450826d9fe43..bc09339f0f55 100644 --- a/packages/core-js/modules/esnext.function.un-this.js +++ b/packages/core-js/modules/esnext.function.un-this.js @@ -4,7 +4,7 @@ var aCallable = require('../internals/a-callable'); // `Function.prototype.unThis` method // https://github.com/js-choi/proposal-function-un-this -$({ target: 'Function', proto: true }, { +$({ target: 'Function', proto: true, forced: true }, { unThis: function unThis() { return uncurryThis(aCallable(this)); } diff --git a/packages/core-js/modules/esnext.iterator.as-indexed-pairs.js b/packages/core-js/modules/esnext.iterator.as-indexed-pairs.js index 4c2d00e20a72..d7ae7fdcf0a7 100644 --- a/packages/core-js/modules/esnext.iterator.as-indexed-pairs.js +++ b/packages/core-js/modules/esnext.iterator.as-indexed-pairs.js @@ -11,7 +11,7 @@ var IteratorProxy = createIteratorProxy(function (args) { if (!done) return [this.index++, result.value]; }); -$({ target: 'Iterator', proto: true, real: true }, { +$({ target: 'Iterator', proto: true, real: true, forced: true }, { asIndexedPairs: function asIndexedPairs() { return new IteratorProxy({ iterator: anObject(this), diff --git a/packages/core-js/modules/esnext.iterator.drop.js b/packages/core-js/modules/esnext.iterator.drop.js index 897c272c34b2..2361ac909551 100644 --- a/packages/core-js/modules/esnext.iterator.drop.js +++ b/packages/core-js/modules/esnext.iterator.drop.js @@ -22,7 +22,7 @@ var IteratorProxy = createIteratorProxy(function (args) { if (!done) return result.value; }); -$({ target: 'Iterator', proto: true, real: true }, { +$({ target: 'Iterator', proto: true, real: true, forced: true }, { drop: function drop(limit) { return new IteratorProxy({ iterator: anObject(this), diff --git a/packages/core-js/modules/esnext.iterator.every.js b/packages/core-js/modules/esnext.iterator.every.js index a2e6aec5d467..8fde856bdd20 100644 --- a/packages/core-js/modules/esnext.iterator.every.js +++ b/packages/core-js/modules/esnext.iterator.every.js @@ -5,7 +5,7 @@ var iterate = require('../internals/iterate'); var aCallable = require('../internals/a-callable'); var anObject = require('../internals/an-object'); -$({ target: 'Iterator', proto: true, real: true }, { +$({ target: 'Iterator', proto: true, real: true, forced: true }, { every: function every(fn) { anObject(this); aCallable(fn); diff --git a/packages/core-js/modules/esnext.iterator.filter.js b/packages/core-js/modules/esnext.iterator.filter.js index 5b496787e7e6..6b64afab61f1 100644 --- a/packages/core-js/modules/esnext.iterator.filter.js +++ b/packages/core-js/modules/esnext.iterator.filter.js @@ -21,7 +21,7 @@ var IteratorProxy = createIteratorProxy(function (args) { } }); -$({ target: 'Iterator', proto: true, real: true }, { +$({ target: 'Iterator', proto: true, real: true, forced: true }, { filter: function filter(filterer) { return new IteratorProxy({ iterator: anObject(this), diff --git a/packages/core-js/modules/esnext.iterator.find.js b/packages/core-js/modules/esnext.iterator.find.js index ee518503094d..725702d7b118 100644 --- a/packages/core-js/modules/esnext.iterator.find.js +++ b/packages/core-js/modules/esnext.iterator.find.js @@ -5,7 +5,7 @@ var iterate = require('../internals/iterate'); var aCallable = require('../internals/a-callable'); var anObject = require('../internals/an-object'); -$({ target: 'Iterator', proto: true, real: true }, { +$({ target: 'Iterator', proto: true, real: true, forced: true }, { find: function find(fn) { anObject(this); aCallable(fn); diff --git a/packages/core-js/modules/esnext.iterator.flat-map.js b/packages/core-js/modules/esnext.iterator.flat-map.js index 7f458f619422..f81057db10dc 100644 --- a/packages/core-js/modules/esnext.iterator.flat-map.js +++ b/packages/core-js/modules/esnext.iterator.flat-map.js @@ -43,7 +43,7 @@ var IteratorProxy = createIteratorProxy(function () { } }); -$({ target: 'Iterator', proto: true, real: true }, { +$({ target: 'Iterator', proto: true, real: true, forced: true }, { flatMap: function flatMap(mapper) { return new IteratorProxy({ iterator: anObject(this), diff --git a/packages/core-js/modules/esnext.iterator.for-each.js b/packages/core-js/modules/esnext.iterator.for-each.js index 0fa67dcfbc78..b23720327e62 100644 --- a/packages/core-js/modules/esnext.iterator.for-each.js +++ b/packages/core-js/modules/esnext.iterator.for-each.js @@ -4,7 +4,7 @@ var $ = require('../internals/export'); var iterate = require('../internals/iterate'); var anObject = require('../internals/an-object'); -$({ target: 'Iterator', proto: true, real: true }, { +$({ target: 'Iterator', proto: true, real: true, forced: true }, { forEach: function forEach(fn) { iterate(anObject(this), fn, { IS_ITERATOR: true }); } diff --git a/packages/core-js/modules/esnext.iterator.from.js b/packages/core-js/modules/esnext.iterator.from.js index 27eda194edac..3775c85cae66 100644 --- a/packages/core-js/modules/esnext.iterator.from.js +++ b/packages/core-js/modules/esnext.iterator.from.js @@ -15,7 +15,7 @@ var IteratorProxy = createIteratorProxy(function (args) { if (!done) return result.value; }, true); -$({ target: 'Iterator', stat: true }, { +$({ target: 'Iterator', stat: true, forced: true }, { from: function from(O) { var object = toObject(O); var usingIterator = getIteratorMethod(object); diff --git a/packages/core-js/modules/esnext.iterator.map.js b/packages/core-js/modules/esnext.iterator.map.js index 4460473676ea..8db0818861dd 100644 --- a/packages/core-js/modules/esnext.iterator.map.js +++ b/packages/core-js/modules/esnext.iterator.map.js @@ -14,7 +14,7 @@ var IteratorProxy = createIteratorProxy(function (args) { if (!done) return callWithSafeIterationClosing(iterator, this.mapper, result.value); }); -$({ target: 'Iterator', proto: true, real: true }, { +$({ target: 'Iterator', proto: true, real: true, forced: true }, { map: function map(mapper) { return new IteratorProxy({ iterator: anObject(this), diff --git a/packages/core-js/modules/esnext.iterator.reduce.js b/packages/core-js/modules/esnext.iterator.reduce.js index f9eba37726af..809058107d17 100644 --- a/packages/core-js/modules/esnext.iterator.reduce.js +++ b/packages/core-js/modules/esnext.iterator.reduce.js @@ -8,7 +8,7 @@ var anObject = require('../internals/an-object'); var TypeError = global.TypeError; -$({ target: 'Iterator', proto: true, real: true }, { +$({ target: 'Iterator', proto: true, real: true, forced: true }, { reduce: function reduce(reducer /* , initialValue */) { anObject(this); aCallable(reducer); diff --git a/packages/core-js/modules/esnext.iterator.some.js b/packages/core-js/modules/esnext.iterator.some.js index 867255362742..bebb30a806f1 100644 --- a/packages/core-js/modules/esnext.iterator.some.js +++ b/packages/core-js/modules/esnext.iterator.some.js @@ -5,7 +5,7 @@ var iterate = require('../internals/iterate'); var aCallable = require('../internals/a-callable'); var anObject = require('../internals/an-object'); -$({ target: 'Iterator', proto: true, real: true }, { +$({ target: 'Iterator', proto: true, real: true, forced: true }, { some: function some(fn) { anObject(this); aCallable(fn); diff --git a/packages/core-js/modules/esnext.iterator.take.js b/packages/core-js/modules/esnext.iterator.take.js index 809212c46bcc..343d1fc07cf5 100644 --- a/packages/core-js/modules/esnext.iterator.take.js +++ b/packages/core-js/modules/esnext.iterator.take.js @@ -18,7 +18,7 @@ var IteratorProxy = createIteratorProxy(function (args) { if (!done) return result.value; }); -$({ target: 'Iterator', proto: true, real: true }, { +$({ target: 'Iterator', proto: true, real: true, forced: true }, { take: function take(limit) { return new IteratorProxy({ iterator: anObject(this), diff --git a/packages/core-js/modules/esnext.iterator.to-array.js b/packages/core-js/modules/esnext.iterator.to-array.js index 471ea49bcb19..f4741411db3c 100644 --- a/packages/core-js/modules/esnext.iterator.to-array.js +++ b/packages/core-js/modules/esnext.iterator.to-array.js @@ -6,7 +6,7 @@ var anObject = require('../internals/an-object'); var push = [].push; -$({ target: 'Iterator', proto: true, real: true }, { +$({ target: 'Iterator', proto: true, real: true, forced: true }, { toArray: function toArray() { var result = []; iterate(anObject(this), push, { that: result, IS_ITERATOR: true }); diff --git a/packages/core-js/modules/esnext.iterator.to-async.js b/packages/core-js/modules/esnext.iterator.to-async.js index 494c2cf8f7bf..6dfb1b80c1ec 100644 --- a/packages/core-js/modules/esnext.iterator.to-async.js +++ b/packages/core-js/modules/esnext.iterator.to-async.js @@ -3,7 +3,7 @@ var $ = require('../internals/export'); var AsyncFromSyncIterator = require('../internals/async-from-sync-iterator'); -$({ target: 'Iterator', proto: true, real: true }, { +$({ target: 'Iterator', proto: true, real: true, forced: true }, { toAsync: function toAsync() { return new AsyncFromSyncIterator(this); } diff --git a/packages/core-js/modules/esnext.map.delete-all.js b/packages/core-js/modules/esnext.map.delete-all.js index d5fb7bfc35ef..2b56e7321c81 100644 --- a/packages/core-js/modules/esnext.map.delete-all.js +++ b/packages/core-js/modules/esnext.map.delete-all.js @@ -1,10 +1,9 @@ 'use strict'; var $ = require('../internals/export'); -var IS_PURE = require('../internals/is-pure'); var deleteAll = require('../internals/collection-delete-all'); // `Map.prototype.deleteAll` method // 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 }); diff --git a/packages/core-js/modules/esnext.map.emplace.js b/packages/core-js/modules/esnext.map.emplace.js index 0b5e220c6a24..02a0ea864436 100644 --- a/packages/core-js/modules/esnext.map.emplace.js +++ b/packages/core-js/modules/esnext.map.emplace.js @@ -1,10 +1,9 @@ 'use strict'; var $ = require('../internals/export'); -var IS_PURE = require('../internals/is-pure'); var emplace = require('../internals/map-emplace'); // `Map.prototype.emplace` method // 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 }); diff --git a/packages/core-js/modules/esnext.map.every.js b/packages/core-js/modules/esnext.map.every.js index a7801256d890..af1e2c5d846e 100644 --- a/packages/core-js/modules/esnext.map.every.js +++ b/packages/core-js/modules/esnext.map.every.js @@ -1,6 +1,5 @@ 'use strict'; var $ = require('../internals/export'); -var IS_PURE = require('../internals/is-pure'); var anObject = require('../internals/an-object'); var bind = require('../internals/function-bind-context'); var getMapIterator = require('../internals/get-map-iterator'); @@ -8,7 +7,7 @@ var iterate = require('../internals/iterate'); // `Map.prototype.every` method // 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 */) { var map = anObject(this); var iterator = getMapIterator(map); diff --git a/packages/core-js/modules/esnext.map.filter.js b/packages/core-js/modules/esnext.map.filter.js index 884bc2a987ae..f265e60a6c68 100644 --- a/packages/core-js/modules/esnext.map.filter.js +++ b/packages/core-js/modules/esnext.map.filter.js @@ -1,5 +1,4 @@ 'use strict'; -var IS_PURE = require('../internals/is-pure'); var $ = require('../internals/export'); var getBuiltIn = require('../internals/get-built-in'); var bind = require('../internals/function-bind-context'); @@ -12,7 +11,7 @@ var iterate = require('../internals/iterate'); // `Map.prototype.filter` method // 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 */) { var map = anObject(this); var iterator = getMapIterator(map); diff --git a/packages/core-js/modules/esnext.map.find-key.js b/packages/core-js/modules/esnext.map.find-key.js index 29f4f8780a82..e6bda89ca960 100644 --- a/packages/core-js/modules/esnext.map.find-key.js +++ b/packages/core-js/modules/esnext.map.find-key.js @@ -1,6 +1,5 @@ 'use strict'; var $ = require('../internals/export'); -var IS_PURE = require('../internals/is-pure'); var anObject = require('../internals/an-object'); var bind = require('../internals/function-bind-context'); var getMapIterator = require('../internals/get-map-iterator'); @@ -8,7 +7,7 @@ var iterate = require('../internals/iterate'); // `Map.prototype.findKey` method // 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 */) { var map = anObject(this); var iterator = getMapIterator(map); diff --git a/packages/core-js/modules/esnext.map.find.js b/packages/core-js/modules/esnext.map.find.js index 86395b3ccebe..6e3707ddbb80 100644 --- a/packages/core-js/modules/esnext.map.find.js +++ b/packages/core-js/modules/esnext.map.find.js @@ -1,6 +1,5 @@ 'use strict'; var $ = require('../internals/export'); -var IS_PURE = require('../internals/is-pure'); var anObject = require('../internals/an-object'); var bind = require('../internals/function-bind-context'); var getMapIterator = require('../internals/get-map-iterator'); @@ -8,7 +7,7 @@ var iterate = require('../internals/iterate'); // `Map.prototype.find` method // 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 */) { var map = anObject(this); var iterator = getMapIterator(map); diff --git a/packages/core-js/modules/esnext.map.from.js b/packages/core-js/modules/esnext.map.from.js index 9aa6aac7d216..2827066e181a 100644 --- a/packages/core-js/modules/esnext.map.from.js +++ b/packages/core-js/modules/esnext.map.from.js @@ -3,6 +3,6 @@ var from = require('../internals/collection-from'); // `Map.from` method // https://tc39.github.io/proposal-setmap-offrom/#sec-map.from -$({ target: 'Map', stat: true }, { +$({ target: 'Map', stat: true, forced: true }, { from: from }); diff --git a/packages/core-js/modules/esnext.map.group-by.js b/packages/core-js/modules/esnext.map.group-by.js index 2334a40a42e1..7cf72765bcc0 100644 --- a/packages/core-js/modules/esnext.map.group-by.js +++ b/packages/core-js/modules/esnext.map.group-by.js @@ -10,7 +10,7 @@ var push = uncurryThis([].push); // `Map.groupBy` method // https://github.com/tc39/proposal-collection-methods -$({ target: 'Map', stat: true }, { +$({ target: 'Map', stat: true, forced: true }, { groupBy: function groupBy(iterable, keyDerivative) { aCallable(keyDerivative); var iterator = getIterator(iterable); diff --git a/packages/core-js/modules/esnext.map.includes.js b/packages/core-js/modules/esnext.map.includes.js index 708f040b3ffa..5e1e8552a920 100644 --- a/packages/core-js/modules/esnext.map.includes.js +++ b/packages/core-js/modules/esnext.map.includes.js @@ -1,5 +1,4 @@ 'use strict'; -var IS_PURE = require('../internals/is-pure'); var $ = require('../internals/export'); var anObject = require('../internals/an-object'); var getMapIterator = require('../internals/get-map-iterator'); @@ -8,7 +7,7 @@ var iterate = require('../internals/iterate'); // `Map.prototype.includes` method // 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) { return iterate(getMapIterator(anObject(this)), function (key, value, stop) { if (sameValueZero(value, searchElement)) return stop(); diff --git a/packages/core-js/modules/esnext.map.key-by.js b/packages/core-js/modules/esnext.map.key-by.js index 174b7b7ad5b0..03a377e69d86 100644 --- a/packages/core-js/modules/esnext.map.key-by.js +++ b/packages/core-js/modules/esnext.map.key-by.js @@ -6,7 +6,7 @@ var aCallable = require('../internals/a-callable'); // `Map.keyBy` method // https://github.com/tc39/proposal-collection-methods -$({ target: 'Map', stat: true }, { +$({ target: 'Map', stat: true, forced: true }, { keyBy: function keyBy(iterable, keyDerivative) { var newMap = new this(); aCallable(keyDerivative); diff --git a/packages/core-js/modules/esnext.map.key-of.js b/packages/core-js/modules/esnext.map.key-of.js index 1b57149d0aeb..061413e3889f 100644 --- a/packages/core-js/modules/esnext.map.key-of.js +++ b/packages/core-js/modules/esnext.map.key-of.js @@ -1,13 +1,12 @@ 'use strict'; var $ = require('../internals/export'); -var IS_PURE = require('../internals/is-pure'); var anObject = require('../internals/an-object'); var getMapIterator = require('../internals/get-map-iterator'); var iterate = require('../internals/iterate'); // `Map.prototype.keyOf` method // 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) { return iterate(getMapIterator(anObject(this)), function (key, value, stop) { if (value === searchElement) return stop(key); diff --git a/packages/core-js/modules/esnext.map.map-keys.js b/packages/core-js/modules/esnext.map.map-keys.js index 1cebb4e50eec..79ed20d166cb 100644 --- a/packages/core-js/modules/esnext.map.map-keys.js +++ b/packages/core-js/modules/esnext.map.map-keys.js @@ -1,5 +1,4 @@ 'use strict'; -var IS_PURE = require('../internals/is-pure'); var $ = require('../internals/export'); var getBuiltIn = require('../internals/get-built-in'); var bind = require('../internals/function-bind-context'); @@ -12,7 +11,7 @@ var iterate = require('../internals/iterate'); // `Map.prototype.mapKeys` method // 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 */) { var map = anObject(this); var iterator = getMapIterator(map); diff --git a/packages/core-js/modules/esnext.map.map-values.js b/packages/core-js/modules/esnext.map.map-values.js index d808b8ffed93..ca54c70a3024 100644 --- a/packages/core-js/modules/esnext.map.map-values.js +++ b/packages/core-js/modules/esnext.map.map-values.js @@ -1,5 +1,4 @@ 'use strict'; -var IS_PURE = require('../internals/is-pure'); var $ = require('../internals/export'); var getBuiltIn = require('../internals/get-built-in'); var bind = require('../internals/function-bind-context'); @@ -12,7 +11,7 @@ var iterate = require('../internals/iterate'); // `Map.prototype.mapValues` method // 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 */) { var map = anObject(this); var iterator = getMapIterator(map); diff --git a/packages/core-js/modules/esnext.map.merge.js b/packages/core-js/modules/esnext.map.merge.js index 033dabba67b5..a37ea6304e06 100644 --- a/packages/core-js/modules/esnext.map.merge.js +++ b/packages/core-js/modules/esnext.map.merge.js @@ -1,13 +1,12 @@ 'use strict'; var $ = require('../internals/export'); -var IS_PURE = require('../internals/is-pure'); var aCallable = require('../internals/a-callable'); var anObject = require('../internals/an-object'); var iterate = require('../internals/iterate'); // `Map.prototype.merge` method // 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` merge: function merge(iterable /* ...iterables */) { var map = anObject(this); diff --git a/packages/core-js/modules/esnext.map.of.js b/packages/core-js/modules/esnext.map.of.js index 4f84d89d6d55..2b1cbd72a880 100644 --- a/packages/core-js/modules/esnext.map.of.js +++ b/packages/core-js/modules/esnext.map.of.js @@ -3,6 +3,6 @@ var of = require('../internals/collection-of'); // `Map.of` method // https://tc39.github.io/proposal-setmap-offrom/#sec-map.of -$({ target: 'Map', stat: true }, { +$({ target: 'Map', stat: true, forced: true }, { of: of }); diff --git a/packages/core-js/modules/esnext.map.reduce.js b/packages/core-js/modules/esnext.map.reduce.js index b3241b48fb83..1a69ef284674 100644 --- a/packages/core-js/modules/esnext.map.reduce.js +++ b/packages/core-js/modules/esnext.map.reduce.js @@ -1,7 +1,6 @@ 'use strict'; var $ = require('../internals/export'); var global = require('../internals/global'); -var IS_PURE = require('../internals/is-pure'); var anObject = require('../internals/an-object'); var aCallable = require('../internals/a-callable'); var getMapIterator = require('../internals/get-map-iterator'); @@ -11,7 +10,7 @@ var TypeError = global.TypeError; // `Map.prototype.reduce` method // 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 */) { var map = anObject(this); var iterator = getMapIterator(map); diff --git a/packages/core-js/modules/esnext.map.some.js b/packages/core-js/modules/esnext.map.some.js index 23365c7457b1..cc3dcabc1fe6 100644 --- a/packages/core-js/modules/esnext.map.some.js +++ b/packages/core-js/modules/esnext.map.some.js @@ -1,6 +1,5 @@ 'use strict'; var $ = require('../internals/export'); -var IS_PURE = require('../internals/is-pure'); var anObject = require('../internals/an-object'); var bind = require('../internals/function-bind-context'); var getMapIterator = require('../internals/get-map-iterator'); @@ -8,7 +7,7 @@ var iterate = require('../internals/iterate'); // `Set.prototype.some` method // 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 */) { var map = anObject(this); var iterator = getMapIterator(map); diff --git a/packages/core-js/modules/esnext.map.update-or-insert.js b/packages/core-js/modules/esnext.map.update-or-insert.js index 21624f84250c..05003214a811 100644 --- a/packages/core-js/modules/esnext.map.update-or-insert.js +++ b/packages/core-js/modules/esnext.map.update-or-insert.js @@ -1,11 +1,10 @@ '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'); // `Map.prototype.updateOrInsert` method (replaced by `Map.prototype.emplace`) // 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 }); diff --git a/packages/core-js/modules/esnext.map.update.js b/packages/core-js/modules/esnext.map.update.js index f009327b9590..39dbfe03e959 100644 --- a/packages/core-js/modules/esnext.map.update.js +++ b/packages/core-js/modules/esnext.map.update.js @@ -1,5 +1,4 @@ 'use strict'; -var IS_PURE = require('../internals/is-pure'); var $ = require('../internals/export'); var global = require('../internals/global'); var call = require('../internals/function-call'); @@ -10,7 +9,7 @@ var TypeError = global.TypeError; // `Set.prototype.update` method // 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 */) { var map = anObject(this); var get = aCallable(map.get); diff --git a/packages/core-js/modules/esnext.map.upsert.js b/packages/core-js/modules/esnext.map.upsert.js index 698b2f12979b..10d9ad850f10 100644 --- a/packages/core-js/modules/esnext.map.upsert.js +++ b/packages/core-js/modules/esnext.map.upsert.js @@ -1,11 +1,10 @@ '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'); // `Map.prototype.upsert` method (replaced by `Map.prototype.emplace`) // 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 }); diff --git a/packages/core-js/modules/esnext.math.clamp.js b/packages/core-js/modules/esnext.math.clamp.js index c69b1227cbd5..6898ff7e930c 100644 --- a/packages/core-js/modules/esnext.math.clamp.js +++ b/packages/core-js/modules/esnext.math.clamp.js @@ -5,7 +5,7 @@ var max = Math.max; // `Math.clamp` method // https://rwaldron.github.io/proposal-math-extensions/ -$({ target: 'Math', stat: true }, { +$({ target: 'Math', stat: true, forced: true }, { clamp: function clamp(x, lower, upper) { return min(upper, max(lower, x)); } diff --git a/packages/core-js/modules/esnext.math.deg-per-rad.js b/packages/core-js/modules/esnext.math.deg-per-rad.js index b1c09b8e5a90..203dea40773f 100644 --- a/packages/core-js/modules/esnext.math.deg-per-rad.js +++ b/packages/core-js/modules/esnext.math.deg-per-rad.js @@ -2,6 +2,6 @@ var $ = require('../internals/export'); // `Math.DEG_PER_RAD` constant // https://rwaldron.github.io/proposal-math-extensions/ -$({ target: 'Math', stat: true }, { +$({ target: 'Math', stat: true, forced: true }, { DEG_PER_RAD: Math.PI / 180 }); diff --git a/packages/core-js/modules/esnext.math.degrees.js b/packages/core-js/modules/esnext.math.degrees.js index e91de91cb430..2b1edfcfd45c 100644 --- a/packages/core-js/modules/esnext.math.degrees.js +++ b/packages/core-js/modules/esnext.math.degrees.js @@ -4,7 +4,7 @@ var RAD_PER_DEG = 180 / Math.PI; // `Math.degrees` method // https://rwaldron.github.io/proposal-math-extensions/ -$({ target: 'Math', stat: true }, { +$({ target: 'Math', stat: true, forced: true }, { degrees: function degrees(radians) { return radians * RAD_PER_DEG; } diff --git a/packages/core-js/modules/esnext.math.fscale.js b/packages/core-js/modules/esnext.math.fscale.js index 3db68ef147d5..45974cae7637 100644 --- a/packages/core-js/modules/esnext.math.fscale.js +++ b/packages/core-js/modules/esnext.math.fscale.js @@ -5,7 +5,7 @@ var fround = require('../internals/math-fround'); // `Math.fscale` method // 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) { return fround(scale(x, inLow, inHigh, outLow, outHigh)); } diff --git a/packages/core-js/modules/esnext.math.iaddh.js b/packages/core-js/modules/esnext.math.iaddh.js index 232303172194..5a52c14e7cb6 100644 --- a/packages/core-js/modules/esnext.math.iaddh.js +++ b/packages/core-js/modules/esnext.math.iaddh.js @@ -3,7 +3,7 @@ var $ = require('../internals/export'); // `Math.iaddh` method // https://gist.github.com/BrendanEich/4294d5c212a6d2254703 // TODO: Remove from `core-js@4` -$({ target: 'Math', stat: true }, { +$({ target: 'Math', stat: true, forced: true }, { iaddh: function iaddh(x0, x1, y0, y1) { var $x0 = x0 >>> 0; var $x1 = x1 >>> 0; diff --git a/packages/core-js/modules/esnext.math.imulh.js b/packages/core-js/modules/esnext.math.imulh.js index f7a558e38ee4..2d9b9385717f 100644 --- a/packages/core-js/modules/esnext.math.imulh.js +++ b/packages/core-js/modules/esnext.math.imulh.js @@ -3,7 +3,7 @@ var $ = require('../internals/export'); // `Math.imulh` method // https://gist.github.com/BrendanEich/4294d5c212a6d2254703 // TODO: Remove from `core-js@4` -$({ target: 'Math', stat: true }, { +$({ target: 'Math', stat: true, forced: true }, { imulh: function imulh(u, v) { var UINT16 = 0xFFFF; var $u = +u; diff --git a/packages/core-js/modules/esnext.math.isubh.js b/packages/core-js/modules/esnext.math.isubh.js index cbe0b4e24c29..e958859b9082 100644 --- a/packages/core-js/modules/esnext.math.isubh.js +++ b/packages/core-js/modules/esnext.math.isubh.js @@ -3,7 +3,7 @@ var $ = require('../internals/export'); // `Math.isubh` method // https://gist.github.com/BrendanEich/4294d5c212a6d2254703 // TODO: Remove from `core-js@4` -$({ target: 'Math', stat: true }, { +$({ target: 'Math', stat: true, forced: true }, { isubh: function isubh(x0, x1, y0, y1) { var $x0 = x0 >>> 0; var $x1 = x1 >>> 0; diff --git a/packages/core-js/modules/esnext.math.rad-per-deg.js b/packages/core-js/modules/esnext.math.rad-per-deg.js index 6515cbe5838a..21ec8bbee7a2 100644 --- a/packages/core-js/modules/esnext.math.rad-per-deg.js +++ b/packages/core-js/modules/esnext.math.rad-per-deg.js @@ -2,6 +2,6 @@ var $ = require('../internals/export'); // `Math.RAD_PER_DEG` constant // https://rwaldron.github.io/proposal-math-extensions/ -$({ target: 'Math', stat: true }, { +$({ target: 'Math', stat: true, forced: true }, { RAD_PER_DEG: 180 / Math.PI }); diff --git a/packages/core-js/modules/esnext.math.radians.js b/packages/core-js/modules/esnext.math.radians.js index 0b25512ec66e..0575c471d161 100644 --- a/packages/core-js/modules/esnext.math.radians.js +++ b/packages/core-js/modules/esnext.math.radians.js @@ -4,7 +4,7 @@ var DEG_PER_RAD = Math.PI / 180; // `Math.radians` method // https://rwaldron.github.io/proposal-math-extensions/ -$({ target: 'Math', stat: true }, { +$({ target: 'Math', stat: true, forced: true }, { radians: function radians(degrees) { return degrees * DEG_PER_RAD; } diff --git a/packages/core-js/modules/esnext.math.scale.js b/packages/core-js/modules/esnext.math.scale.js index 400a9ed5182f..0b4d51c5e0d2 100644 --- a/packages/core-js/modules/esnext.math.scale.js +++ b/packages/core-js/modules/esnext.math.scale.js @@ -3,6 +3,6 @@ var scale = require('../internals/math-scale'); // `Math.scale` method // https://rwaldron.github.io/proposal-math-extensions/ -$({ target: 'Math', stat: true }, { +$({ target: 'Math', stat: true, forced: true }, { scale: scale }); diff --git a/packages/core-js/modules/esnext.math.signbit.js b/packages/core-js/modules/esnext.math.signbit.js index 3ece8eae7578..5f2db56dab22 100644 --- a/packages/core-js/modules/esnext.math.signbit.js +++ b/packages/core-js/modules/esnext.math.signbit.js @@ -2,7 +2,7 @@ var $ = require('../internals/export'); // `Math.signbit` method // https://github.com/tc39/proposal-Math.signbit -$({ target: 'Math', stat: true }, { +$({ target: 'Math', stat: true, forced: true }, { signbit: function signbit(x) { return (x = +x) == x && x == 0 ? 1 / x == -Infinity : x < 0; } diff --git a/packages/core-js/modules/esnext.math.umulh.js b/packages/core-js/modules/esnext.math.umulh.js index 5f0e70f6067b..bc6cf753a724 100644 --- a/packages/core-js/modules/esnext.math.umulh.js +++ b/packages/core-js/modules/esnext.math.umulh.js @@ -3,7 +3,7 @@ var $ = require('../internals/export'); // `Math.umulh` method // https://gist.github.com/BrendanEich/4294d5c212a6d2254703 // TODO: Remove from `core-js@4` -$({ target: 'Math', stat: true }, { +$({ target: 'Math', stat: true, forced: true }, { umulh: function umulh(u, v) { var UINT16 = 0xFFFF; var $u = +u; diff --git a/packages/core-js/modules/esnext.number.from-string.js b/packages/core-js/modules/esnext.number.from-string.js index c30edf471411..519714d9b74f 100644 --- a/packages/core-js/modules/esnext.number.from-string.js +++ b/packages/core-js/modules/esnext.number.from-string.js @@ -18,7 +18,7 @@ var stringSlice = uncurryThis(''.slice); // `Number.fromString` method // https://github.com/tc39/proposal-number-fromstring -$({ target: 'Number', stat: true }, { +$({ target: 'Number', stat: true, forced: true }, { fromString: function fromString(string, radix) { var sign = 1; var R, mathNum; diff --git a/packages/core-js/modules/esnext.number.range.js b/packages/core-js/modules/esnext.number.range.js index 3581983c4019..120d6e6c0031 100644 --- a/packages/core-js/modules/esnext.number.range.js +++ b/packages/core-js/modules/esnext.number.range.js @@ -4,7 +4,7 @@ var NumericRangeIterator = require('../internals/numeric-range-iterator'); // `Number.range` method // https://github.com/tc39/proposal-Number.range -$({ target: 'Number', stat: true }, { +$({ target: 'Number', stat: true, forced: true }, { range: function range(start, end, option) { return new NumericRangeIterator(start, end, option, 'number', 0, 1); } diff --git a/packages/core-js/modules/esnext.object.iterate-entries.js b/packages/core-js/modules/esnext.object.iterate-entries.js index b882ca301990..029755f0c9d7 100644 --- a/packages/core-js/modules/esnext.object.iterate-entries.js +++ b/packages/core-js/modules/esnext.object.iterate-entries.js @@ -4,7 +4,7 @@ var ObjectIterator = require('../internals/object-iterator'); // `Object.iterateEntries` method // https://github.com/tc39/proposal-object-iteration -$({ target: 'Object', stat: true }, { +$({ target: 'Object', stat: true, forced: true }, { iterateEntries: function iterateEntries(object) { return new ObjectIterator(object, 'entries'); } diff --git a/packages/core-js/modules/esnext.object.iterate-keys.js b/packages/core-js/modules/esnext.object.iterate-keys.js index e74dc372f2f1..3b7e4f6be2d7 100644 --- a/packages/core-js/modules/esnext.object.iterate-keys.js +++ b/packages/core-js/modules/esnext.object.iterate-keys.js @@ -4,7 +4,7 @@ var ObjectIterator = require('../internals/object-iterator'); // `Object.iterateKeys` method // https://github.com/tc39/proposal-object-iteration -$({ target: 'Object', stat: true }, { +$({ target: 'Object', stat: true, forced: true }, { iterateKeys: function iterateKeys(object) { return new ObjectIterator(object, 'keys'); } diff --git a/packages/core-js/modules/esnext.object.iterate-values.js b/packages/core-js/modules/esnext.object.iterate-values.js index 1d18fe00eba9..50883708b0f7 100644 --- a/packages/core-js/modules/esnext.object.iterate-values.js +++ b/packages/core-js/modules/esnext.object.iterate-values.js @@ -4,7 +4,7 @@ var ObjectIterator = require('../internals/object-iterator'); // `Object.iterateValues` method // https://github.com/tc39/proposal-object-iteration -$({ target: 'Object', stat: true }, { +$({ target: 'Object', stat: true, forced: true }, { iterateValues: function iterateValues(object) { return new ObjectIterator(object, 'values'); } diff --git a/packages/core-js/modules/esnext.observable.js b/packages/core-js/modules/esnext.observable.js index e243bea7f759..742703c93ce9 100644 --- a/packages/core-js/modules/esnext.observable.js +++ b/packages/core-js/modules/esnext.observable.js @@ -31,6 +31,14 @@ var getObservableInternalState = getterFor(OBSERVABLE); var getSubscriptionInternalState = getterFor(SUBSCRIPTION); var getSubscriptionObserverInternalState = getterFor(SUBSCRIPTION_OBSERVER); 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) { this.observer = anObject(observer); @@ -218,7 +226,7 @@ redefineAll($Observable, { redefine(ObservablePrototype, $$OBSERVABLE, function () { return this; }); -$({ global: true }, { +$({ global: true, forced: FORCED }, { Observable: $Observable }); diff --git a/packages/core-js/modules/esnext.promise.try.js b/packages/core-js/modules/esnext.promise.try.js index 7a7b93b6a6e6..9952fb665367 100644 --- a/packages/core-js/modules/esnext.promise.try.js +++ b/packages/core-js/modules/esnext.promise.try.js @@ -5,7 +5,7 @@ var perform = require('../internals/perform'); // `Promise.try` method // https://github.com/tc39/proposal-promise-try -$({ target: 'Promise', stat: true }, { +$({ target: 'Promise', stat: true, forced: true }, { 'try': function (callbackfn) { var promiseCapability = newPromiseCapabilityModule.f(this); var result = perform(callbackfn); diff --git a/packages/core-js/modules/esnext.set.add-all.js b/packages/core-js/modules/esnext.set.add-all.js index 9bbeab69097e..85431d80f40f 100644 --- a/packages/core-js/modules/esnext.set.add-all.js +++ b/packages/core-js/modules/esnext.set.add-all.js @@ -1,10 +1,9 @@ 'use strict'; var $ = require('../internals/export'); -var IS_PURE = require('../internals/is-pure'); var addAll = require('../internals/collection-add-all'); // `Set.prototype.addAll` method // 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 }); diff --git a/packages/core-js/modules/esnext.set.delete-all.js b/packages/core-js/modules/esnext.set.delete-all.js index 267354a21f44..96176a3b673b 100644 --- a/packages/core-js/modules/esnext.set.delete-all.js +++ b/packages/core-js/modules/esnext.set.delete-all.js @@ -1,10 +1,9 @@ 'use strict'; var $ = require('../internals/export'); -var IS_PURE = require('../internals/is-pure'); var deleteAll = require('../internals/collection-delete-all'); // `Set.prototype.deleteAll` method // 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 }); diff --git a/packages/core-js/modules/esnext.set.difference.js b/packages/core-js/modules/esnext.set.difference.js index 5810fc34610a..9509035fb11d 100644 --- a/packages/core-js/modules/esnext.set.difference.js +++ b/packages/core-js/modules/esnext.set.difference.js @@ -1,5 +1,4 @@ 'use strict'; -var IS_PURE = require('../internals/is-pure'); var $ = require('../internals/export'); var getBuiltIn = require('../internals/get-built-in'); var call = require('../internals/function-call'); @@ -10,7 +9,7 @@ var iterate = require('../internals/iterate'); // `Set.prototype.difference` method // 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) { var set = anObject(this); var newSet = new (speciesConstructor(set, getBuiltIn('Set')))(set); diff --git a/packages/core-js/modules/esnext.set.every.js b/packages/core-js/modules/esnext.set.every.js index 59cdd288ab8d..2e972b1316cb 100644 --- a/packages/core-js/modules/esnext.set.every.js +++ b/packages/core-js/modules/esnext.set.every.js @@ -1,6 +1,5 @@ 'use strict'; var $ = require('../internals/export'); -var IS_PURE = require('../internals/is-pure'); var anObject = require('../internals/an-object'); var bind = require('../internals/function-bind-context'); var getSetIterator = require('../internals/get-set-iterator'); @@ -8,7 +7,7 @@ var iterate = require('../internals/iterate'); // `Set.prototype.every` method // 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 */) { var set = anObject(this); var iterator = getSetIterator(set); diff --git a/packages/core-js/modules/esnext.set.filter.js b/packages/core-js/modules/esnext.set.filter.js index 1d1c353e90c2..4de458f11952 100644 --- a/packages/core-js/modules/esnext.set.filter.js +++ b/packages/core-js/modules/esnext.set.filter.js @@ -1,5 +1,4 @@ 'use strict'; -var IS_PURE = require('../internals/is-pure'); var $ = require('../internals/export'); var getBuiltIn = require('../internals/get-built-in'); var call = require('../internals/function-call'); @@ -12,7 +11,7 @@ var iterate = require('../internals/iterate'); // `Set.prototype.filter` method // 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 */) { var set = anObject(this); var iterator = getSetIterator(set); diff --git a/packages/core-js/modules/esnext.set.find.js b/packages/core-js/modules/esnext.set.find.js index 987c17fe8ef9..207b322ea43a 100644 --- a/packages/core-js/modules/esnext.set.find.js +++ b/packages/core-js/modules/esnext.set.find.js @@ -1,6 +1,5 @@ 'use strict'; var $ = require('../internals/export'); -var IS_PURE = require('../internals/is-pure'); var anObject = require('../internals/an-object'); var bind = require('../internals/function-bind-context'); var getSetIterator = require('../internals/get-set-iterator'); @@ -8,7 +7,7 @@ var iterate = require('../internals/iterate'); // `Set.prototype.find` method // 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 */) { var set = anObject(this); var iterator = getSetIterator(set); diff --git a/packages/core-js/modules/esnext.set.from.js b/packages/core-js/modules/esnext.set.from.js index 3ca34f451752..9b98a4eaefd9 100644 --- a/packages/core-js/modules/esnext.set.from.js +++ b/packages/core-js/modules/esnext.set.from.js @@ -3,6 +3,6 @@ var from = require('../internals/collection-from'); // `Set.from` method // https://tc39.github.io/proposal-setmap-offrom/#sec-set.from -$({ target: 'Set', stat: true }, { +$({ target: 'Set', stat: true, forced: true }, { from: from }); diff --git a/packages/core-js/modules/esnext.set.intersection.js b/packages/core-js/modules/esnext.set.intersection.js index be832f378311..9fecc8a180ae 100644 --- a/packages/core-js/modules/esnext.set.intersection.js +++ b/packages/core-js/modules/esnext.set.intersection.js @@ -1,5 +1,4 @@ 'use strict'; -var IS_PURE = require('../internals/is-pure'); var $ = require('../internals/export'); var getBuiltIn = require('../internals/get-built-in'); var call = require('../internals/function-call'); @@ -10,7 +9,7 @@ var iterate = require('../internals/iterate'); // `Set.prototype.intersection` method // 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) { var set = anObject(this); var newSet = new (speciesConstructor(set, getBuiltIn('Set')))(); diff --git a/packages/core-js/modules/esnext.set.is-disjoint-from.js b/packages/core-js/modules/esnext.set.is-disjoint-from.js index 70d79e44bb95..2dde2ab7642f 100644 --- a/packages/core-js/modules/esnext.set.is-disjoint-from.js +++ b/packages/core-js/modules/esnext.set.is-disjoint-from.js @@ -1,5 +1,4 @@ 'use strict'; -var IS_PURE = require('../internals/is-pure'); var $ = require('../internals/export'); var call = require('../internals/function-call'); var aCallable = require('../internals/a-callable'); @@ -8,7 +7,7 @@ var iterate = require('../internals/iterate'); // `Set.prototype.isDisjointFrom` method // 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) { var set = anObject(this); var hasCheck = aCallable(set.has); diff --git a/packages/core-js/modules/esnext.set.is-subset-of.js b/packages/core-js/modules/esnext.set.is-subset-of.js index f294824610c2..c1235250bcdd 100644 --- a/packages/core-js/modules/esnext.set.is-subset-of.js +++ b/packages/core-js/modules/esnext.set.is-subset-of.js @@ -1,5 +1,4 @@ 'use strict'; -var IS_PURE = require('../internals/is-pure'); var $ = require('../internals/export'); var getBuiltIn = require('../internals/get-built-in'); var call = require('../internals/function-call'); @@ -11,7 +10,7 @@ var iterate = require('../internals/iterate'); // `Set.prototype.isSubsetOf` method // 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) { var iterator = getIterator(this); var otherSet = anObject(iterable); diff --git a/packages/core-js/modules/esnext.set.is-superset-of.js b/packages/core-js/modules/esnext.set.is-superset-of.js index 86e7d4b4a4d3..59b15bb173c4 100644 --- a/packages/core-js/modules/esnext.set.is-superset-of.js +++ b/packages/core-js/modules/esnext.set.is-superset-of.js @@ -1,5 +1,4 @@ 'use strict'; -var IS_PURE = require('../internals/is-pure'); var $ = require('../internals/export'); var call = require('../internals/function-call'); var aCallable = require('../internals/a-callable'); @@ -8,7 +7,7 @@ var iterate = require('../internals/iterate'); // `Set.prototype.isSupersetOf` method // 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) { var set = anObject(this); var hasCheck = aCallable(set.has); diff --git a/packages/core-js/modules/esnext.set.join.js b/packages/core-js/modules/esnext.set.join.js index c996a1dbe009..53ff605f8ab6 100644 --- a/packages/core-js/modules/esnext.set.join.js +++ b/packages/core-js/modules/esnext.set.join.js @@ -1,5 +1,4 @@ 'use strict'; -var IS_PURE = require('../internals/is-pure'); var $ = require('../internals/export'); var uncurryThis = require('../internals/function-uncurry-this'); var anObject = require('../internals/an-object'); @@ -12,7 +11,7 @@ var push = [].push; // `Set.prototype.join` method // 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) { var set = anObject(this); var iterator = getSetIterator(set); diff --git a/packages/core-js/modules/esnext.set.map.js b/packages/core-js/modules/esnext.set.map.js index 04e545479760..d23405af0813 100644 --- a/packages/core-js/modules/esnext.set.map.js +++ b/packages/core-js/modules/esnext.set.map.js @@ -1,5 +1,4 @@ 'use strict'; -var IS_PURE = require('../internals/is-pure'); var $ = require('../internals/export'); var getBuiltIn = require('../internals/get-built-in'); var bind = require('../internals/function-bind-context'); @@ -12,7 +11,7 @@ var iterate = require('../internals/iterate'); // `Set.prototype.map` method // 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 */) { var set = anObject(this); var iterator = getSetIterator(set); diff --git a/packages/core-js/modules/esnext.set.of.js b/packages/core-js/modules/esnext.set.of.js index 744698eba9be..e33812a2c166 100644 --- a/packages/core-js/modules/esnext.set.of.js +++ b/packages/core-js/modules/esnext.set.of.js @@ -3,6 +3,6 @@ var of = require('../internals/collection-of'); // `Set.of` method // https://tc39.github.io/proposal-setmap-offrom/#sec-set.of -$({ target: 'Set', stat: true }, { +$({ target: 'Set', stat: true, forced: true }, { of: of }); diff --git a/packages/core-js/modules/esnext.set.reduce.js b/packages/core-js/modules/esnext.set.reduce.js index 291df357860f..a548b3764d81 100644 --- a/packages/core-js/modules/esnext.set.reduce.js +++ b/packages/core-js/modules/esnext.set.reduce.js @@ -1,7 +1,6 @@ 'use strict'; var $ = require('../internals/export'); var global = require('../internals/global'); -var IS_PURE = require('../internals/is-pure'); var aCallable = require('../internals/a-callable'); var anObject = require('../internals/an-object'); var getSetIterator = require('../internals/get-set-iterator'); @@ -11,7 +10,7 @@ var TypeError = global.TypeError; // `Set.prototype.reduce` method // 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 */) { var set = anObject(this); var iterator = getSetIterator(set); diff --git a/packages/core-js/modules/esnext.set.some.js b/packages/core-js/modules/esnext.set.some.js index b8642c1c7e9e..9d7d3da9c1d5 100644 --- a/packages/core-js/modules/esnext.set.some.js +++ b/packages/core-js/modules/esnext.set.some.js @@ -1,6 +1,5 @@ 'use strict'; var $ = require('../internals/export'); -var IS_PURE = require('../internals/is-pure'); var anObject = require('../internals/an-object'); var bind = require('../internals/function-bind-context'); var getSetIterator = require('../internals/get-set-iterator'); @@ -8,7 +7,7 @@ var iterate = require('../internals/iterate'); // `Set.prototype.some` method // 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 */) { var set = anObject(this); var iterator = getSetIterator(set); diff --git a/packages/core-js/modules/esnext.set.symmetric-difference.js b/packages/core-js/modules/esnext.set.symmetric-difference.js index 794be8a1ccaf..0c45a9b8b8c6 100644 --- a/packages/core-js/modules/esnext.set.symmetric-difference.js +++ b/packages/core-js/modules/esnext.set.symmetric-difference.js @@ -1,5 +1,4 @@ 'use strict'; -var IS_PURE = require('../internals/is-pure'); var $ = require('../internals/export'); var getBuiltIn = require('../internals/get-built-in'); var call = require('../internals/function-call'); @@ -10,7 +9,7 @@ var iterate = require('../internals/iterate'); // `Set.prototype.symmetricDifference` method // 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) { var set = anObject(this); var newSet = new (speciesConstructor(set, getBuiltIn('Set')))(set); diff --git a/packages/core-js/modules/esnext.set.union.js b/packages/core-js/modules/esnext.set.union.js index ff98a6bda55b..49888e06b568 100644 --- a/packages/core-js/modules/esnext.set.union.js +++ b/packages/core-js/modules/esnext.set.union.js @@ -1,6 +1,5 @@ 'use strict'; var $ = require('../internals/export'); -var IS_PURE = require('../internals/is-pure'); var getBuiltIn = require('../internals/get-built-in'); var aCallable = require('../internals/a-callable'); var anObject = require('../internals/an-object'); @@ -9,7 +8,7 @@ var iterate = require('../internals/iterate'); // `Set.prototype.union` method // 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) { var set = anObject(this); var newSet = new (speciesConstructor(set, getBuiltIn('Set')))(set); diff --git a/packages/core-js/modules/esnext.string.at.js b/packages/core-js/modules/esnext.string.at.js index e411f8f3ba24..21509fc808da 100644 --- a/packages/core-js/modules/esnext.string.at.js +++ b/packages/core-js/modules/esnext.string.at.js @@ -1,18 +1,13 @@ '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'); var toIntegerOrInfinity = require('../internals/to-integer-or-infinity'); var toString = require('../internals/to-string'); -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) { var S = toString(requireObjectCoercible(this)); var len = S.length; diff --git a/packages/core-js/modules/esnext.string.code-points.js b/packages/core-js/modules/esnext.string.code-points.js index 5fe57780d77c..23f87c0a7b35 100644 --- a/packages/core-js/modules/esnext.string.code-points.js +++ b/packages/core-js/modules/esnext.string.code-points.js @@ -32,7 +32,7 @@ var $StringIterator = createIteratorConstructor(function StringIterator(string) // `String.prototype.codePoints` method // https://github.com/tc39/proposal-string-prototype-codepoints -$({ target: 'String', proto: true }, { +$({ target: 'String', proto: true, forced: true }, { codePoints: function codePoints() { return new $StringIterator(toString(requireObjectCoercible(this))); } diff --git a/packages/core-js/modules/esnext.string.cooked.js b/packages/core-js/modules/esnext.string.cooked.js index 7bff9b8325be..b2f1e692283a 100644 --- a/packages/core-js/modules/esnext.string.cooked.js +++ b/packages/core-js/modules/esnext.string.cooked.js @@ -12,7 +12,7 @@ var join = uncurryThis(ArrayPrototype.join); // `String.cooked` method // https://github.com/tc39/proposal-string-cooked -$({ target: 'String', stat: true }, { +$({ target: 'String', stat: true, forced: true }, { cooked: function cooked(template /* , ...substitutions */) { var cookedTemplate = toIndexedObject(template); var literalSegments = lengthOfArrayLike(cookedTemplate); diff --git a/packages/core-js/modules/esnext.typed-array.filter-out.js b/packages/core-js/modules/esnext.typed-array.filter-out.js index 4441dccfeef5..deb92308ef1b 100644 --- a/packages/core-js/modules/esnext.typed-array.filter-out.js +++ b/packages/core-js/modules/esnext.typed-array.filter-out.js @@ -12,4 +12,4 @@ var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; exportTypedArrayMethod('filterOut', function filterOut(callbackfn /* , thisArg */) { var list = $filterReject(aTypedArray(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined); return fromSpeciesAndList(this, list); -}); +}, true); diff --git a/packages/core-js/modules/esnext.typed-array.filter-reject.js b/packages/core-js/modules/esnext.typed-array.filter-reject.js index c1e22cb75a4b..ed3375f6f144 100644 --- a/packages/core-js/modules/esnext.typed-array.filter-reject.js +++ b/packages/core-js/modules/esnext.typed-array.filter-reject.js @@ -11,4 +11,4 @@ var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; exportTypedArrayMethod('filterReject', function filterReject(callbackfn /* , thisArg */) { var list = $filterReject(aTypedArray(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined); return fromSpeciesAndList(this, list); -}); +}, true); diff --git a/packages/core-js/modules/esnext.typed-array.from-async.js b/packages/core-js/modules/esnext.typed-array.from-async.js index f2f5d35851b5..64c57d7974b6 100644 --- a/packages/core-js/modules/esnext.typed-array.from-async.js +++ b/packages/core-js/modules/esnext.typed-array.from-async.js @@ -3,7 +3,6 @@ var getBuiltIn = require('../internals/get-built-in'); var aConstructor = require('../internals/a-constructor'); 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'); var arrayFromConstructorAndList = require('../internals/array-from-constructor-and-list'); @@ -23,4 +22,4 @@ exportTypedArrayStaticMethod('fromAsync', function fromAsync(asyncItems /* , map }).then(function (list) { return arrayFromConstructorAndList(aTypedArrayConstructor(C), list); }); -}, TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS); +}, true); diff --git a/packages/core-js/modules/esnext.typed-array.group-by.js b/packages/core-js/modules/esnext.typed-array.group-by.js index 4ba0da8d074a..5b43e558127d 100644 --- a/packages/core-js/modules/esnext.typed-array.group-by.js +++ b/packages/core-js/modules/esnext.typed-array.group-by.js @@ -12,4 +12,4 @@ var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; exportTypedArrayMethod('groupBy', function groupBy(callbackfn /* , thisArg */) { var thisArg = arguments.length > 1 ? arguments[1] : undefined; return $groupBy(aTypedArray(this), callbackfn, thisArg, typedArraySpeciesConstructor); -}); +}, true); diff --git a/packages/core-js/modules/esnext.typed-array.to-reversed.js b/packages/core-js/modules/esnext.typed-array.to-reversed.js index bdc9d4664756..ae61360e1939 100644 --- a/packages/core-js/modules/esnext.typed-array.to-reversed.js +++ b/packages/core-js/modules/esnext.typed-array.to-reversed.js @@ -10,4 +10,4 @@ var TYPED_ARRAY_CONSTRUCTOR = ArrayBufferViewCore.TYPED_ARRAY_CONSTRUCTOR; // https://tc39.es/proposal-change-array-by-copy/#sec-%typedarray%.prototype.toReversed exportTypedArrayMethod('toReversed', function toReversed() { return arrayToReversed(aTypedArray(this), this[TYPED_ARRAY_CONSTRUCTOR]); -}); +}, true); diff --git a/packages/core-js/modules/esnext.typed-array.to-sorted.js b/packages/core-js/modules/esnext.typed-array.to-sorted.js index d7dc40f4380e..a5c73a6297f3 100644 --- a/packages/core-js/modules/esnext.typed-array.to-sorted.js +++ b/packages/core-js/modules/esnext.typed-array.to-sorted.js @@ -16,4 +16,4 @@ exportTypedArrayMethod('toSorted', function toSorted(compareFn) { var O = aTypedArray(this); var A = arrayFromConstructorAndList(O[TYPED_ARRAY_CONSTRUCTOR], O); return sort(A, compareFn); -}); +}, true); diff --git a/packages/core-js/modules/esnext.typed-array.to-spliced.js b/packages/core-js/modules/esnext.typed-array.to-spliced.js index bdbf3723adc2..d478f4bfed78 100644 --- a/packages/core-js/modules/esnext.typed-array.to-spliced.js +++ b/packages/core-js/modules/esnext.typed-array.to-spliced.js @@ -12,4 +12,4 @@ var TYPED_ARRAY_CONSTRUCTOR = ArrayBufferViewCore.TYPED_ARRAY_CONSTRUCTOR; // eslint-disable-next-line no-unused-vars -- required for .length exportTypedArrayMethod('toSpliced', function toSpliced(start, deleteCount /* , ...items */) { return arrayToSpliced(aTypedArray(this), this[TYPED_ARRAY_CONSTRUCTOR], arraySlice(arguments)); -}); +}, true); diff --git a/packages/core-js/modules/esnext.typed-array.unique-by.js b/packages/core-js/modules/esnext.typed-array.unique-by.js index a8e9b7d825c3..60b9ca144274 100644 --- a/packages/core-js/modules/esnext.typed-array.unique-by.js +++ b/packages/core-js/modules/esnext.typed-array.unique-by.js @@ -12,4 +12,4 @@ var arrayUniqueBy = uncurryThis($arrayUniqueBy); // https://github.com/tc39/proposal-array-unique exportTypedArrayMethod('uniqueBy', function uniqueBy(resolver) { return fromSpeciesAndList(this, arrayUniqueBy(aTypedArray(this), resolver)); -}); +}, true); diff --git a/packages/core-js/modules/esnext.typed-array.with.js b/packages/core-js/modules/esnext.typed-array.with.js index 5ef56b9ed882..890b3a5f15a8 100644 --- a/packages/core-js/modules/esnext.typed-array.with.js +++ b/packages/core-js/modules/esnext.typed-array.with.js @@ -10,4 +10,4 @@ var TYPED_ARRAY_CONSTRUCTOR = ArrayBufferViewCore.TYPED_ARRAY_CONSTRUCTOR; // https://tc39.es/proposal-change-array-by-copy/#sec-%typedarray%.prototype.with exportTypedArrayMethod('with', { 'with': function (index, value) { return arrayWith(aTypedArray(this), this[TYPED_ARRAY_CONSTRUCTOR], index, value); -} }['with']); +} }['with'], true); diff --git a/packages/core-js/modules/esnext.weak-map.delete-all.js b/packages/core-js/modules/esnext.weak-map.delete-all.js index 802da93466e2..700a7e513255 100644 --- a/packages/core-js/modules/esnext.weak-map.delete-all.js +++ b/packages/core-js/modules/esnext.weak-map.delete-all.js @@ -1,10 +1,9 @@ 'use strict'; var $ = require('../internals/export'); -var IS_PURE = require('../internals/is-pure'); var deleteAll = require('../internals/collection-delete-all'); // `WeakMap.prototype.deleteAll` method // 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 }); diff --git a/packages/core-js/modules/esnext.weak-map.emplace.js b/packages/core-js/modules/esnext.weak-map.emplace.js index 185ea7446234..f24ab84da387 100644 --- a/packages/core-js/modules/esnext.weak-map.emplace.js +++ b/packages/core-js/modules/esnext.weak-map.emplace.js @@ -1,10 +1,9 @@ 'use strict'; var $ = require('../internals/export'); -var IS_PURE = require('../internals/is-pure'); var emplace = require('../internals/map-emplace'); // `WeakMap.prototype.emplace` method // 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 }); diff --git a/packages/core-js/modules/esnext.weak-map.from.js b/packages/core-js/modules/esnext.weak-map.from.js index 8dc7b01a52dd..eb6eafe96671 100644 --- a/packages/core-js/modules/esnext.weak-map.from.js +++ b/packages/core-js/modules/esnext.weak-map.from.js @@ -3,6 +3,6 @@ var from = require('../internals/collection-from'); // `WeakMap.from` method // https://tc39.github.io/proposal-setmap-offrom/#sec-weakmap.from -$({ target: 'WeakMap', stat: true }, { +$({ target: 'WeakMap', stat: true, forced: true }, { from: from }); diff --git a/packages/core-js/modules/esnext.weak-map.of.js b/packages/core-js/modules/esnext.weak-map.of.js index efea5139b168..530ff7e4e408 100644 --- a/packages/core-js/modules/esnext.weak-map.of.js +++ b/packages/core-js/modules/esnext.weak-map.of.js @@ -3,6 +3,6 @@ var of = require('../internals/collection-of'); // `WeakMap.of` method // https://tc39.github.io/proposal-setmap-offrom/#sec-weakmap.of -$({ target: 'WeakMap', stat: true }, { +$({ target: 'WeakMap', stat: true, forced: true }, { of: of }); diff --git a/packages/core-js/modules/esnext.weak-map.upsert.js b/packages/core-js/modules/esnext.weak-map.upsert.js index cb0ca258f551..ddef2d814776 100644 --- a/packages/core-js/modules/esnext.weak-map.upsert.js +++ b/packages/core-js/modules/esnext.weak-map.upsert.js @@ -1,11 +1,10 @@ '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'); // `WeakMap.prototype.upsert` method (replaced by `WeakMap.prototype.emplace`) // 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 }); diff --git a/packages/core-js/modules/esnext.weak-set.add-all.js b/packages/core-js/modules/esnext.weak-set.add-all.js index b4ab0735acf4..338763bb0fc0 100644 --- a/packages/core-js/modules/esnext.weak-set.add-all.js +++ b/packages/core-js/modules/esnext.weak-set.add-all.js @@ -1,10 +1,9 @@ 'use strict'; var $ = require('../internals/export'); -var IS_PURE = require('../internals/is-pure'); var addAll = require('../internals/collection-add-all'); // `WeakSet.prototype.addAll` method // 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 }); diff --git a/packages/core-js/modules/esnext.weak-set.delete-all.js b/packages/core-js/modules/esnext.weak-set.delete-all.js index 51f304d9bb48..27d3db23a961 100644 --- a/packages/core-js/modules/esnext.weak-set.delete-all.js +++ b/packages/core-js/modules/esnext.weak-set.delete-all.js @@ -1,10 +1,9 @@ 'use strict'; var $ = require('../internals/export'); -var IS_PURE = require('../internals/is-pure'); var deleteAll = require('../internals/collection-delete-all'); // `WeakSet.prototype.deleteAll` method // 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 }); diff --git a/packages/core-js/modules/esnext.weak-set.from.js b/packages/core-js/modules/esnext.weak-set.from.js index e13acec6dc3d..c5ebd7f46cab 100644 --- a/packages/core-js/modules/esnext.weak-set.from.js +++ b/packages/core-js/modules/esnext.weak-set.from.js @@ -3,6 +3,6 @@ var from = require('../internals/collection-from'); // `WeakSet.from` method // https://tc39.github.io/proposal-setmap-offrom/#sec-weakset.from -$({ target: 'WeakSet', stat: true }, { +$({ target: 'WeakSet', stat: true, forced: true }, { from: from }); diff --git a/packages/core-js/modules/esnext.weak-set.of.js b/packages/core-js/modules/esnext.weak-set.of.js index aee9920fe42e..6f987d587758 100644 --- a/packages/core-js/modules/esnext.weak-set.of.js +++ b/packages/core-js/modules/esnext.weak-set.of.js @@ -3,6 +3,6 @@ var of = require('../internals/collection-of'); // `WeakSet.of` method // https://tc39.github.io/proposal-setmap-offrom/#sec-weakset.of -$({ target: 'WeakSet', stat: true }, { +$({ target: 'WeakSet', stat: true, forced: true }, { of: of });