core-js-bundle 3.27.0 → 3.27.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.
package/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
- * core-js 3.27.0
2
+ * core-js 3.27.1
3
3
  * © 2014-2022 Denis Pushkarev (zloirock.ru)
4
- * license: https://github.com/zloirock/core-js/blob/v3.27.0/LICENSE
4
+ * license: https://github.com/zloirock/core-js/blob/v3.27.1/LICENSE
5
5
  * source: https://github.com/zloirock/core-js
6
6
  */
7
7
  !function (undefined) { 'use strict'; /******/ (function(modules) { // webpackBootstrap
@@ -1385,10 +1385,10 @@ var store = __webpack_require__(37);
1385
1385
  (module.exports = function (key, value) {
1386
1386
  return store[key] || (store[key] = value !== undefined ? value : {});
1387
1387
  })('versions', []).push({
1388
- version: '3.27.0',
1388
+ version: '3.27.1',
1389
1389
  mode: IS_PURE ? 'pure' : 'global',
1390
1390
  copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
1391
- license: 'https://github.com/zloirock/core-js/blob/v3.27.0/LICENSE',
1391
+ license: 'https://github.com/zloirock/core-js/blob/v3.27.1/LICENSE',
1392
1392
  source: 'https://github.com/zloirock/core-js'
1393
1393
  });
1394
1394
 
@@ -14407,6 +14407,7 @@ __webpack_require__(469);
14407
14407
 
14408
14408
  "use strict";
14409
14409
 
14410
+ var FREEZING = __webpack_require__(234);
14410
14411
  var global = __webpack_require__(4);
14411
14412
  var uncurryThis = __webpack_require__(14);
14412
14413
  var defineBuiltIns = __webpack_require__(198);
@@ -14414,10 +14415,26 @@ var InternalMetadataModule = __webpack_require__(231);
14414
14415
  var collection = __webpack_require__(230);
14415
14416
  var collectionWeak = __webpack_require__(470);
14416
14417
  var isObject = __webpack_require__(20);
14417
- var isExtensible = __webpack_require__(232);
14418
14418
  var enforceInternalState = __webpack_require__(52).enforce;
14419
+ var fails = __webpack_require__(7);
14419
14420
  var NATIVE_WEAK_MAP = __webpack_require__(53);
14420
14421
 
14422
+ var $Object = Object;
14423
+ // eslint-disable-next-line es/no-array-isarray -- safe
14424
+ var isArray = Array.isArray;
14425
+ // eslint-disable-next-line es/no-object-isextensible -- safe
14426
+ var isExtensible = $Object.isExtensible;
14427
+ // eslint-disable-next-line es/no-object-isfrozen -- safe
14428
+ var isFrozen = $Object.isFrozen;
14429
+ // eslint-disable-next-line es/no-object-issealed -- safe
14430
+ var isSealed = $Object.isSealed;
14431
+ // eslint-disable-next-line es/no-object-freeze -- safe
14432
+ var freeze = $Object.freeze;
14433
+ // eslint-disable-next-line es/no-object-seal -- safe
14434
+ var seal = $Object.seal;
14435
+
14436
+ var FROZEN = {};
14437
+ var SEALED = {};
14421
14438
  var IS_IE11 = !global.ActiveXObject && 'ActiveXObject' in global;
14422
14439
  var InternalWeakMap;
14423
14440
 
@@ -14430,18 +14447,27 @@ var wrapper = function (init) {
14430
14447
  // `WeakMap` constructor
14431
14448
  // https://tc39.es/ecma262/#sec-weakmap-constructor
14432
14449
  var $WeakMap = collection('WeakMap', wrapper, collectionWeak);
14450
+ var WeakMapPrototype = $WeakMap.prototype;
14451
+ var nativeSet = uncurryThis(WeakMapPrototype.set);
14452
+
14453
+ // Chakra Edge bug: adding frozen arrays to WeakMap unfreeze them
14454
+ var hasMSEdgeFreezingBug = function () {
14455
+ return FREEZING && fails(function () {
14456
+ var frozenArray = freeze([]);
14457
+ nativeSet(new $WeakMap(), frozenArray, 1);
14458
+ return !isFrozen(frozenArray);
14459
+ });
14460
+ };
14433
14461
 
14434
14462
  // IE11 WeakMap frozen keys fix
14435
14463
  // We can't use feature detection because it crash some old IE builds
14436
14464
  // https://github.com/zloirock/core-js/issues/485
14437
- if (NATIVE_WEAK_MAP && IS_IE11) {
14465
+ if (NATIVE_WEAK_MAP) if (IS_IE11) {
14438
14466
  InternalWeakMap = collectionWeak.getConstructor(wrapper, 'WeakMap', true);
14439
14467
  InternalMetadataModule.enable();
14440
- var WeakMapPrototype = $WeakMap.prototype;
14441
14468
  var nativeDelete = uncurryThis(WeakMapPrototype['delete']);
14442
14469
  var nativeHas = uncurryThis(WeakMapPrototype.has);
14443
14470
  var nativeGet = uncurryThis(WeakMapPrototype.get);
14444
- var nativeSet = uncurryThis(WeakMapPrototype.set);
14445
14471
  defineBuiltIns(WeakMapPrototype, {
14446
14472
  'delete': function (key) {
14447
14473
  if (isObject(key) && !isExtensible(key)) {
@@ -14473,6 +14499,21 @@ if (NATIVE_WEAK_MAP && IS_IE11) {
14473
14499
  return this;
14474
14500
  }
14475
14501
  });
14502
+ // Chakra Edge frozen keys fix
14503
+ } else if (hasMSEdgeFreezingBug()) {
14504
+ defineBuiltIns(WeakMapPrototype, {
14505
+ set: function set(key, value) {
14506
+ var arrayIntegrityLevel;
14507
+ if (isArray(key)) {
14508
+ if (isFrozen(key)) arrayIntegrityLevel = FROZEN;
14509
+ else if (isSealed(key)) arrayIntegrityLevel = SEALED;
14510
+ }
14511
+ nativeSet(this, key, value);
14512
+ if (arrayIntegrityLevel == FROZEN) freeze(key);
14513
+ if (arrayIntegrityLevel == SEALED) seal(key);
14514
+ return this;
14515
+ }
14516
+ });
14476
14517
  }
14477
14518
 
14478
14519