core-js 2.6.3 → 2.6.4

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,2 +1,2 @@
1
- var core = module.exports = { version: '2.6.3' };
1
+ var core = module.exports = { version: '2.6.4' };
2
2
  if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
@@ -0,0 +1 @@
1
+ module.exports = require('./_shared')('native-function-to-string', Function.toString);
@@ -0,0 +1,4 @@
1
+ var nativeFunctionToString = require('./_function-to-string');
2
+ var WeakMap = require('./_global').WeakMap;
3
+
4
+ module.exports = typeof WeakMap === 'function' && /native code/.test(nativeFunctionToString.call(WeakMap));
@@ -1,17 +1,18 @@
1
1
  'use strict';
2
+ var global = require('./_global');
2
3
  var each = require('./_array-methods')(0);
3
4
  var redefine = require('./_redefine');
4
5
  var meta = require('./_meta');
5
6
  var assign = require('./_object-assign');
6
7
  var weak = require('./_collection-weak');
7
8
  var isObject = require('./_is-object');
8
- var fails = require('./_fails');
9
9
  var validate = require('./_validate-collection');
10
+ var NATIVE_WEAK_MAP = require('./_validate-collection');
11
+ var IS_IE11 = !global.ActiveXObject && 'ActiveXObject' in global;
10
12
  var WEAK_MAP = 'WeakMap';
11
13
  var getWeak = meta.getWeak;
12
14
  var isExtensible = Object.isExtensible;
13
15
  var uncaughtFrozenStore = weak.ufstore;
14
- var tmp = {};
15
16
  var InternalMap;
16
17
 
17
18
  var wrapper = function (get) {
@@ -39,7 +40,7 @@ var methods = {
39
40
  var $WeakMap = module.exports = require('./_collection')(WEAK_MAP, wrapper, methods, weak, true, true);
40
41
 
41
42
  // IE11 WeakMap frozen keys fix
42
- if (fails(function () { return new $WeakMap().set((Object.freeze || Object)(tmp), 7).get(tmp) != 7; })) {
43
+ if (NATIVE_WEAK_MAP && IS_IE11) {
43
44
  InternalMap = weak.getConstructor(wrapper, WEAK_MAP);
44
45
  assign(InternalMap.prototype, methods);
45
46
  meta.NEED = true;
package/modules/_core.js CHANGED
@@ -1,2 +1,2 @@
1
- var core = module.exports = { version: '2.6.3' };
1
+ var core = module.exports = { version: '2.6.4' };
2
2
  if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
@@ -0,0 +1 @@
1
+ module.exports = require('./_shared')('native-function-to-string', Function.toString);
@@ -0,0 +1,4 @@
1
+ var nativeFunctionToString = require('./_function-to-string');
2
+ var WeakMap = require('./_global').WeakMap;
3
+
4
+ module.exports = typeof WeakMap === 'function' && /native code/.test(nativeFunctionToString.call(WeakMap));
@@ -2,8 +2,8 @@ var global = require('./_global');
2
2
  var hide = require('./_hide');
3
3
  var has = require('./_has');
4
4
  var SRC = require('./_uid')('src');
5
+ var $toString = require('./_function-to-string');
5
6
  var TO_STRING = 'toString';
6
- var $toString = Function[TO_STRING];
7
7
  var TPL = ('' + $toString).split(TO_STRING);
8
8
 
9
9
  require('./_core').inspectSource = function (it) {
@@ -1,17 +1,18 @@
1
1
  'use strict';
2
+ var global = require('./_global');
2
3
  var each = require('./_array-methods')(0);
3
4
  var redefine = require('./_redefine');
4
5
  var meta = require('./_meta');
5
6
  var assign = require('./_object-assign');
6
7
  var weak = require('./_collection-weak');
7
8
  var isObject = require('./_is-object');
8
- var fails = require('./_fails');
9
9
  var validate = require('./_validate-collection');
10
+ var NATIVE_WEAK_MAP = require('./_validate-collection');
11
+ var IS_IE11 = !global.ActiveXObject && 'ActiveXObject' in global;
10
12
  var WEAK_MAP = 'WeakMap';
11
13
  var getWeak = meta.getWeak;
12
14
  var isExtensible = Object.isExtensible;
13
15
  var uncaughtFrozenStore = weak.ufstore;
14
- var tmp = {};
15
16
  var InternalMap;
16
17
 
17
18
  var wrapper = function (get) {
@@ -39,7 +40,7 @@ var methods = {
39
40
  var $WeakMap = module.exports = require('./_collection')(WEAK_MAP, wrapper, methods, weak, true, true);
40
41
 
41
42
  // IE11 WeakMap frozen keys fix
42
- if (fails(function () { return new $WeakMap().set((Object.freeze || Object)(tmp), 7).get(tmp) != 7; })) {
43
+ if (NATIVE_WEAK_MAP && IS_IE11) {
43
44
  InternalMap = weak.getConstructor(wrapper, WEAK_MAP);
44
45
  assign(InternalMap.prototype, methods);
45
46
  meta.NEED = true;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "core-js",
3
3
  "description": "Standard library",
4
- "version": "2.6.3",
4
+ "version": "2.6.4",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/zloirock/core-js.git"