core-js 3.21.0 → 3.21.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.
@@ -4,7 +4,7 @@ var fails = require('../internals/fails');
4
4
  module.exports = function (METHOD_NAME, argument) {
5
5
  var method = [][METHOD_NAME];
6
6
  return !!method && fails(function () {
7
- // eslint-disable-next-line no-useless-call,no-throw-literal -- required for testing
8
- method.call(null, argument || function () { throw 1; }, 1);
7
+ // eslint-disable-next-line no-useless-call -- required for testing
8
+ method.call(null, argument || function () { return 1; }, 1);
9
9
  });
10
10
  };
@@ -4,9 +4,9 @@ var store = require('../internals/shared-store');
4
4
  (module.exports = function (key, value) {
5
5
  return store[key] || (store[key] = value !== undefined ? value : {});
6
6
  })('versions', []).push({
7
- version: '3.21.0',
7
+ version: '3.21.1',
8
8
  mode: IS_PURE ? 'pure' : 'global',
9
9
  copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
10
- license: 'https://github.com/zloirock/core-js/blob/v3.21.0/LICENSE',
10
+ license: 'https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE',
11
11
  source: 'https://github.com/zloirock/core-js'
12
12
  });
@@ -6,6 +6,7 @@ var uncurryThis = require('../internals/function-uncurry-this');
6
6
  var IndexedObject = require('../internals/indexed-object');
7
7
  var toObject = require('../internals/to-object');
8
8
  var lengthOfArrayLike = require('../internals/length-of-array-like');
9
+ var arrayMethodIsStrict = require('../internals/array-method-is-strict');
9
10
  var addToUnscopables = require('../internals/add-to-unscopables');
10
11
 
11
12
  var Map = getBuiltIn('Map');
@@ -17,7 +18,8 @@ var push = uncurryThis([].push);
17
18
 
18
19
  // `Array.prototype.groupByToMap` method
19
20
  // https://github.com/tc39/proposal-array-grouping
20
- $({ target: 'Array', proto: true }, {
21
+ // https://bugs.webkit.org/show_bug.cgi?id=236541
22
+ $({ target: 'Array', proto: true, forced: !arrayMethodIsStrict('groupByToMap') }, {
21
23
  groupByToMap: function groupByToMap(callbackfn /* , thisArg */) {
22
24
  var O = toObject(this);
23
25
  var self = IndexedObject(O);
@@ -1,11 +1,13 @@
1
1
  'use strict';
2
2
  var $ = require('../internals/export');
3
3
  var $groupBy = require('../internals/array-group-by');
4
+ var arrayMethodIsStrict = require('../internals/array-method-is-strict');
4
5
  var addToUnscopables = require('../internals/add-to-unscopables');
5
6
 
6
7
  // `Array.prototype.groupBy` method
7
8
  // https://github.com/tc39/proposal-array-grouping
8
- $({ target: 'Array', proto: true }, {
9
+ // https://bugs.webkit.org/show_bug.cgi?id=236541
10
+ $({ target: 'Array', proto: true, forced: !arrayMethodIsStrict('groupBy') }, {
9
11
  groupBy: function groupBy(callbackfn /* , thisArg */) {
10
12
  var thisArg = arguments.length > 1 ? arguments[1] : undefined;
11
13
  return $groupBy(this, callbackfn, thisArg);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "core-js",
3
3
  "description": "Standard library",
4
- "version": "3.21.0",
4
+ "version": "3.21.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/zloirock/core-js.git"
@@ -54,5 +54,5 @@
54
54
  "scripts": {
55
55
  "postinstall": "node -e \"try{require('./postinstall')}catch(e){}\""
56
56
  },
57
- "gitHead": "32492dc5f55ea9bbd21b8fa8145cedd36d68c160"
57
+ "gitHead": "eb9229ae88428edea6b2be250c98a518fd2c22e3"
58
58
  }