core-js-pure 3.8.2 → 3.8.3

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.
@@ -1,4 +1,5 @@
1
1
  'use strict';
2
+ var fails = require('../internals/fails');
2
3
  var getPrototypeOf = require('../internals/object-get-prototype-of');
3
4
  var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');
4
5
  var has = require('../internals/has');
@@ -24,10 +25,16 @@ if ([].keys) {
24
25
  }
25
26
  }
26
27
 
27
- if (IteratorPrototype == undefined) IteratorPrototype = {};
28
+ var NEW_ITERATOR_PROTOTYPE = IteratorPrototype == undefined || fails(function () {
29
+ var test = {};
30
+ // FF44- legacy iterators case
31
+ return IteratorPrototype[ITERATOR].call(test) !== test;
32
+ });
33
+
34
+ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype = {};
28
35
 
29
36
  // 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
30
- if (!IS_PURE && !has(IteratorPrototype, ITERATOR)) {
37
+ if ((!IS_PURE || NEW_ITERATOR_PROTOTYPE) && !has(IteratorPrototype, ITERATOR)) {
31
38
  createNonEnumerableProperty(IteratorPrototype, ITERATOR, returnThis);
32
39
  }
33
40
 
@@ -4,7 +4,7 @@ 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.8.2',
7
+ version: '3.8.3',
8
8
  mode: IS_PURE ? 'pure' : 'global',
9
9
  copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
10
10
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "core-js-pure",
3
3
  "description": "Standard library",
4
- "version": "3.8.2",
4
+ "version": "3.8.3",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/zloirock/core-js.git"
@@ -53,5 +53,6 @@
53
53
  ],
54
54
  "scripts": {
55
55
  "postinstall": "node -e \"try{require('./postinstall')}catch(e){}\""
56
- }
56
+ },
57
+ "gitHead": "a88734f1d7d8c1b5bb797e1b8ece2ec1961111c6"
57
58
  }