polyfill-library 4.6.0 → 4.7.0

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -4,10 +4,10 @@ All notable changes to this project will be documented in this file. Dates are d
4
4
 
5
5
  Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6
6
 
7
- #### [v4.6.0](https://github.com/Financial-Times/polyfill-library/compare/v4.6.0...v4.6.0)
7
+ #### [v4.7.0](https://github.com/Financial-Times/polyfill-library/compare/v4.7.0...v4.7.0)
8
8
 
9
- #### v4.6.0
9
+ #### v4.7.0
10
10
 
11
- > 13 January 2023
11
+ > 6 February 2023
12
12
 
13
- - prepare 4.6.0 [`#1260`](https://github.com/Financial-Times/polyfill-library/pull/1260)
13
+ - prepare v4.7.0 [`#1277`](https://github.com/Financial-Times/polyfill-library/pull/1277)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "polyfill-library",
3
- "version": "4.6.0",
3
+ "version": "4.7.0",
4
4
  "description": "A polyfill combinator",
5
5
  "main": "lib/index.js",
6
6
  "contributors": [
@@ -0,0 +1 @@
1
+ {"aliases":["default-3.4","default-3.5","default-3.6","default"],"dependencies":["DocumentFragment.prototype.append"],"docs":"https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/replaceChildren","spec":"http://dom.spec.whatwg.org/#dom-parentnode-replacechildren","browsers":{"android":"*","bb":"*","chrome":"<86","edge":"*","edge_mob":"*","firefox":"<78","firefox_mob":"<79","ie":"*","ie_mob":"*","opera":"<72","op_mob":"<61","op_mini":"*","safari":"<14.0","ios_saf":"<14.0","samsung_mob":"<14.0"},"detectSource":"\"DocumentFragment\"in self&&\"replaceChildren\"in DocumentFragment.prototype\n","baseDir":"DocumentFragment/prototype/replaceChildren","hasTests":true,"isTestable":true,"isPublic":true,"size":244}
@@ -0,0 +1 @@
1
+ !function(t){function e(){for(;this.firstChild;)this.removeChild(this.firstChild);this.append.apply(this,arguments)}document.createDocumentFragment().constructor.prototype.replaceChildren=e,t.DocumentFragment.prototype.replaceChildren=e}(self);
@@ -0,0 +1,15 @@
1
+
2
+ // DocumentFragment.prototype.replaceChildren
3
+ (function (global) {
4
+ function replaceChildren() {
5
+ while (this.firstChild) {
6
+ this.removeChild(this.firstChild);
7
+ }
8
+ this.append.apply(this, arguments);
9
+ }
10
+
11
+ var fragmentProto = document.createDocumentFragment().constructor.prototype;
12
+ fragmentProto.replaceChildren = replaceChildren;
13
+
14
+ global.DocumentFragment.prototype.replaceChildren = replaceChildren;
15
+ }(self));
@@ -0,0 +1 @@
1
+ {"aliases":["default-3.4","default-3.5","default-3.6","default"],"dependencies":["Element.prototype.append"],"docs":"https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceChildren","spec":"http://dom.spec.whatwg.org/#dom-parentnode-replacechildren","browsers":{"android":"*","bb":"*","chrome":"<86","edge":"*","edge_mob":"*","firefox":"<78","firefox_mob":"<79","ie":"*","ie_mob":"*","opera":"<72","op_mob":"<61","op_mini":"*","safari":"<14.0","ios_saf":"<14.0","samsung_mob":"<14.0"},"detectSource":"\"Element\"in self&&\"replaceChildren\"in Element.prototype\n","baseDir":"Element/prototype/replaceChildren","hasTests":true,"isTestable":true,"isPublic":true,"size":173}
@@ -0,0 +1 @@
1
+ Document.prototype.replaceChildren=Element.prototype.replaceChildren=function e(){for(;this.firstChild;)this.removeChild(this.firstChild);this.append.apply(this,arguments)};
@@ -0,0 +1,8 @@
1
+
2
+ // Element.prototype.replaceChildren
3
+ Document.prototype.replaceChildren = Element.prototype.replaceChildren = function replaceChildren() {
4
+ while (this.firstChild) {
5
+ this.removeChild(this.firstChild);
6
+ }
7
+ this.append.apply(this, arguments);
8
+ };
@@ -1 +1 @@
1
- {"aliases":["es6","es2015","default-3.6","default"],"dependencies":["_ESAbstract.CreateMethodProperty","_ESAbstract.CreateIterResultObject","_ESAbstract.GetMethod","_ESAbstract.GetIterator","_ESAbstract.IsCallable","_ESAbstract.IteratorClose","_ESAbstract.IteratorComplete","_ESAbstract.IteratorNext","_ESAbstract.IteratorStep","_ESAbstract.IteratorValue","_ESAbstract.OrdinaryCreateFromConstructor","_ESAbstract.SameValueZero","_ESAbstract.Type","Symbol","Symbol.iterator","Symbol.species","Symbol.toStringTag","Object.isExtensible"],"notes":["The test suite for this polyfill is derived from work of Andrea Giammarchi which is [published under an MIT licence](https://github.com/WebReflection/es6-collections)"],"docs":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map","browsers":{"android":"<5.1","bb":"10 - *","chrome":"<49","edge":"<15","firefox":"<51","firefox_mob":"<51","ie":"*","ie_mob":"*","opera":"<36","op_mob":"<36","op_mini":"*","safari":"<10.0","ios_saf":"<10.0","samsung_mob":"<5.0"},"detectSource":"\"Map\"in self&&function(t){try{var n=new t.Map([[1,1],[2,2]])\nreturn 0===t.Map.length&&2===n.size&&\"Symbol\"in t&&\"iterator\"in t.Symbol&&\"function\"==typeof n[t.Symbol.iterator]&&\"toStringTag\"in t.Symbol&&void 0!==n[t.Symbol.toStringTag]}catch(t){return!1}}(self)\n","baseDir":"Map","hasTests":true,"isTestable":true,"isPublic":true,"size":7438}
1
+ {"aliases":["es6","es2015","default-3.6","default"],"dependencies":["_ESAbstract.CreateMethodProperty","_ESAbstract.CreateIterResultObject","_ESAbstract.GetMethod","_ESAbstract.GetIterator","_ESAbstract.IsCallable","_ESAbstract.IteratorClose","_ESAbstract.IteratorComplete","_ESAbstract.IteratorNext","_ESAbstract.IteratorStep","_ESAbstract.IteratorValue","_ESAbstract.OrdinaryCreateFromConstructor","_ESAbstract.SameValueZero","_ESAbstract.Type","Symbol","Symbol.iterator","Symbol.species","Symbol.toStringTag","Object.isExtensible"],"notes":["The test suite for this polyfill is derived from work of Andrea Giammarchi which is [published under an MIT licence](https://github.com/WebReflection/es6-collections)"],"docs":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map","browsers":{"android":"<5.1","bb":"10 - *","chrome":"<49","edge":"<15","firefox":"<51","firefox_mob":"<51","ie":"*","ie_mob":"*","opera":"<36","op_mob":"<36","op_mini":"*","safari":"<10.0","ios_saf":"<10.0","samsung_mob":"<5.0"},"detectSource":"\"Map\"in self&&function(t){try{var n=new t.Map([[1,1],[2,2]])\nreturn 0===t.Map.length&&2===n.size&&\"Symbol\"in t&&\"iterator\"in t.Symbol&&\"function\"==typeof n[t.Symbol.iterator]&&\"toStringTag\"in t.Symbol&&void 0!==n[t.Symbol.toStringTag]}catch(t){return!1}}(self)\n","baseDir":"Map","hasTests":true,"isTestable":true,"isPublic":true,"size":7486}
@@ -1 +1 @@
1
- !function(e){function t(e,t){if("object"!==Type(e))throw new TypeError("createMapIterator called on incompatible receiver "+Object.prototype.toString.call(e));if(!0!==e._es6Map)throw new TypeError("createMapIterator called on incompatible receiver "+Object.prototype.toString.call(e));var r=Object.create(y);return Object.defineProperty(r,"[[Map]]",{configurable:!0,enumerable:!1,writable:!0,value:e}),Object.defineProperty(r,"[[MapNextIndex]]",{configurable:!0,enumerable:!1,writable:!0,value:0}),Object.defineProperty(r,"[[MapIterationKind]]",{configurable:!0,enumerable:!1,writable:!0,value:t}),r}var r=0,o=Symbol("meta_"+(1e8*Math.random()+"").replace(".","")),a=function(e){if("object"==typeof e?null!==e:"function"==typeof e){if(!Object.isExtensible(e))return!1;if(!Object.prototype.hasOwnProperty.call(e,o)){var t=typeof e+"-"+ ++r;Object.defineProperty(e,o,{configurable:!1,enumerable:!1,writable:!1,value:t})}return e[o]}return""+e},i=function(e,t){var r=a(t);if(!1===r)return p(e,t);var o=e._table[r];return void 0!==o&&o},p=function(e,t){for(var r=0;r<e._keys.length;r++){var o=e._keys[r];if(o!==l&&SameValueZero(o,t))return r}return!1},n=function(e,t,r){var o=a(t);return!1!==o&&(!1===r?delete e._table[o]:e._table[o]=r,!0)},l=Symbol("undef"),c=function e(){if(!(this instanceof e))throw new TypeError('Constructor Map requires "new"');var t=OrdinaryCreateFromConstructor(this,e.prototype,{_table:{},_keys:[],_values:[],_size:0,_es6Map:!0}),r=arguments.length>0?arguments[0]:void 0;if(null===r||void 0===r)return t;var o=t.set;if(!IsCallable(o))throw new TypeError("Map.prototype.set is not a function");try{for(var a=GetIterator(r);;){var i=IteratorStep(a);if(!1===i)return t;var p=IteratorValue(i);if("object"!==Type(p))try{throw new TypeError("Iterator value "+p+" is not an entry object")}catch(e){return IteratorClose(a,e)}try{var n=p[0],l=p[1];o.call(t,n,l)}catch(e){return IteratorClose(a,e)}}}catch(e){if(Array.isArray(r)||"[object Arguments]"===Object.prototype.toString.call(r)){var c,y=r.length;for(c=0;c<y;c++)o.call(t,r[c][0],r[c][1])}}return t};Object.defineProperty(c,"prototype",{configurable:!1,enumerable:!1,writable:!1,value:{}}),Object.defineProperty(c,Symbol.species,{configurable:!0,enumerable:!1,get:function(){return this},set:void 0}),CreateMethodProperty(c.prototype,"clear",function e(){var t=this;if("object"!==Type(t))throw new TypeError("Method Map.prototype.clear called on incompatible receiver "+Object.prototype.toString.call(t));if(!0!==t._es6Map)throw new TypeError("Method Map.prototype.clear called on incompatible receiver "+Object.prototype.toString.call(t));for(var r=t._keys,o=0;o<r.length;o++)t._keys[o]=l,t._values[o]=l;this._size=0,this._table={}}),CreateMethodProperty(c.prototype,"constructor",c),CreateMethodProperty(c.prototype,"delete",function(e){var t=this;if("object"!==Type(t))throw new TypeError("Method Map.prototype.clear called on incompatible receiver "+Object.prototype.toString.call(t));if(!0!==t._es6Map)throw new TypeError("Method Map.prototype.clear called on incompatible receiver "+Object.prototype.toString.call(t));var r=i(t,e);if(!1!==r){var o=t._keys[r];if(o!==l&&SameValueZero(o,e))return this._keys[r]=l,this._values[r]=l,this._size=--this._size,n(this,e,!1),!0}return!1}),CreateMethodProperty(c.prototype,"entries",function e(){return t(this,"key+value")}),CreateMethodProperty(c.prototype,"forEach",function(e){var t=this;if("object"!==Type(t))throw new TypeError("Method Map.prototype.forEach called on incompatible receiver "+Object.prototype.toString.call(t));if(!0!==t._es6Map)throw new TypeError("Method Map.prototype.forEach called on incompatible receiver "+Object.prototype.toString.call(t));if(!IsCallable(e))throw new TypeError(Object.prototype.toString.call(e)+" is not a function.");if(arguments[1])var r=arguments[1];for(var o=t._keys,a=0;a<o.length;a++)t._keys[a]!==l&&t._values[a]!==l&&e.call(r,t._values[a],t._keys[a],t)}),CreateMethodProperty(c.prototype,"get",function e(t){var r=this;if("object"!==Type(r))throw new TypeError("Method Map.prototype.get called on incompatible receiver "+Object.prototype.toString.call(r));if(!0!==r._es6Map)throw new TypeError("Method Map.prototype.get called on incompatible receiver "+Object.prototype.toString.call(r));var o=i(r,t);if(!1!==o){var a=r._keys[o];if(a!==l&&SameValueZero(a,t))return r._values[o]}}),CreateMethodProperty(c.prototype,"has",function e(t){var r=this;if("object"!=typeof r)throw new TypeError("Method Map.prototype.has called on incompatible receiver "+Object.prototype.toString.call(r));if(!0!==r._es6Map)throw new TypeError("Method Map.prototype.has called on incompatible receiver "+Object.prototype.toString.call(r));var o=i(r,t);if(!1!==o){var a=r._keys[o];if(a!==l&&SameValueZero(a,t))return!0}return!1}),CreateMethodProperty(c.prototype,"keys",function e(){return t(this,"key")}),CreateMethodProperty(c.prototype,"set",function e(t,r){var o=this;if("object"!==Type(o))throw new TypeError("Method Map.prototype.set called on incompatible receiver "+Object.prototype.toString.call(o));if(!0!==o._es6Map)throw new TypeError("Method Map.prototype.set called on incompatible receiver "+Object.prototype.toString.call(o));var a=i(o,t);if(!1!==a)o._values[a]=r;else{-0===t&&(t=0);var p={"[[Key]]":t,"[[Value]]":r};o._keys.push(p["[[Key]]"]),o._values.push(p["[[Value]]"]),n(o,t,o._keys.length-1),++o._size}return o}),Object.defineProperty(c.prototype,"size",{configurable:!0,enumerable:!1,get:function(){var e=this;if("object"!==Type(e))throw new TypeError("Method Map.prototype.size called on incompatible receiver "+Object.prototype.toString.call(e));if(!0!==e._es6Map)throw new TypeError("Method Map.prototype.size called on incompatible receiver "+Object.prototype.toString.call(e));return this._size},set:void 0}),CreateMethodProperty(c.prototype,"values",function e(){return t(this,"value")}),CreateMethodProperty(c.prototype,Symbol.iterator,c.prototype.entries),Object.defineProperty(c.prototype,Symbol.toStringTag,{value:"Map",writable:!1,enumerable:!1,configurable:!0}),"name"in c||Object.defineProperty(c,"name",{configurable:!0,enumerable:!1,writable:!1,value:"Map"});var y={};Object.defineProperty(y,"isMapIterator",{configurable:!1,enumerable:!1,writable:!1,value:!0}),CreateMethodProperty(y,"next",function e(){var t=this;if("object"!==Type(t))throw new TypeError("Method %MapIteratorPrototype%.next called on incompatible receiver "+Object.prototype.toString.call(t));if(!t.isMapIterator)throw new TypeError("Method %MapIteratorPrototype%.next called on incompatible receiver "+Object.prototype.toString.call(t));var r=t["[[Map]]"],o=t["[[MapNextIndex]]"],a=t["[[MapIterationKind]]"];if(void 0===r)return CreateIterResultObject(void 0,!0);if(!r._es6Map)throw new Error(Object.prototype.toString.call(r)+" has a [[MapData]] internal slot.");for(var i=r._keys,p=i.length;o<p;){var n=Object.create(null);if(n["[[Key]]"]=r._keys[o],n["[[Value]]"]=r._values[o],o+=1,t["[[MapNextIndex]]"]=o,n["[[Key]]"]!==l){if("key"===a)var c=n["[[Key]]"];else if("value"===a)c=n["[[Value]]"];else{if("key+value"!==a)throw new Error;c=[n["[[Key]]"],n["[[Value]]"]]}return CreateIterResultObject(c,!1)}}return t["[[Map]]"]=void 0,CreateIterResultObject(void 0,!0)}),Object.defineProperty(y,Symbol.toStringTag,{value:"Map Iterator",writable:!1,enumerable:!1,configurable:!0}),CreateMethodProperty(y,Symbol.iterator,function e(){return this}),CreateMethodProperty(e,"Map",c)}(self);
1
+ !function(e){function t(e,t){if("object"!==Type(e))throw new TypeError("createMapIterator called on incompatible receiver "+Object.prototype.toString.call(e));if(!0!==e._es6Map)throw new TypeError("createMapIterator called on incompatible receiver "+Object.prototype.toString.call(e));var r=Object.create(y);return Object.defineProperty(r,"[[Map]]",{configurable:!0,enumerable:!1,writable:!0,value:e}),Object.defineProperty(r,"[[MapNextIndex]]",{configurable:!0,enumerable:!1,writable:!0,value:0}),Object.defineProperty(r,"[[MapIterationKind]]",{configurable:!0,enumerable:!1,writable:!0,value:t}),r}var r=0,o=Symbol("meta_"+(1e8*Math.random()+"").replace(".","")),a=function(e){if("object"==typeof e?null!==e:"function"==typeof e){if(!Object.isExtensible(e))return!1;if(!Object.prototype.hasOwnProperty.call(e,o)){var t=typeof e+"-"+ ++r;Object.defineProperty(e,o,{configurable:!1,enumerable:!1,writable:!1,value:t})}return e[o]}return typeof e+"_f1cc2551-7df7-4319-ba53-5b263a78a257_"+e},i=function(e,t){var r=a(t);if(!1===r)return p(e,t);var o=e._table[r];return void 0!==o&&o},p=function(e,t){for(var r=0;r<e._keys.length;r++){var o=e._keys[r];if(o!==l&&SameValueZero(o,t))return r}return!1},n=function(e,t,r){var o=a(t);return!1!==o&&(!1===r?delete e._table[o]:e._table[o]=r,!0)},l=Symbol("undef"),c=function e(){if(!(this instanceof e))throw new TypeError('Constructor Map requires "new"');var t=OrdinaryCreateFromConstructor(this,e.prototype,{_table:{},_keys:[],_values:[],_size:0,_es6Map:!0}),r=arguments.length>0?arguments[0]:void 0;if(null===r||void 0===r)return t;var o=t.set;if(!IsCallable(o))throw new TypeError("Map.prototype.set is not a function");try{for(var a=GetIterator(r);;){var i=IteratorStep(a);if(!1===i)return t;var p=IteratorValue(i);if("object"!==Type(p))try{throw new TypeError("Iterator value "+p+" is not an entry object")}catch(e){return IteratorClose(a,e)}try{var n=p[0],l=p[1];o.call(t,n,l)}catch(e){return IteratorClose(a,e)}}}catch(e){if(Array.isArray(r)||"[object Arguments]"===Object.prototype.toString.call(r)){var c,y=r.length;for(c=0;c<y;c++)o.call(t,r[c][0],r[c][1])}}return t};Object.defineProperty(c,"prototype",{configurable:!1,enumerable:!1,writable:!1,value:{}}),Object.defineProperty(c,Symbol.species,{configurable:!0,enumerable:!1,get:function(){return this},set:void 0}),CreateMethodProperty(c.prototype,"clear",function e(){var t=this;if("object"!==Type(t))throw new TypeError("Method Map.prototype.clear called on incompatible receiver "+Object.prototype.toString.call(t));if(!0!==t._es6Map)throw new TypeError("Method Map.prototype.clear called on incompatible receiver "+Object.prototype.toString.call(t));for(var r=t._keys,o=0;o<r.length;o++)t._keys[o]=l,t._values[o]=l;this._size=0,this._table={}}),CreateMethodProperty(c.prototype,"constructor",c),CreateMethodProperty(c.prototype,"delete",function(e){var t=this;if("object"!==Type(t))throw new TypeError("Method Map.prototype.clear called on incompatible receiver "+Object.prototype.toString.call(t));if(!0!==t._es6Map)throw new TypeError("Method Map.prototype.clear called on incompatible receiver "+Object.prototype.toString.call(t));var r=i(t,e);if(!1!==r){var o=t._keys[r];if(o!==l&&SameValueZero(o,e))return this._keys[r]=l,this._values[r]=l,this._size=--this._size,n(this,e,!1),!0}return!1}),CreateMethodProperty(c.prototype,"entries",function e(){return t(this,"key+value")}),CreateMethodProperty(c.prototype,"forEach",function(e){var t=this;if("object"!==Type(t))throw new TypeError("Method Map.prototype.forEach called on incompatible receiver "+Object.prototype.toString.call(t));if(!0!==t._es6Map)throw new TypeError("Method Map.prototype.forEach called on incompatible receiver "+Object.prototype.toString.call(t));if(!IsCallable(e))throw new TypeError(Object.prototype.toString.call(e)+" is not a function.");if(arguments[1])var r=arguments[1];for(var o=t._keys,a=0;a<o.length;a++)t._keys[a]!==l&&t._values[a]!==l&&e.call(r,t._values[a],t._keys[a],t)}),CreateMethodProperty(c.prototype,"get",function e(t){var r=this;if("object"!==Type(r))throw new TypeError("Method Map.prototype.get called on incompatible receiver "+Object.prototype.toString.call(r));if(!0!==r._es6Map)throw new TypeError("Method Map.prototype.get called on incompatible receiver "+Object.prototype.toString.call(r));var o=i(r,t);if(!1!==o){var a=r._keys[o];if(a!==l&&SameValueZero(a,t))return r._values[o]}}),CreateMethodProperty(c.prototype,"has",function e(t){var r=this;if("object"!=typeof r)throw new TypeError("Method Map.prototype.has called on incompatible receiver "+Object.prototype.toString.call(r));if(!0!==r._es6Map)throw new TypeError("Method Map.prototype.has called on incompatible receiver "+Object.prototype.toString.call(r));var o=i(r,t);if(!1!==o){var a=r._keys[o];if(a!==l&&SameValueZero(a,t))return!0}return!1}),CreateMethodProperty(c.prototype,"keys",function e(){return t(this,"key")}),CreateMethodProperty(c.prototype,"set",function e(t,r){var o=this;if("object"!==Type(o))throw new TypeError("Method Map.prototype.set called on incompatible receiver "+Object.prototype.toString.call(o));if(!0!==o._es6Map)throw new TypeError("Method Map.prototype.set called on incompatible receiver "+Object.prototype.toString.call(o));var a=i(o,t);if(!1!==a)o._values[a]=r;else{-0===t&&(t=0);var p={"[[Key]]":t,"[[Value]]":r};o._keys.push(p["[[Key]]"]),o._values.push(p["[[Value]]"]),n(o,t,o._keys.length-1),++o._size}return o}),Object.defineProperty(c.prototype,"size",{configurable:!0,enumerable:!1,get:function(){var e=this;if("object"!==Type(e))throw new TypeError("Method Map.prototype.size called on incompatible receiver "+Object.prototype.toString.call(e));if(!0!==e._es6Map)throw new TypeError("Method Map.prototype.size called on incompatible receiver "+Object.prototype.toString.call(e));return this._size},set:void 0}),CreateMethodProperty(c.prototype,"values",function e(){return t(this,"value")}),CreateMethodProperty(c.prototype,Symbol.iterator,c.prototype.entries),Object.defineProperty(c.prototype,Symbol.toStringTag,{value:"Map",writable:!1,enumerable:!1,configurable:!0}),"name"in c||Object.defineProperty(c,"name",{configurable:!0,enumerable:!1,writable:!1,value:"Map"});var y={};Object.defineProperty(y,"isMapIterator",{configurable:!1,enumerable:!1,writable:!1,value:!0}),CreateMethodProperty(y,"next",function e(){var t=this;if("object"!==Type(t))throw new TypeError("Method %MapIteratorPrototype%.next called on incompatible receiver "+Object.prototype.toString.call(t));if(!t.isMapIterator)throw new TypeError("Method %MapIteratorPrototype%.next called on incompatible receiver "+Object.prototype.toString.call(t));var r=t["[[Map]]"],o=t["[[MapNextIndex]]"],a=t["[[MapIterationKind]]"];if(void 0===r)return CreateIterResultObject(void 0,!0);if(!r._es6Map)throw new Error(Object.prototype.toString.call(r)+" has a [[MapData]] internal slot.");for(var i=r._keys,p=i.length;o<p;){var n=Object.create(null);if(n["[[Key]]"]=r._keys[o],n["[[Value]]"]=r._values[o],o+=1,t["[[MapNextIndex]]"]=o,n["[[Key]]"]!==l){if("key"===a)var c=n["[[Key]]"];else if("value"===a)c=n["[[Value]]"];else{if("key+value"!==a)throw new Error;c=[n["[[Key]]"],n["[[Value]]"]]}return CreateIterResultObject(c,!1)}}return t["[[Map]]"]=void 0,CreateIterResultObject(void 0,!0)}),Object.defineProperty(y,Symbol.toStringTag,{value:"Map Iterator",writable:!1,enumerable:!1,configurable:!0}),CreateMethodProperty(y,Symbol.iterator,function e(){return this}),CreateMethodProperty(e,"Map",c)}(self);
@@ -33,8 +33,11 @@
33
33
  // Return previously defined hashed key
34
34
  return recordKey[_metaKey];
35
35
  }
36
- // If this is just a primitive, we can cast it to a string and return it
37
- return ''+recordKey;
36
+ // If this is just a primitive:
37
+ // - prepend the type
38
+ // - add a unique marker
39
+ // - cast to a string
40
+ return (typeof recordKey) + '_f1cc2551-7df7-4319-ba53-5b263a78a257_' + recordKey;
38
41
  };
39
42
 
40
43
  /**