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
@@ -939,10 +939,10 @@ var store = __webpack_require__(36);
939
939
( module . exports = function ( key , value ) {
940
940
return store [ key ] || ( store [ key ] = value !== undefined ? value : { } ) ;
941
941
} ) ( 'versions' , [ ] ) . push ( {
942
- version : '3.27.0 ' ,
942
+ version : '3.27.1 ' ,
943
943
mode : IS_PURE ? 'pure' : 'global' ,
944
944
copyright : '© 2014-2022 Denis Pushkarev (zloirock.ru)' ,
945
- license : 'https://github.com/zloirock/core-js/blob/v3.27.0 /LICENSE' ,
945
+ license : 'https://github.com/zloirock/core-js/blob/v3.27.1 /LICENSE' ,
946
946
source : 'https://github.com/zloirock/core-js'
947
947
} ) ;
948
948
@@ -7831,17 +7831,34 @@ __webpack_require__(242);
7831
7831
7832
7832
"use strict" ;
7833
7833
7834
+ var FREEZING = __webpack_require__ ( 238 ) ;
7834
7835
var global = __webpack_require__ ( 3 ) ;
7835
7836
var uncurryThis = __webpack_require__ ( 13 ) ;
7836
7837
var defineBuiltIns = __webpack_require__ ( 166 ) ;
7837
7838
var InternalMetadataModule = __webpack_require__ ( 232 ) ;
7838
7839
var collection = __webpack_require__ ( 231 ) ;
7839
7840
var collectionWeak = __webpack_require__ ( 243 ) ;
7840
7841
var isObject = __webpack_require__ ( 19 ) ;
7841
- var isExtensible = __webpack_require__ ( 236 ) ;
7842
7842
var enforceInternalState = __webpack_require__ ( 51 ) . enforce ;
7843
+ var fails = __webpack_require__ ( 6 ) ;
7843
7844
var NATIVE_WEAK_MAP = __webpack_require__ ( 52 ) ;
7844
7845
7846
+ var $Object = Object ;
7847
+ // eslint-disable-next-line es/no-array-isarray -- safe
7848
+ var isArray = Array . isArray ;
7849
+ // eslint-disable-next-line es/no-object-isextensible -- safe
7850
+ var isExtensible = $Object . isExtensible ;
7851
+ // eslint-disable-next-line es/no-object-isfrozen -- safe
7852
+ var isFrozen = $Object . isFrozen ;
7853
+ // eslint-disable-next-line es/no-object-issealed -- safe
7854
+ var isSealed = $Object . isSealed ;
7855
+ // eslint-disable-next-line es/no-object-freeze -- safe
7856
+ var freeze = $Object . freeze ;
7857
+ // eslint-disable-next-line es/no-object-seal -- safe
7858
+ var seal = $Object . seal ;
7859
+
7860
+ var FROZEN = { } ;
7861
+ var SEALED = { } ;
7845
7862
var IS_IE11 = ! global . ActiveXObject && 'ActiveXObject' in global ;
7846
7863
var InternalWeakMap ;
7847
7864
@@ -7854,18 +7871,27 @@ var wrapper = function (init) {
7854
7871
// `WeakMap` constructor
7855
7872
// https://tc39.es/ecma262/#sec-weakmap-constructor
7856
7873
var $WeakMap = collection ( 'WeakMap' , wrapper , collectionWeak ) ;
7874
+ var WeakMapPrototype = $WeakMap . prototype ;
7875
+ var nativeSet = uncurryThis ( WeakMapPrototype . set ) ;
7876
+
7877
+ // Chakra Edge bug: adding frozen arrays to WeakMap unfreeze them
7878
+ var hasMSEdgeFreezingBug = function ( ) {
7879
+ return FREEZING && fails ( function ( ) {
7880
+ var frozenArray = freeze ( [ ] ) ;
7881
+ nativeSet ( new $WeakMap ( ) , frozenArray , 1 ) ;
7882
+ return ! isFrozen ( frozenArray ) ;
7883
+ } ) ;
7884
+ } ;
7857
7885
7858
7886
// IE11 WeakMap frozen keys fix
7859
7887
// We can't use feature detection because it crash some old IE builds
7860
7888
// https://github.com/zloirock/core-js/issues/485
7861
- if ( NATIVE_WEAK_MAP && IS_IE11 ) {
7889
+ if ( NATIVE_WEAK_MAP ) if ( IS_IE11 ) {
7862
7890
InternalWeakMap = collectionWeak . getConstructor ( wrapper , 'WeakMap' , true ) ;
7863
7891
InternalMetadataModule . enable ( ) ;
7864
- var WeakMapPrototype = $WeakMap . prototype ;
7865
7892
var nativeDelete = uncurryThis ( WeakMapPrototype [ 'delete' ] ) ;
7866
7893
var nativeHas = uncurryThis ( WeakMapPrototype . has ) ;
7867
7894
var nativeGet = uncurryThis ( WeakMapPrototype . get ) ;
7868
- var nativeSet = uncurryThis ( WeakMapPrototype . set ) ;
7869
7895
defineBuiltIns ( WeakMapPrototype , {
7870
7896
'delete' : function ( key ) {
7871
7897
if ( isObject ( key ) && ! isExtensible ( key ) ) {
@@ -7897,6 +7923,21 @@ if (NATIVE_WEAK_MAP && IS_IE11) {
7897
7923
return this ;
7898
7924
}
7899
7925
} ) ;
7926
+ // Chakra Edge frozen keys fix
7927
+ } else if ( hasMSEdgeFreezingBug ( ) ) {
7928
+ defineBuiltIns ( WeakMapPrototype , {
7929
+ set : function set ( key , value ) {
7930
+ var arrayIntegrityLevel ;
7931
+ if ( isArray ( key ) ) {
7932
+ if ( isFrozen ( key ) ) arrayIntegrityLevel = FROZEN ;
7933
+ else if ( isSealed ( key ) ) arrayIntegrityLevel = SEALED ;
7934
+ }
7935
+ nativeSet ( this , key , value ) ;
7936
+ if ( arrayIntegrityLevel == FROZEN ) freeze ( key ) ;
7937
+ if ( arrayIntegrityLevel == SEALED ) seal ( key ) ;
7938
+ return this ;
7939
+ }
7940
+ } ) ;
7900
7941
}
7901
7942
7902
7943
0 commit comments