core-js 3.3.5 → 3.3.6

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/es/global-this.js CHANGED
@@ -1,3 +1,3 @@
1
- require('../modules/esnext.global-this');
1
+ require('../modules/es.global-this');
2
2
 
3
3
  module.exports = require('../internals/global');
@@ -1 +1,4 @@
1
+ // TODO: remove from `core-js@4`
2
+ require('../modules/esnext.global-this');
3
+
1
4
  module.exports = require('../es/global-this');
@@ -17,6 +17,6 @@ require('../../modules/esnext.map.merge');
17
17
  require('../../modules/esnext.map.reduce');
18
18
  require('../../modules/esnext.map.some');
19
19
  require('../../modules/esnext.map.update');
20
+ require('../../modules/esnext.map.upsert');
20
21
  // TODO: remove from `core-js@4`
21
22
  require('../../modules/esnext.map.update-or-insert');
22
- require('../../modules/esnext.map.upsert');
@@ -4,12 +4,13 @@ require('../../modules/esnext.math.clamp');
4
4
  require('../../modules/esnext.math.deg-per-rad');
5
5
  require('../../modules/esnext.math.degrees');
6
6
  require('../../modules/esnext.math.fscale');
7
- require('../../modules/esnext.math.iaddh');
8
- require('../../modules/esnext.math.isubh');
9
- require('../../modules/esnext.math.imulh');
10
7
  require('../../modules/esnext.math.rad-per-deg');
11
8
  require('../../modules/esnext.math.radians');
12
9
  require('../../modules/esnext.math.scale');
13
10
  require('../../modules/esnext.math.seeded-prng');
14
11
  require('../../modules/esnext.math.signbit');
12
+ // TODO: Remove from `core-js@4`
13
+ require('../../modules/esnext.math.iaddh');
14
+ require('../../modules/esnext.math.isubh');
15
+ require('../../modules/esnext.math.imulh');
15
16
  require('../../modules/esnext.math.umulh');
@@ -4,4 +4,5 @@ require('../../modules/esnext.symbol.async-dispose');
4
4
  require('../../modules/esnext.symbol.dispose');
5
5
  require('../../modules/esnext.symbol.observable');
6
6
  require('../../modules/esnext.symbol.pattern-match');
7
+ // TODO: Remove from `core-js@4`
7
8
  require('../../modules/esnext.symbol.replace-all');
@@ -1,3 +1,4 @@
1
+ // TODO: Remove from `core-js@4`
1
2
  require('../../modules/esnext.symbol.replace-all');
2
3
  var WrappedWellKnownSymbolModule = require('../../internals/wrapped-well-known-symbol');
3
4
 
@@ -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.3.5',
7
+ version: '3.3.6',
8
8
  mode: IS_PURE ? 'pure' : 'global',
9
9
  copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
10
10
  });
@@ -24,6 +24,7 @@ var setSpecies = require('../internals/set-species');
24
24
  var definePropertyModule = require('../internals/object-define-property');
25
25
  var getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');
26
26
  var InternalStateModule = require('../internals/internal-state');
27
+ var inheritIfRequired = require('../internals/inherit-if-required');
27
28
 
28
29
  var getInternalState = InternalStateModule.get;
29
30
  var setInternalState = InternalStateModule.set;
