Skip to content

Commit

Permalink
fix IE11 WeakMap frozen keys after a69f577
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Aug 1, 2017
1 parent 09f45b6 commit a41dd09
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion client/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -3466,7 +3466,7 @@ var $WeakMap = module.exports = __webpack_require__(62)(WEAK_MAP, wrapper, metho

// IE11 WeakMap frozen keys fix
if (fails(function () { return new $WeakMap().set((Object.freeze || Object)(tmp), 7).get(tmp) != 7; })) {
InternalMap = weak.getConstructor(wrapper);
InternalMap = weak.getConstructor(wrapper, WEAK_MAP);
assign(InternalMap.prototype, methods);
meta.NEED = true;
each(['delete', 'has', 'get', 'set'], function (key) {
Expand Down
2 changes: 1 addition & 1 deletion client/core.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client/core.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client/library.js
Original file line number Diff line number Diff line change
Expand Up @@ -3344,7 +3344,7 @@ var $WeakMap = module.exports = __webpack_require__(57)(WEAK_MAP, wrapper, metho

// IE11 WeakMap frozen keys fix
if (fails(function () { return new $WeakMap().set((Object.freeze || Object)(tmp), 7).get(tmp) != 7; })) {
InternalMap = weak.getConstructor(wrapper);
InternalMap = weak.getConstructor(wrapper, WEAK_MAP);
assign(InternalMap.prototype, methods);
meta.NEED = true;
each(['delete', 'has', 'get', 'set'], function (key) {
Expand Down
2 changes: 1 addition & 1 deletion client/library.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client/library.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client/shim.js
Original file line number Diff line number Diff line change
Expand Up @@ -3388,7 +3388,7 @@ var $WeakMap = module.exports = __webpack_require__(59)(WEAK_MAP, wrapper, metho

// IE11 WeakMap frozen keys fix
if (fails(function () { return new $WeakMap().set((Object.freeze || Object)(tmp), 7).get(tmp) != 7; })) {
InternalMap = weak.getConstructor(wrapper);
InternalMap = weak.getConstructor(wrapper, WEAK_MAP);
assign(InternalMap.prototype, methods);
meta.NEED = true;
each(['delete', 'has', 'get', 'set'], function (key) {
Expand Down
2 changes: 1 addition & 1 deletion client/shim.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client/shim.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion library/modules/es6.weak-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ var $WeakMap = module.exports = require('./_collection')(WEAK_MAP, wrapper, meth

// IE11 WeakMap frozen keys fix
if (fails(function () { return new $WeakMap().set((Object.freeze || Object)(tmp), 7).get(tmp) != 7; })) {
InternalMap = weak.getConstructor(wrapper);
InternalMap = weak.getConstructor(wrapper, WEAK_MAP);
assign(InternalMap.prototype, methods);
meta.NEED = true;
each(['delete', 'has', 'get', 'set'], function (key) {
Expand Down
2 changes: 1 addition & 1 deletion modules/es6.weak-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ var $WeakMap = module.exports = require('./_collection')(WEAK_MAP, wrapper, meth

// IE11 WeakMap frozen keys fix
if (fails(function () { return new $WeakMap().set((Object.freeze || Object)(tmp), 7).get(tmp) != 7; })) {
InternalMap = weak.getConstructor(wrapper);
InternalMap = weak.getConstructor(wrapper, WEAK_MAP);
assign(InternalMap.prototype, methods);
meta.NEED = true;
each(['delete', 'has', 'get', 'set'], function (key) {
Expand Down

0 comments on commit a41dd09

Please sign in to comment.