core-js 3.8.0 → 3.8.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.
@@ -41,13 +41,24 @@ var TypedArrayConstructorsList = {
41
41
  Float64Array: 8
42
42
  };
43
43
 
44
+ var BigIntArrayConstructorsList = {
45
+ BigInt64Array: 8,
46
+ BigUint64Array: 8
47
+ };
48
+
44
49
  var isView = function isView(it) {
50
+ if (!isObject(it)) return false;
45
51
  var klass = classof(it);
46
- return klass === 'DataView' || has(TypedArrayConstructorsList, klass);
52
+ return klass === 'DataView'
53
+ || has(TypedArrayConstructorsList, klass)
54
+ || has(BigIntArrayConstructorsList, klass);
47
55
  };
48
56
 
49
57
  var isTypedArray = function (it) {
50
- return isObject(it) && has(TypedArrayConstructorsList, classof(it));
58
+ if (!isObject(it)) return false;
59
+ var klass = classof(it);
60
+ return has(TypedArrayConstructorsList, klass)
61
+ || has(BigIntArrayConstructorsList, klass);
51
62
  };
52
63
 
53
64
  var aTypedArray = function (it) {
@@ -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.0',
7
+ version: '3.8.1',
8
8
  mode: IS_PURE ? 'pure' : 'global',
9
9
  copyright: '© 2020 Denis Pushkarev (zloirock.ru)'
10
10
  });
@@ -66,7 +66,9 @@ if (isForced(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumb
66
66
  'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +
67
67
  // ES2015 (in case, if modules with ES2015 Number statics required before):
68
68
  'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' +
69
- 'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger'
69
+ 'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,' +
70
+ // ESNext
71
+ 'fromString,range'
70
72
  ).split(','), j = 0, key; keys.length > j; j++) {
71
73
  if (has(NativeNumber, key = keys[j]) && !has(NumberWrapper, key)) {
72
74
  defineProperty(NumberWrapper, key, getOwnPropertyDescriptor(NativeNumber, key));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "core-js",
3
3
  "description": "Standard library",
4
- "version": "3.8.0",
4
+ "version": "3.8.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/zloirock/core-js.git"