@@ -180,14 +181,16 @@ if (DESCRIPTORS) {
180
181
  } else if (TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS) {
181
182
  TypedArrayConstructor = wrapper(function (dummy, data, typedArrayOffset, $length) {
182
183
  anInstance(dummy, TypedArrayConstructor, CONSTRUCTOR_NAME);
183
- if (!isObject(data)) return new NativeTypedArrayConstructor(toIndex(data));
184
- if (isArrayBuffer(data)) return $length !== undefined
185
- ? new NativeTypedArrayConstructor(data, toOffset(typedArrayOffset, BYTES), $length)
186
- : typedArrayOffset !== undefined
187
- ? new NativeTypedArrayConstructor(data, toOffset(typedArrayOffset, BYTES))
188
- : new NativeTypedArrayConstructor(data);
189
- if (isTypedArray(data)) return fromList(TypedArrayConstructor, data);
190
- return typedArrayFrom.call(TypedArrayConstructor, data);
184
+ return inheritIfRequired(function () {
185
+ if (!isObject(data)) return new NativeTypedArrayConstructor(toIndex(data));
186
+ if (isArrayBuffer(data)) return $length !== undefined
187
+ ? new NativeTypedArrayConstructor(data, toOffset(typedArrayOffset, BYTES), $length)
188
+ : typedArrayOffset !== undefined
189
+ ? new NativeTypedArrayConstructor(data, toOffset(typedArrayOffset, BYTES))
190
+ : new NativeTypedArrayConstructor(data);
191
+ if (isTypedArray(data)) return fromList(TypedArrayConstructor, data);
192
+ return typedArrayFrom.call(TypedArrayConstructor, data);
193
+ }(), dummy, TypedArrayConstructor);
191
194
  });
192
195
 
193
196
  if (setPrototypeOf) setPrototypeOf(TypedArrayConstructor, TypedArray);
@@ -10,8 +10,11 @@ if (v8) {
10
10
  match = v8.split('.');
11
11
  version = match[0] + match[1];
12
12
  } else if (userAgent) {
13
- match = userAgent.match(/Chrome\/(\d+)/);
14
- if (match) version = match[1];
13
+ match = userAgent.match(/Edge\/(\d+)/);
14
+ if (!match || match[1] >= 74) {
15
+ match = userAgent.match(/Chrome\/(\d+)/);
16
+ if (match) version = match[1];
17
+ }
15
18
  }
16
19
 
17
20
  module.exports = version && +version;
@@ -2,6 +2,7 @@ var $ = require('../internals/export');
2
2
 
3
3
  // `Math.iaddh` method
4
4
  // https://gist.github.com/BrendanEich/4294d5c212a6d2254703
5
+ // TODO: Remove from `core-js@4`
5
6
  $({ target: 'Math', stat: true }, {
6
7
  iaddh: function iaddh(x0, x1, y0, y1) {
7
8
  var $x0 = x0 >>> 0;
@@ -2,6 +2,7 @@ var $ = require('../internals/export');
2
2
 
3
3
  // `Math.imulh` method
4
4
  // https://gist.github.com/BrendanEich/4294d5c212a6d2254703
5
+ // TODO: Remove from `core-js@4`
5
6
  $({ target: 'Math', stat: true }, {
6
7
  imulh: function imulh(u, v) {
7
8
  var UINT16 = 0xFFFF;
@@ -2,6 +2,7 @@ var $ = require('../internals/export');
2
2
 
3
3
  // `Math.isubh` method
4
4
  // https://gist.github.com/BrendanEich/4294d5c212a6d2254703
5
+ // TODO: Remove from `core-js@4`
5
6
  $({ target: 'Math', stat: true }, {
6
7
  isubh: function isubh(x0, x1, y0, y1) {
7
8
  var $x0 = x0 >>> 0;
@@ -2,6 +2,7 @@ var $ = require('../internals/export');
2
2
 
3
3
  // `Math.umulh` method
4
4
  // https://gist.github.com/BrendanEich/4294d5c212a6d2254703
5
+ // TODO: Remove from `core-js@4`
5
6
  $({ target: 'Math', stat: true }, {
6
7
  umulh: function umulh(u, v) {
7
8
  var UINT16 = 0xFFFF;
@@ -325,7 +325,7 @@ if (!USE_NATIVE_URL && typeof $fetch == 'function' && typeof Headers == 'functio
325
325
  if (isObject(init)) {
326
326
  body = init.body;
327
327
  if (classof(body) === URL_SEARCH_PARAMS) {
328
- headers = new Headers(init.headers);
328
+ headers = init.headers ? new Headers(init.headers) : new Headers();
329
329
  if (!headers.has('content-type')) {
330
330
  headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8');
331
331
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "core-js",
3
3
  "description": "Standard library",
4
- "version": "3.3.5",
4
+ "version": "3.3.6",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/zloirock/core-js.git"