core-js 3.15.1 → 3.15.2
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/README.md +1 -2
- package/internals/internal-metadata.js +1 -1
- package/internals/shared.js +1 -1
- package/modules/es.promise.js +3 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
# core-js
|
|
2
2
|
|
|
3
|
-
[](https://github.com/zloirock/core-js/actions)
|
|
3
|
+
[](https://opencollective.com/core-js) [](https://www.npmjs.com/package/core-js) [](https://npm-stat.com/charts.html?package=core-js&package=core-js-pure&package=core-js-compat&from=2014-11-18) [](https://npm-stat.com/charts.html?package=core-js&package=core-js-pure&package=core-js-compat&from=2014-11-18) [](https://github.com/zloirock/core-js/actions) [](https://github.com/zloirock/core-js/actions)
|
|
5
4
|
|
|
6
5
|
> Modular standard library for JavaScript. Includes polyfills for [ECMAScript up to 2021](https://github.com/zloirock/core-js#ecmascript): [promises](https://github.com/zloirock/core-js#ecmascript-promise), [symbols](https://github.com/zloirock/core-js#ecmascript-symbol), [collections](https://github.com/zloirock/core-js#ecmascript-collections), iterators, [typed arrays](https://github.com/zloirock/core-js#ecmascript-typed-arrays), many other features, [ECMAScript proposals](https://github.com/zloirock/core-js#ecmascript-proposals), [some cross-platform WHATWG / W3C features and proposals](#web-standards) like [`URL`](https://github.com/zloirock/core-js#url-and-urlsearchparams). You can load only required features or use it without global namespace pollution.
|
|
7
6
|
|
|
@@ -15,7 +15,7 @@ var isExtensible = Object.isExtensible || function () {
|
|
|
15
15
|
|
|
16
16
|
var setMetadata = function (it) {
|
|
17
17
|
defineProperty(it, METADATA, { value: {
|
|
18
|
-
objectID: 'O' +
|
|
18
|
+
objectID: 'O' + id++, // object ID
|
|
19
19
|
weakData: {} // weak collections IDs
|
|
20
20
|
} });
|
|
21
21
|
};
|
package/internals/shared.js
CHANGED
|
@@ -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.15.
|
|
7
|
+
version: '3.15.2',
|
|
8
8
|
mode: IS_PURE ? 'pure' : 'global',
|
|
9
9
|
copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
|
|
10
10
|
});
|
package/modules/es.promise.js
CHANGED
|
@@ -55,7 +55,8 @@ var SUBCLASSING = false;
|
|
|
55
55
|
var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
|
|
56
56
|
|
|
57
57
|
var FORCED = isForced(PROMISE, function () {
|
|
58
|
-
var
|
|
58
|
+
var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(PromiseConstructor);
|
|
59
|
+
var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(PromiseConstructor);
|
|
59
60
|
// V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
|
|
60
61
|
// https://bugs.chromium.org/p/chromium/issues/detail?id=830565
|
|
61
62
|
// We can't detect it synchronously, so just check versions
|
|
@@ -65,7 +66,7 @@ var FORCED = isForced(PROMISE, function () {
|
|
|
65
66
|
// We can't use @@species feature detection in V8 since it causes
|
|
66
67
|
// deoptimization and performance degradation
|
|
67
68
|
// https://github.com/zloirock/core-js/issues/679
|
|
68
|
-
if (V8_VERSION >= 51 && /native code/.test(
|
|
69
|
+
if (V8_VERSION >= 51 && /native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) return false;
|
|
69
70
|
// Detect correctness of subclassing with @@species support
|
|
70
71
|
var promise = new PromiseConstructor(function (resolve) { resolve(1); });
|
|
71
72
|
var FakePromise = function (exec) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "core-js",
|
|
3
3
|
"description": "Standard library",
|
|
4
|
-
"version": "3.15.
|
|
4
|
+
"version": "3.15.2",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/zloirock/core-js.git",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"scripts": {
|
|
56
56
|
"postinstall": "node -e \"try{require('./postinstall')}catch(e){}\""
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "ea6ee013f5960f859d90e4136e91b035560ba72e"
|
|
59
59
|
}
|