core-js 3.22.6 → 3.22.7
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.
|
@@ -29,11 +29,12 @@ var makeBuiltIn = module.exports = function (value, name, options) {
|
|
|
29
29
|
if (CONFIGURABLE_LENGTH && options && hasOwn(options, 'arity') && value.length !== options.arity) {
|
|
30
30
|
defineProperty(value, 'length', { value: options.arity });
|
|
31
31
|
}
|
|
32
|
-
|
|
33
|
-
if (
|
|
34
|
-
defineProperty(value, 'prototype', { writable: false });
|
|
35
|
-
|
|
36
|
-
|
|
32
|
+
try {
|
|
33
|
+
if (options && hasOwn(options, 'constructor') && options.constructor) {
|
|
34
|
+
if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false });
|
|
35
|
+
// in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
|
|
36
|
+
} else if (value.prototype) value.prototype = undefined;
|
|
37
|
+
} catch (error) { /* empty */ }
|
|
37
38
|
var state = enforceInternalState(value);
|
|
38
39
|
if (!hasOwn(state, 'source')) {
|
|
39
40
|
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
package/internals/shared.js
CHANGED
|
@@ -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.22.
|
|
7
|
+
version: '3.22.7',
|
|
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.22.
|
|
10
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.22.7/LICENSE',
|
|
11
11
|
source: 'https://github.com/zloirock/core-js'
|
|
12
12
|
});
|