core-js 3.33.0 → 3.33.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/actual/array/virtual/group-by-to-map.js +2 -2
- package/actual/array/virtual/group-by.js +2 -2
- package/actual/array/virtual/group-to-map.js +2 -2
- package/actual/array/virtual/group.js +2 -2
- package/es/README.md +1 -1
- package/es/array/virtual/at.js +2 -2
- package/es/array/virtual/concat.js +2 -2
- package/es/array/virtual/copy-within.js +2 -2
- package/es/array/virtual/entries.js +2 -2
- package/es/array/virtual/every.js +2 -2
- package/es/array/virtual/fill.js +2 -2
- package/es/array/virtual/filter.js +2 -2
- package/es/array/virtual/find-index.js +2 -2
- package/es/array/virtual/find-last-index.js +2 -2
- package/es/array/virtual/find-last.js +2 -2
- package/es/array/virtual/find.js +2 -2
- package/es/array/virtual/flat-map.js +2 -2
- package/es/array/virtual/flat.js +2 -2
- package/es/array/virtual/for-each.js +2 -2
- package/es/array/virtual/includes.js +2 -2
- package/es/array/virtual/index-of.js +2 -2
- package/es/array/virtual/iterator.js +2 -2
- package/es/array/virtual/join.js +2 -2
- package/es/array/virtual/keys.js +2 -2
- package/es/array/virtual/last-index-of.js +2 -2
- package/es/array/virtual/map.js +2 -2
- package/es/array/virtual/push.js +2 -2
- package/es/array/virtual/reduce-right.js +2 -2
- package/es/array/virtual/reduce.js +2 -2
- package/es/array/virtual/reverse.js +2 -2
- package/es/array/virtual/slice.js +2 -2
- package/es/array/virtual/some.js +2 -2
- package/es/array/virtual/sort.js +2 -2
- package/es/array/virtual/splice.js +2 -2
- package/es/array/virtual/to-reversed.js +2 -2
- package/es/array/virtual/to-sorted.js +2 -2
- package/es/array/virtual/to-spliced.js +2 -2
- package/es/array/virtual/unshift.js +2 -2
- package/es/array/virtual/values.js +2 -2
- package/es/array/virtual/with.js +2 -2
- package/es/function/virtual/bind.js +2 -2
- package/es/number/virtual/to-exponential.js +2 -2
- package/es/number/virtual/to-fixed.js +2 -2
- package/es/number/virtual/to-precision.js +2 -2
- package/es/string/virtual/anchor.js +2 -2
- package/es/string/virtual/at.js +2 -2
- package/es/string/virtual/big.js +2 -2
- package/es/string/virtual/blink.js +2 -2
- package/es/string/virtual/bold.js +2 -2
- package/es/string/virtual/code-point-at.js +2 -2
- package/es/string/virtual/ends-with.js +2 -2
- package/es/string/virtual/fixed.js +2 -2
- package/es/string/virtual/fontcolor.js +2 -2
- package/es/string/virtual/fontsize.js +2 -2
- package/es/string/virtual/includes.js +2 -2
- package/es/string/virtual/is-well-formed.js +2 -1
- package/es/string/virtual/italics.js +2 -2
- package/es/string/virtual/link.js +2 -2
- package/es/string/virtual/match-all.js +2 -2
- package/es/string/virtual/pad-end.js +2 -2
- package/es/string/virtual/pad-start.js +2 -2
- package/es/string/virtual/repeat.js +2 -2
- package/es/string/virtual/replace-all.js +2 -2
- package/es/string/virtual/small.js +2 -2
- package/es/string/virtual/starts-with.js +2 -2
- package/es/string/virtual/strike.js +2 -2
- package/es/string/virtual/sub.js +2 -2
- package/es/string/virtual/substr.js +2 -2
- package/es/string/virtual/sup.js +2 -2
- package/es/string/virtual/to-well-formed.js +2 -1
- package/es/string/virtual/trim-end.js +2 -2
- package/es/string/virtual/trim-left.js +2 -2
- package/es/string/virtual/trim-right.js +2 -2
- package/es/string/virtual/trim-start.js +2 -2
- package/es/string/virtual/trim.js +2 -2
- package/full/array/virtual/filter-out.js +2 -2
- package/full/array/virtual/filter-reject.js +2 -2
- package/full/array/virtual/unique-by.js +2 -2
- package/full/function/virtual/demethodize.js +2 -2
- package/full/function/virtual/un-this.js +2 -2
- package/full/string/virtual/at.js +2 -2
- package/full/string/virtual/code-points.js +2 -1
- package/internals/array-from-async.js +2 -2
- package/internals/error-to-string.js +2 -3
- package/internals/get-built-in-prototype-method.js +6 -0
- package/internals/shared.js +2 -2
- package/modules/es.array.iterator.js +1 -2
- package/modules/es.array.to-sorted.js +2 -2
- package/modules/es.symbol.constructor.js +5 -4
- package/modules/esnext.data-view.get-uint8-clamped.js +1 -1
- package/modules/esnext.data-view.set-uint8-clamped.js +1 -1
- package/modules/esnext.symbol.metadata-key.js +1 -0
- package/modules/esnext.symbol.metadata.js +0 -1
- package/modules/web.url-search-params.constructor.js +20 -11
- package/package.json +2 -1
- package/proposals/array-buffer-transfer.js +1 -0
- package/proposals/data-view-get-set-uint8-clamped.js +1 -1
- package/stable/instance/for-each.js +1 -1
- package/stage/README.md +1 -1
- package/web/README.md +1 -1
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
require('../../../modules/es.map');
|
|
3
3
|
require('../../../modules/es.object.to-string');
|
|
4
4
|
require('../../../modules/esnext.array.group-by-to-map');
|
|
5
|
-
var
|
|
5
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
6
6
|
|
|
7
|
-
module.exports =
|
|
7
|
+
module.exports = getBuiltInPrototypeMethod('Array', 'groupByToMap');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/esnext.array.group-by');
|
|
3
|
-
var
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('Array', 'groupBy');
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
require('../../../modules/es.map');
|
|
3
3
|
require('../../../modules/es.object.to-string');
|
|
4
4
|
require('../../../modules/esnext.array.group-to-map');
|
|
5
|
-
var
|
|
5
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
6
6
|
|
|
7
|
-
module.exports =
|
|
7
|
+
module.exports = getBuiltInPrototypeMethod('Array', 'groupToMap');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/esnext.array.group');
|
|
3
|
-
var
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('Array', 'group');
|
package/es/README.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
This folder contains entry points for [stable ECMAScript features](https://github.com/zloirock/core-js
|
|
1
|
+
This folder contains entry points for [stable ECMAScript features](https://github.com/zloirock/core-js/#ecmascript) with dependencies.
|
package/es/array/virtual/at.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.array.at');
|
|
3
|
-
var
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('Array', 'at');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.array.concat');
|
|
3
|
-
var
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('Array', 'concat');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.array.copy-within');
|
|
3
|
-
var
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('Array', 'copyWithin');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.array.iterator');
|
|
3
3
|
require('../../../modules/es.object.to-string');
|
|
4
|
-
var
|
|
4
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
5
5
|
|
|
6
|
-
module.exports =
|
|
6
|
+
module.exports = getBuiltInPrototypeMethod('Array', 'entries');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.array.every');
|
|
3
|
-
var
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('Array', 'every');
|
package/es/array/virtual/fill.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.array.fill');
|
|
3
|
-
var
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('Array', 'fill');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.array.filter');
|
|
3
|
-
var
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('Array', 'filter');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.array.find-index');
|
|
3
|
-
var
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('Array', 'findIndex');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.array.find-last-index');
|
|
3
|
-
var
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('Array', 'findLastIndex');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.array.find-last');
|
|
3
|
-
var
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('Array', 'findLast');
|
package/es/array/virtual/find.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.array.find');
|
|
3
|
-
var
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('Array', 'find');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.array.flat-map');
|
|
3
3
|
require('../../../modules/es.array.unscopables.flat-map');
|
|
4
|
-
var
|
|
4
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
5
5
|
|
|
6
|
-
module.exports =
|
|
6
|
+
module.exports = getBuiltInPrototypeMethod('Array', 'flatMap');
|
package/es/array/virtual/flat.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.array.flat');
|
|
3
3
|
require('../../../modules/es.array.unscopables.flat');
|
|
4
|
-
var
|
|
4
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
5
5
|
|
|
6
|
-
module.exports =
|
|
6
|
+
module.exports = getBuiltInPrototypeMethod('Array', 'flat');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.array.for-each');
|
|
3
|
-
var
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('Array', 'forEach');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.array.includes');
|
|
3
|
-
var
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('Array', 'includes');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.array.index-of');
|
|
3
|
-
var
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('Array', 'indexOf');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.array.iterator');
|
|
3
3
|
require('../../../modules/es.object.to-string');
|
|
4
|
-
var
|
|
4
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
5
5
|
|
|
6
|
-
module.exports =
|
|
6
|
+
module.exports = getBuiltInPrototypeMethod('Array', 'values');
|
package/es/array/virtual/join.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.array.join');
|
|
3
|
-
var
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('Array', 'join');
|
package/es/array/virtual/keys.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.array.iterator');
|
|
3
3
|
require('../../../modules/es.object.to-string');
|
|
4
|
-
var
|
|
4
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
5
5
|
|
|
6
|
-
module.exports =
|
|
6
|
+
module.exports = getBuiltInPrototypeMethod('Array', 'keys');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.array.last-index-of');
|
|
3
|
-
var
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('Array', 'lastIndexOf');
|
package/es/array/virtual/map.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.array.map');
|
|
3
|
-
var
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('Array', 'map');
|
package/es/array/virtual/push.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.array.push');
|
|
3
|
-
var
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('Array', 'push');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.array.reduce-right');
|
|
3
|
-
var
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('Array', 'reduceRight');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.array.reduce');
|
|
3
|
-
var
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('Array', 'reduce');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.array.reverse');
|
|
3
|
-
var
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('Array', 'reverse');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.array.slice');
|
|
3
|
-
var
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('Array', 'slice');
|
package/es/array/virtual/some.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.array.some');
|
|
3
|
-
var
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('Array', 'some');
|
package/es/array/virtual/sort.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.array.sort');
|
|
3
|
-
var
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('Array', 'sort');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.array.splice');
|
|
3
|
-
var
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('Array', 'splice');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.array.to-reversed');
|
|
3
|
-
var
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('Array', 'toReversed');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.array.sort');
|
|
3
3
|
require('../../../modules/es.array.to-sorted');
|
|
4
|
-
var
|
|
4
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
5
5
|
|
|
6
|
-
module.exports =
|
|
6
|
+
module.exports = getBuiltInPrototypeMethod('Array', 'toSorted');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.array.to-spliced');
|
|
3
|
-
var
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('Array', 'toSpliced');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.array.unshift');
|
|
3
|
-
var
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('Array', 'unshift');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.array.iterator');
|
|
3
3
|
require('../../../modules/es.object.to-string');
|
|
4
|
-
var
|
|
4
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
5
5
|
|
|
6
|
-
module.exports =
|
|
6
|
+
module.exports = getBuiltInPrototypeMethod('Array', 'values');
|
package/es/array/virtual/with.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.array.with');
|
|
3
|
-
var
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('Array', 'with');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.function.bind');
|
|
3
|
-
var
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('Function', 'bind');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.number.to-exponential');
|
|
3
|
-
var
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('Number', 'toExponential');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.number.to-fixed');
|
|
3
|
-
var
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('Number', 'toFixed');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.number.to-precision');
|
|
3
|
-
var
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('Number', 'toPrecision');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.string.anchor');
|
|
3
|
-
var
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('String', 'anchor');
|
package/es/string/virtual/at.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.string.at-alternative');
|
|
3
|
-
var
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('String', 'at');
|
package/es/string/virtual/big.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.string.big');
|
|
3
|
-
var
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('String', 'big');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.string.blink');
|
|
3
|
-
var
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('String', 'blink');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.string.bold');
|
|
3
|
-
var
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('String', 'bold');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.string.code-point-at');
|
|
3
|
-
var
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('String', 'codePointAt');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.string.ends-with');
|
|
3
|
-
var
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('String', 'endsWith');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.string.fixed');
|
|
3
|
-
var
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('String', 'fixed');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.string.fontcolor');
|
|
3
|
-
var
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('String', 'fontcolor');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.string.fontsize');
|
|
3
|
-
var
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('String', 'fontsize');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.string.includes');
|
|
3
|
-
var
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('String', 'includes');
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.string.is-well-formed');
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
3
4
|
|
|
4
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('String', 'isWellFormed');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.string.italics');
|
|
3
|
-
var
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('String', 'italics');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.string.link');
|
|
3
|
-
var
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('String', 'link');
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
require('../../../modules/es.object.to-string');
|
|
3
3
|
require('../../../modules/es.regexp.exec');
|
|
4
4
|
require('../../../modules/es.string.match-all');
|
|
5
|
-
var
|
|
5
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
6
6
|
|
|
7
|
-
module.exports =
|
|
7
|
+
module.exports = getBuiltInPrototypeMethod('String', 'matchAll');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.string.pad-end');
|
|
3
|
-
var
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('String', 'padEnd');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.string.pad-start');
|
|
3
|
-
var
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('String', 'padStart');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.string.repeat');
|
|
3
|
-
var
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('String', 'repeat');
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
require('../../../modules/es.regexp.exec');
|
|
3
3
|
require('../../../modules/es.string.replace');
|
|
4
4
|
require('../../../modules/es.string.replace-all');
|
|
5
|
-
var
|
|
5
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
6
6
|
|
|
7
|
-
module.exports =
|
|
7
|
+
module.exports = getBuiltInPrototypeMethod('String', 'replaceAll');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.string.small');
|
|
3
|
-
var
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('String', 'small');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.string.starts-with');
|
|
3
|
-
var
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('String', 'startsWith');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.string.strike');
|
|
3
|
-
var
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('String', 'strike');
|
package/es/string/virtual/sub.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.string.sub');
|
|
3
|
-
var
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('String', 'sub');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.string.substr');
|
|
3
|
-
var
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('String', 'substr');
|
package/es/string/virtual/sup.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.string.sup');
|
|
3
|
-
var
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('String', 'sup');
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.string.to-well-formed');
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
3
4
|
|
|
4
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('String', 'toWellFormed');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.string.trim-end');
|
|
3
|
-
var
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('String', 'trimRight');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.string.trim-start');
|
|
3
|
-
var
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('String', 'trimLeft');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.string.trim-end');
|
|
3
|
-
var
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('String', 'trimRight');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.string.trim-start');
|
|
3
|
-
var
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('String', 'trimLeft');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.string.trim');
|
|
3
|
-
var
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('String', 'trim');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
// TODO: Remove from `core-js@4`
|
|
3
3
|
require('../../../modules/esnext.array.filter-out');
|
|
4
|
-
var
|
|
4
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
5
5
|
|
|
6
|
-
module.exports =
|
|
6
|
+
module.exports = getBuiltInPrototypeMethod('Array', 'filterOut');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/esnext.array.filter-reject');
|
|
3
|
-
var
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('Array', 'filterReject');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.map');
|
|
3
3
|
require('../../../modules/esnext.array.unique-by');
|
|
4
|
-
var
|
|
4
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
5
5
|
|
|
6
|
-
module.exports =
|
|
6
|
+
module.exports = getBuiltInPrototypeMethod('Array', 'uniqueBy');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/esnext.function.demethodize');
|
|
3
|
-
var
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('Function', 'demethodize');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/esnext.function.un-this');
|
|
3
|
-
var
|
|
3
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
4
|
|
|
5
|
-
module.exports =
|
|
5
|
+
module.exports = getBuiltInPrototypeMethod('Function', 'unThis');
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
require('../../../actual/string/virtual/at');
|
|
3
3
|
// TODO: Remove from `core-js@4`
|
|
4
4
|
require('../../../modules/esnext.string.at');
|
|
5
|
-
var
|
|
5
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
6
6
|
|
|
7
|
-
module.exports =
|
|
7
|
+
module.exports = getBuiltInPrototypeMethod('String', 'at');
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('../../../modules/es.object.to-string');
|
|
3
3
|
require('../../../modules/esnext.string.code-points');
|
|
4
|
+
var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method');
|
|
4
5
|
|
|
5
|
-
module.exports =
|
|
6
|
+
module.exports = getBuiltInPrototypeMethod('String', 'codePoints');
|
|
@@ -8,14 +8,14 @@ var getIterator = require('../internals/get-iterator');
|
|
|
8
8
|
var getIteratorDirect = require('../internals/get-iterator-direct');
|
|
9
9
|
var getIteratorMethod = require('../internals/get-iterator-method');
|
|
10
10
|
var getMethod = require('../internals/get-method');
|
|
11
|
-
var getVirtual = require('../internals/entry-virtual');
|
|
12
11
|
var getBuiltIn = require('../internals/get-built-in');
|
|
12
|
+
var getBuiltInPrototypeMethod = require('../internals/get-built-in-prototype-method');
|
|
13
13
|
var wellKnownSymbol = require('../internals/well-known-symbol');
|
|
14
14
|
var AsyncFromSyncIterator = require('../internals/async-from-sync-iterator');
|
|
15
15
|
var toArray = require('../internals/async-iterator-iteration').toArray;
|
|
16
16
|
|
|
17
17
|
var ASYNC_ITERATOR = wellKnownSymbol('asyncIterator');
|
|
18
|
-
var arrayIterator = uncurryThis(
|
|
18
|
+
var arrayIterator = uncurryThis(getBuiltInPrototypeMethod('Array', 'values'));
|
|
19
19
|
var arrayIteratorNext = uncurryThis(arrayIterator([]).next);
|
|
20
20
|
|
|
21
21
|
var safeArrayIterator = function () {
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
var DESCRIPTORS = require('../internals/descriptors');
|
|
3
3
|
var fails = require('../internals/fails');
|
|
4
4
|
var anObject = require('../internals/an-object');
|
|
5
|
-
var create = require('../internals/object-create');
|
|
6
5
|
var normalizeStringArgument = require('../internals/normalize-string-argument');
|
|
7
6
|
|
|
8
7
|
var nativeErrorToString = Error.prototype.toString;
|
|
@@ -10,8 +9,8 @@ var nativeErrorToString = Error.prototype.toString;
|
|
|
10
9
|
var INCORRECT_TO_STRING = fails(function () {
|
|
11
10
|
if (DESCRIPTORS) {
|
|
12
11
|
// Chrome 32- incorrectly call accessor
|
|
13
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
14
|
-
var object = create(Object.defineProperty({}, 'name', { get: function () {
|
|
12
|
+
// eslint-disable-next-line es/no-object-create, es/no-object-defineproperty -- safe
|
|
13
|
+
var object = Object.create(Object.defineProperty({}, 'name', { get: function () {
|
|
15
14
|
return this === object;
|
|
16
15
|
} }));
|
|
17
16
|
if (nativeErrorToString.call(object) !== 'true') return true;
|
package/internals/shared.js
CHANGED
|
@@ -5,9 +5,9 @@ var store = require('../internals/shared-store');
|
|
|
5
5
|
(module.exports = function (key, value) {
|
|
6
6
|
return store[key] || (store[key] = value !== undefined ? value : {});
|
|
7
7
|
})('versions', []).push({
|
|
8
|
-
version: '3.33.
|
|
8
|
+
version: '3.33.1',
|
|
9
9
|
mode: IS_PURE ? 'pure' : 'global',
|
|
10
10
|
copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
|
|
11
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.33.
|
|
11
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.33.1/LICENSE',
|
|
12
12
|
source: 'https://github.com/zloirock/core-js'
|
|
13
13
|
});
|
|
@@ -35,13 +35,12 @@ module.exports = defineIterator(Array, 'Array', function (iterated, kind) {
|
|
|
35
35
|
}, function () {
|
|
36
36
|
var state = getInternalState(this);
|
|
37
37
|
var target = state.target;
|
|
38
|
-
var kind = state.kind;
|
|
39
38
|
var index = state.index++;
|
|
40
39
|
if (!target || index >= target.length) {
|
|
41
40
|
state.target = undefined;
|
|
42
41
|
return createIterResultObject(undefined, true);
|
|
43
42
|
}
|
|
44
|
-
switch (kind) {
|
|
43
|
+
switch (state.kind) {
|
|
45
44
|
case 'keys': return createIterResultObject(index, false);
|
|
46
45
|
case 'values': return createIterResultObject(target[index], false);
|
|
47
46
|
} return createIterResultObject([index, target[index]], false);
|
|
@@ -4,11 +4,11 @@ var uncurryThis = require('../internals/function-uncurry-this');
|
|
|
4
4
|
var aCallable = require('../internals/a-callable');
|
|
5
5
|
var toIndexedObject = require('../internals/to-indexed-object');
|
|
6
6
|
var arrayFromConstructorAndList = require('../internals/array-from-constructor-and-list');
|
|
7
|
-
var
|
|
7
|
+
var getBuiltInPrototypeMethod = require('../internals/get-built-in-prototype-method');
|
|
8
8
|
var addToUnscopables = require('../internals/add-to-unscopables');
|
|
9
9
|
|
|
10
10
|
var $Array = Array;
|
|
11
|
-
var sort = uncurryThis(
|
|
11
|
+
var sort = uncurryThis(getBuiltInPrototypeMethod('Array', 'sort'));
|
|
12
12
|
|
|
13
13
|
// `Array.prototype.toSorted` method
|
|
14
14
|
// https://tc39.es/ecma262/#sec-array.prototype.tosorted
|
|
@@ -168,14 +168,15 @@ if (!NATIVE_SYMBOL) {
|
|
|
168
168
|
var description = !arguments.length || arguments[0] === undefined ? undefined : $toString(arguments[0]);
|
|
169
169
|
var tag = uid(description);
|
|
170
170
|
var setter = function (value) {
|
|
171
|
-
|
|
172
|
-
if (
|
|
171
|
+
var $this = this === undefined ? global : this;
|
|
172
|
+
if ($this === ObjectPrototype) call(setter, ObjectPrototypeSymbols, value);
|
|
173
|
+
if (hasOwn($this, HIDDEN) && hasOwn($this[HIDDEN], tag)) $this[HIDDEN][tag] = false;
|
|
173
174
|
var descriptor = createPropertyDescriptor(1, value);
|
|
174
175
|
try {
|
|
175
|
-
setSymbolDescriptor(this, tag, descriptor);
|
|
176
|
+
setSymbolDescriptor($this, tag, descriptor);
|
|
176
177
|
} catch (error) {
|
|
177
178
|
if (!(error instanceof RangeError)) throw error;
|
|
178
|
-
fallbackDefineProperty(this, tag, descriptor);
|
|
179
|
+
fallbackDefineProperty($this, tag, descriptor);
|
|
179
180
|
}
|
|
180
181
|
};
|
|
181
182
|
if (DESCRIPTORS && USE_SETTER) setSymbolDescriptor(ObjectPrototype, tag, { configurable: true, set: setter });
|
|
@@ -6,7 +6,7 @@ var uncurryThis = require('../internals/function-uncurry-this');
|
|
|
6
6
|
var getUint8 = uncurryThis(DataView.prototype.getUint8);
|
|
7
7
|
|
|
8
8
|
// `DataView.prototype.getUint8Clamped` method
|
|
9
|
-
// https://github.com/tc39/proposal-dataview-get-set-
|
|
9
|
+
// https://github.com/tc39/proposal-dataview-get-set-uint8clamped
|
|
10
10
|
$({ target: 'DataView', proto: true, forced: true }, {
|
|
11
11
|
getUint8Clamped: function getUint8Clamped(byteOffset) {
|
|
12
12
|
return getUint8(this, byteOffset);
|
|
@@ -10,7 +10,7 @@ var $TypeError = TypeError;
|
|
|
10
10
|
var setUint8 = uncurryThis(DataView.prototype.setUint8);
|
|
11
11
|
|
|
12
12
|
// `DataView.prototype.setUint8Clamped` method
|
|
13
|
-
// https://github.com/tc39/proposal-dataview-get-set-
|
|
13
|
+
// https://github.com/tc39/proposal-dataview-get-set-uint8clamped
|
|
14
14
|
$({ target: 'DataView', proto: true, forced: true }, {
|
|
15
15
|
setUint8Clamped: function setUint8Clamped(byteOffset, value) {
|
|
16
16
|
if (classof(this) !== 'DataView') throw new $TypeError('Incorrect receiver');
|
|
@@ -25,6 +25,7 @@ var create = require('../internals/object-create');
|
|
|
25
25
|
var createPropertyDescriptor = require('../internals/create-property-descriptor');
|
|
26
26
|
var getIterator = require('../internals/get-iterator');
|
|
27
27
|
var getIteratorMethod = require('../internals/get-iterator-method');
|
|
28
|
+
var createIterResultObject = require('../internals/create-iter-result-object');
|
|
28
29
|
var validateArgumentsLength = require('../internals/validate-arguments-length');
|
|
29
30
|
var wellKnownSymbol = require('../internals/well-known-symbol');
|
|
30
31
|
var arraySort = require('../internals/array-sort');
|
|
@@ -113,17 +114,23 @@ var serialize = function (it) {
|
|
|
113
114
|
var URLSearchParamsIterator = createIteratorConstructor(function Iterator(params, kind) {
|
|
114
115
|
setInternalState(this, {
|
|
115
116
|
type: URL_SEARCH_PARAMS_ITERATOR,
|
|
116
|
-
|
|
117
|
+
target: getInternalParamsState(params).entries,
|
|
118
|
+
index: 0,
|
|
117
119
|
kind: kind
|
|
118
120
|
});
|
|
119
|
-
},
|
|
121
|
+
}, URL_SEARCH_PARAMS, function next() {
|
|
120
122
|
var state = getInternalIteratorState(this);
|
|
121
|
-
var
|
|
122
|
-
var
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
}
|
|
123
|
+
var target = state.target;
|
|
124
|
+
var index = state.index++;
|
|
125
|
+
if (!target || index >= target.length) {
|
|
126
|
+
state.target = undefined;
|
|
127
|
+
return createIterResultObject(undefined, true);
|
|
128
|
+
}
|
|
129
|
+
var entry = target[index];
|
|
130
|
+
switch (state.kind) {
|
|
131
|
+
case 'keys': return createIterResultObject(entry.key, false);
|
|
132
|
+
case 'values': return createIterResultObject(entry.value, false);
|
|
133
|
+
} return createIterResultObject([entry.key, entry.value], false);
|
|
127
134
|
}, true);
|
|
128
135
|
|
|
129
136
|
var URLSearchParamsState = function (init) {
|
|
@@ -143,6 +150,7 @@ URLSearchParamsState.prototype = {
|
|
|
143
150
|
this.update();
|
|
144
151
|
},
|
|
145
152
|
parseObject: function (object) {
|
|
153
|
+
var entries = this.entries;
|
|
146
154
|
var iteratorMethod = getIteratorMethod(object);
|
|
147
155
|
var iterator, next, step, entryIterator, entryNext, first, second;
|
|
148
156
|
|
|
@@ -157,14 +165,15 @@ URLSearchParamsState.prototype = {
|
|
|
157
165
|
(second = call(entryNext, entryIterator)).done ||
|
|
158
166
|
!call(entryNext, entryIterator).done
|
|
159
167
|
) throw new TypeError('Expected sequence with length 2');
|
|
160
|
-
push(
|
|
168
|
+
push(entries, { key: $toString(first.value), value: $toString(second.value) });
|
|
161
169
|
}
|
|
162
170
|
} else for (var key in object) if (hasOwn(object, key)) {
|
|
163
|
-
push(
|
|
171
|
+
push(entries, { key: key, value: $toString(object[key]) });
|
|
164
172
|
}
|
|
165
173
|
},
|
|
166
174
|
parseQuery: function (query) {
|
|
167
175
|
if (query) {
|
|
176
|
+
var entries = this.entries;
|
|
168
177
|
var attributes = split(query, '&');
|
|
169
178
|
var index = 0;
|
|
170
179
|
var attribute, entry;
|
|
@@ -172,7 +181,7 @@ URLSearchParamsState.prototype = {
|
|
|
172
181
|
attribute = attributes[index++];
|
|
173
182
|
if (attribute.length) {
|
|
174
183
|
entry = split(attribute, '=');
|
|
175
|
-
push(
|
|
184
|
+
push(entries, {
|
|
176
185
|
key: deserialize(shift(entry)),
|
|
177
186
|
value: deserialize(join(entry, '='))
|
|
178
187
|
});
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
-
require('../../modules/web.dom-collections.iterator');
|
|
3
2
|
var classof = require('../../internals/classof');
|
|
4
3
|
var hasOwn = require('../../internals/has-own-property');
|
|
5
4
|
var isPrototypeOf = require('../../internals/object-is-prototype-of');
|
|
6
5
|
var method = require('../array/virtual/for-each');
|
|
6
|
+
require('../../modules/web.dom-collections.for-each');
|
|
7
7
|
|
|
8
8
|
var ArrayPrototype = Array.prototype;
|
|
9
9
|
|
package/stage/README.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
This folder contains entry points for [ECMAScript proposals](https://github.com/zloirock/core-js
|
|
1
|
+
This folder contains entry points for [ECMAScript proposals](https://github.com/zloirock/core-js#ecmascript-proposals) with dependencies.
|
package/web/README.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
This folder contains entry points for features from [WHATWG / W3C](https://github.com/zloirock/core-js
|
|
1
|
+
This folder contains entry points for features from [WHATWG / W3C](https://github.com/zloirock/core-js#web-standards) with dependencies.
|