polyfill-library 4.2.0 → 4.3.0

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.
Files changed (52) hide show
  1. package/CHANGELOG.md +4 -4
  2. package/package.json +10 -11
  3. package/polyfills/__dist/Array.prototype.@@iterator/meta.json +1 -1
  4. package/polyfills/__dist/ArrayBuffer.prototype.@@toStringTag/meta.json +1 -0
  5. package/polyfills/__dist/ArrayBuffer.prototype.@@toStringTag/min.js +1 -0
  6. package/polyfills/__dist/ArrayBuffer.prototype.@@toStringTag/raw.js +19 -0
  7. package/polyfills/__dist/HTMLTemplateElement/meta.json +1 -1
  8. package/polyfills/__dist/HTMLTemplateElement/min.js +1 -1
  9. package/polyfills/__dist/HTMLTemplateElement/raw.js +25 -598
  10. package/polyfills/__dist/Map/meta.json +1 -1
  11. package/polyfills/__dist/Map/min.js +1 -1
  12. package/polyfills/__dist/Map/raw.js +12 -0
  13. package/polyfills/__dist/Promise/meta.json +1 -1
  14. package/polyfills/__dist/Promise/min.js +1 -1
  15. package/polyfills/__dist/Promise/raw.js +10 -0
  16. package/polyfills/__dist/Set/meta.json +1 -1
  17. package/polyfills/__dist/Set/min.js +1 -1
  18. package/polyfills/__dist/Set/raw.js +12 -0
  19. package/polyfills/__dist/String.prototype.@@iterator/meta.json +1 -1
  20. package/polyfills/__dist/Symbol.toStringTag/meta.json +1 -1
  21. package/polyfills/__dist/TypedArray.prototype.@@iterator/meta.json +1 -0
  22. package/polyfills/__dist/TypedArray.prototype.@@iterator/min.js +1 -0
  23. package/polyfills/__dist/TypedArray.prototype.@@iterator/raw.js +22 -0
  24. package/polyfills/__dist/TypedArray.prototype.@@toStringTag/meta.json +1 -0
  25. package/polyfills/__dist/TypedArray.prototype.@@toStringTag/min.js +1 -0
  26. package/polyfills/__dist/TypedArray.prototype.@@toStringTag/raw.js +91 -0
  27. package/polyfills/__dist/TypedArray.prototype.entries/meta.json +1 -0
  28. package/polyfills/__dist/TypedArray.prototype.entries/min.js +1 -0
  29. package/polyfills/__dist/TypedArray.prototype.entries/raw.js +38 -0
  30. package/polyfills/__dist/TypedArray.prototype.keys/meta.json +1 -0
  31. package/polyfills/__dist/TypedArray.prototype.keys/min.js +1 -0
  32. package/polyfills/__dist/TypedArray.prototype.keys/raw.js +38 -0
  33. package/polyfills/__dist/TypedArray.prototype.toLocaleString/meta.json +1 -0
  34. package/polyfills/__dist/TypedArray.prototype.toLocaleString/min.js +1 -0
  35. package/polyfills/__dist/TypedArray.prototype.toLocaleString/raw.js +31 -0
  36. package/polyfills/__dist/TypedArray.prototype.toString/meta.json +1 -0
  37. package/polyfills/__dist/TypedArray.prototype.toString/min.js +1 -0
  38. package/polyfills/__dist/TypedArray.prototype.toString/raw.js +29 -0
  39. package/polyfills/__dist/TypedArray.prototype.values/meta.json +1 -0
  40. package/polyfills/__dist/TypedArray.prototype.values/min.js +1 -0
  41. package/polyfills/__dist/TypedArray.prototype.values/raw.js +43 -0
  42. package/polyfills/__dist/WeakMap/meta.json +1 -1
  43. package/polyfills/__dist/WeakSet/meta.json +1 -1
  44. package/polyfills/__dist/WeakSet/min.js +1 -1
  45. package/polyfills/__dist/WeakSet/raw.js +6 -0
  46. package/polyfills/__dist/_ArrayIterator/meta.json +1 -1
  47. package/polyfills/__dist/_ArrayIterator/min.js +1 -1
  48. package/polyfills/__dist/_ArrayIterator/raw.js +8 -1
  49. package/polyfills/__dist/_StringIterator/meta.json +1 -1
  50. package/polyfills/__dist/_StringIterator/min.js +1 -1
  51. package/polyfills/__dist/_StringIterator/raw.js +8 -1
  52. package/polyfills/__dist/aliases.json +1 -1
@@ -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},p=function(e,t){var r=a(t);if(!1===r)return i(e,t);var o=e._table[r];return void 0!==o&&o},i=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 p=IteratorStep(a);if(!1===p)return t;var i=IteratorValue(p);if("object"!==Type(i))try{throw new TypeError("Iterator value "+i+" is not an entry object")}catch(e){return IteratorClose(a,e)}try{var n=i[0],l=i[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=p(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=p(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=p(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=p(o,t);if(!1!==a)o._values[a]=r;else{-0===t&&(t=0);var i={"[[Key]]":t,"[[Value]]":r};o._keys.push(i["[[Key]]"]),o._values.push(i["[[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),"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 p=r._keys,i=p.length;o<i;){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)}),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""+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);
@@ -481,6 +481,12 @@
481
481
  // 23.1.3.13. Map.prototype [ @@toStringTag ]
482
482
  // The initial value of the @@toStringTag property is the String value "Map".
483
483
  // This property has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: true }.
484
+ Object.defineProperty(Map.prototype, Symbol.toStringTag, {
485
+ value: 'Map',
486
+ writable: false,
487
+ enumerable: false,
488
+ configurable: true
489
+ });
484
490
 
485
491
  // Polyfill.io - Safari 8 implements Map.name but as a non-configurable property, which means it would throw an error if we try and configure it here.
486
492
  if (!('name' in Map)) {
@@ -615,6 +621,12 @@
615
621
  // 23.1.5.2.2 %MapIteratorPrototype% [ @@toStringTag ]
616
622
  // The initial value of the @@toStringTag property is the String value "Map Iterator".
617
623
  // This property has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: true }.
624
+ Object.defineProperty(MapIteratorPrototype, Symbol.toStringTag, {
625
+ value: 'Map Iterator',
626
+ writable: false,
627
+ enumerable: false,
628
+ configurable: true
629
+ });
618
630
 
619
631
  CreateMethodProperty(MapIteratorPrototype, Symbol.iterator, function iterator() {
620
632
  return this;
@@ -1 +1 @@
1
- {"aliases":["modernizr:promises","caniuse:promises","blissfuljs","default-3.4","default-3.5","default-3.6","default","es6","es2015"],"dependencies":["Symbol.toStringTag"],"notes":[],"license":"MIT","docs":"https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Promise","repo":"https://github.com/ysmood/yaku","browsers":{"android":"*","bb":"* - 10","chrome":"<32","edge":"<13","edge_mob":"<13","firefox":"6 - 28","firefox_mob":"6 - 28","ie":"*","ie_mob":"*","opera":"<20","op_mob":"*","op_mini":"*","safari":"<8.0","ios_saf":"<8.0","samsung_mob":"<2"},"detectSource":"\"Promise\"in self\n","baseDir":"Promise","hasTests":true,"isTestable":true,"isPublic":true,"size":4312}
1
+ {"aliases":["modernizr:promises","caniuse:promises","blissfuljs","default-3.4","default-3.5","default-3.6","default","es6","es2015"],"dependencies":["Symbol.toStringTag"],"notes":[],"license":"MIT","docs":"https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Promise","repo":"https://github.com/ysmood/yaku","browsers":{"android":"*","bb":"* - 10","chrome":"<32","edge":"<13","edge_mob":"<13","firefox":"6 - 28","firefox_mob":"6 - 28","ie":"*","ie_mob":"*","opera":"<20","op_mob":"*","op_mini":"*","safari":"<8.0","ios_saf":"<8.0","samsung_mob":"<2"},"detectSource":"\"Promise\"in self\n","baseDir":"Promise","hasTests":true,"isTestable":true,"isPublic":true,"size":4430}
@@ -1 +1 @@
1
- !function(){"use strict";function n(){return tn[q][B]||D}function t(n){return n&&"object"==typeof n}function e(n){return"function"==typeof n}function r(n,t){return n instanceof t}function o(n){return r(n,A)}function i(n,t,e){if(!t(n))throw a(e)}function u(){try{return b.apply(R,arguments)}catch(n){return Y.e=n,Y}}function c(n,t){return b=n,R=t,u}function f(n,t){function e(){for(var e=0;e<o;)t(r[e],r[e+1]),r[e++]=T,r[e++]=T;o=0,r.length>n&&(r.length=n)}var r=L(n),o=0;return function(n,t){r[o++]=n,r[o++]=t,2===o&&tn.nextTick(e)}}function s(n,t){var o,i,u,f,s=0;if(!n)throw a(N);var l=n[tn[q][z]];if(e(l))i=l.call(n);else{if(!e(n.next)){if(r(n,L)){for(o=n.length;s<o;)t(n[s],s++);return s}throw a(N)}i=n}for(;!(u=i.next()).done;)if((f=c(t)(u.value,s++))===Y)throw e(i[G])&&i[G](),f.e;return s}function a(n){return new TypeError(n)}function l(n){return(n?"":Q)+(new A).stack}function h(n,t){var e="on"+n.toLowerCase(),r=F[e];E&&E.listeners(n).length?n===X?E.emit(n,t._v,t):E.emit(n,t):r?r({reason:t._v,promise:t}):tn[n](t._v,t)}function v(n){return n&&n._s}function _(n){if(v(n))return new n(Z);var t,r,o;return t=new n(function(n,e){if(t)throw a();r=n,o=e}),i(r,e),i(o,e),t}function d(n,t){var e=!1;return function(r){e||(e=!0,I&&(n[M]=l(!0)),t===U?g(n,r):y(n,t,r))}}function p(n,t,r,o){return e(r)&&(t._onFulfilled=r),e(o)&&(n[J]&&h(W,n),t._onRejected=o),I&&(t._p=n),n[n._c++]=t,n._s!==$&&rn(n,t),t}function m(n){if(n._umark)return!0;n._umark=!0;for(var t,e=0,r=n._c;e<r;)if(t=n[e++],t._onRejected||m(t))return!0}function w(n,t){function e(n){return r.push(n.replace(/^\s+|\s+$/g,""))}var r=[];return I&&(t[M]&&e(t[M]),function n(t){t&&K in t&&(n(t._next),e(t[K]+""),n(t._p))}(t)),(n&&n.stack?n.stack:n)+("\n"+r.join("\n")).replace(nn,"")}function j(n,t){return n(t)}function y(n,t,e){var r=0,i=n._c;if(n._s===$)for(n._s=t,n._v=e,t===O&&(I&&o(e)&&(e.longStack=w(e,n)),on(n));r<i;)rn(n,n[r++]);return n}function g(n,r){if(r===n&&r)return y(n,O,a(V)),n;if(r!==S&&(e(r)||t(r))){var o=c(k)(r);if(o===Y)return y(n,O,o.e),n;e(o)?(I&&v(r)&&(n._next=r),v(r)?x(n,r,o):tn.nextTick(function(){x(n,r,o)})):y(n,U,r)}else y(n,U,r);return n}function k(n){return n.then}function x(n,t,e){var r=c(e,t)(function(e){t&&(t=S,g(n,e))},function(e){t&&(t=S,y(n,O,e))});r===Y&&t&&(y(n,O,r.e),t=S)}var T,b,R,S=null,C="object"==typeof self,F=self,P=F.Promise,E=F.process,H=F.console,I=!0,L=Array,A=Error,O=1,U=2,$=3,q="Symbol",z="iterator",B="species",D=q+"("+B+")",G="return",J="_uh",K="_pt",M="_st",N="Invalid argument",Q="\nFrom previous ",V="Chaining cycle detected for promise",W="rejectionHandled",X="unhandledRejection",Y={e:S},Z=function(){},nn=/^.+\/node_modules\/yaku\/.+\n?/gm,tn=function(n){var r,o=this;if(!t(o)||o._s!==T)throw a("Invalid this");if(o._s=$,I&&(o[K]=l()),n!==Z){if(!e(n))throw a(N);r=c(n)(d(o,U),d(o,O)),r===Y&&y(o,O,r.e)}};tn.default=tn,function en(n,t){for(var e in t)n[e]=t[e]}(tn.prototype,{then:function(n,t){if(void 0===this._s)throw a();return p(this,_(tn.speciesConstructor(this,tn)),n,t)},catch:function(n){return this.then(T,n)},finally:function(n){return this.then(function(t){return tn.resolve(n()).then(function(){return t})},function(t){return tn.resolve(n()).then(function(){throw t})})},_c:0,_p:S}),tn.resolve=function(n){return v(n)?n:g(_(this),n)},tn.reject=function(n){return y(_(this),O,n)},tn.race=function(n){var t=this,e=_(t),r=function(n){y(e,U,n)},o=function(n){y(e,O,n)},i=c(s)(n,function(n){t.resolve(n).then(r,o)});return i===Y?t.reject(i.e):e},tn.all=function(n){function t(n){y(o,O,n)}var e,r=this,o=_(r),i=[];return(e=c(s)(n,function(n,u){r.resolve(n).then(function(n){i[u]=n,--e||y(o,U,i)},t)}))===Y?r.reject(e.e):(e||y(o,U,[]),o)},tn.Symbol=F[q]||{},c(function(){Object.defineProperty(tn,n(),{get:function(){return this}})})(),tn.speciesConstructor=function(t,e){var r=t.constructor;return r?r[n()]||e:e},tn.unhandledRejection=function(n,t){H&&H.error("Uncaught (in promise)",I?t.longStack:w(n,t))},tn.rejectionHandled=Z,tn.enableLongStackTrace=function(){I=!0},tn.nextTick=C?function(n){P?new P(function(n){n()}).then(n):setTimeout(n)}:E.nextTick,tn._s=1;var rn=f(999,function(n,t){var e,r;return(r=n._s!==O?t._onFulfilled:t._onRejected)===T?void y(t,n._s,n._v):(e=c(j)(r,n._v))===Y?void y(t,O,e.e):void g(t,e)}),on=f(9,function(n){m(n)||(n[J]=1,h(X,n))});F.Promise=tn}();
1
+ !function(){"use strict";function n(){return tn[q][B]||D}function t(n){return n&&"object"==typeof n}function e(n){return"function"==typeof n}function r(n,t){return n instanceof t}function o(n){return r(n,O)}function i(n,t,e){if(!t(n))throw a(e)}function u(){try{return T.apply(S,arguments)}catch(n){return Y.e=n,Y}}function c(n,t){return T=n,S=t,u}function f(n,t){function e(){for(var e=0;e<o;)t(r[e],r[e+1]),r[e++]=x,r[e++]=x;o=0,r.length>n&&(r.length=n)}var r=L(n),o=0;return function(n,t){r[o++]=n,r[o++]=t,2===o&&tn.nextTick(e)}}function s(n,t){var o,i,u,f,s=0;if(!n)throw a(N);var l=n[tn[q][z]];if(e(l))i=l.call(n);else{if(!e(n.next)){if(r(n,L)){for(o=n.length;s<o;)t(n[s],s++);return s}throw a(N)}i=n}for(;!(u=i.next()).done;)if((f=c(t)(u.value,s++))===Y)throw e(i[G])&&i[G](),f.e;return s}function a(n){return new TypeError(n)}function l(n){return(n?"":Q)+(new O).stack}function h(n,t){var e="on"+n.toLowerCase(),r=C[e];E&&E.listeners(n).length?n===X?E.emit(n,t._v,t):E.emit(n,t):r?r({reason:t._v,promise:t}):tn[n](t._v,t)}function v(n){return n&&n._s}function _(n){if(v(n))return new n(Z);var t,r,o;return t=new n(function(n,e){if(t)throw a();r=n,o=e}),i(r,e),i(o,e),t}function d(n,t){var e=!1;return function(r){e||(e=!0,I&&(n[M]=l(!0)),t===U?j(n,r):w(n,t,r))}}function p(n,t,r,o){return e(r)&&(t._onFulfilled=r),e(o)&&(n[J]&&h(W,n),t._onRejected=o),I&&(t._p=n),n[n._c++]=t,n._s!==$&&rn(n,t),t}function m(n){if(n._umark)return!0;n._umark=!0;for(var t,e=0,r=n._c;e<r;)if(t=n[e++],t._onRejected||m(t))return!0}function y(n,t){function e(n){return r.push(n.replace(/^\s+|\s+$/g,""))}var r=[];return I&&(t[M]&&e(t[M]),function n(t){t&&K in t&&(n(t._next),e(t[K]+""),n(t._p))}(t)),(n&&n.stack?n.stack:n)+("\n"+r.join("\n")).replace(nn,"")}function g(n,t){return n(t)}function w(n,t,e){var r=0,i=n._c;if(n._s===$)for(n._s=t,n._v=e,t===A&&(I&&o(e)&&(e.longStack=y(e,n)),on(n));r<i;)rn(n,n[r++]);return n}function j(n,r){if(r===n&&r)return w(n,A,a(V)),n;if(r!==P&&(e(r)||t(r))){var o=c(k)(r);if(o===Y)return w(n,A,o.e),n;e(o)?(I&&v(r)&&(n._next=r),v(r)?b(n,r,o):tn.nextTick(function(){b(n,r,o)})):w(n,U,r)}else w(n,U,r);return n}function k(n){return n.then}function b(n,t,e){var r=c(e,t)(function(e){t&&(t=P,j(n,e))},function(e){t&&(t=P,w(n,A,e))});r===Y&&t&&(w(n,A,r.e),t=P)}var x,T,S,P=null,R="object"==typeof self,C=self,F=C.Promise,E=C.process,H=C.console,I=!0,L=Array,O=Error,A=1,U=2,$=3,q="Symbol",z="iterator",B="species",D=q+"("+B+")",G="return",J="_uh",K="_pt",M="_st",N="Invalid argument",Q="\nFrom previous ",V="Chaining cycle detected for promise",W="rejectionHandled",X="unhandledRejection",Y={e:P},Z=function(){},nn=/^.+\/node_modules\/yaku\/.+\n?/gm,tn=function(n){var r,o=this;if(!t(o)||o._s!==x)throw a("Invalid this");if(o._s=$,I&&(o[K]=l()),n!==Z){if(!e(n))throw a(N);r=c(n)(d(o,U),d(o,A)),r===Y&&w(o,A,r.e)}};tn.default=tn,function en(n,t){for(var e in t)n[e]=t[e]}(tn.prototype,{then:function(n,t){if(void 0===this._s)throw a();return p(this,_(tn.speciesConstructor(this,tn)),n,t)},catch:function(n){return this.then(x,n)},finally:function(n){return this.then(function(t){return tn.resolve(n()).then(function(){return t})},function(t){return tn.resolve(n()).then(function(){throw t})})},_c:0,_p:P}),tn.resolve=function(n){return v(n)?n:j(_(this),n)},tn.reject=function(n){return w(_(this),A,n)},tn.race=function(n){var t=this,e=_(t),r=function(n){w(e,U,n)},o=function(n){w(e,A,n)},i=c(s)(n,function(n){t.resolve(n).then(r,o)});return i===Y?t.reject(i.e):e},tn.all=function(n){function t(n){w(o,A,n)}var e,r=this,o=_(r),i=[];return(e=c(s)(n,function(n,u){r.resolve(n).then(function(n){i[u]=n,--e||w(o,U,i)},t)}))===Y?r.reject(e.e):(e||w(o,U,[]),o)},tn.Symbol=C[q]||{},c(function(){Object.defineProperty(tn,n(),{get:function(){return this}})})(),tn.speciesConstructor=function(t,e){var r=t.constructor;return r?r[n()]||e:e},tn.unhandledRejection=function(n,t){H&&H.error("Uncaught (in promise)",I?t.longStack:y(n,t))},tn.rejectionHandled=Z,tn.enableLongStackTrace=function(){I=!0},tn.nextTick=R?function(n){F?new F(function(n){n()}).then(n):setTimeout(n)}:E.nextTick,tn._s=1;var rn=f(999,function(n,t){var e,r;return(r=n._s!==A?t._onFulfilled:t._onRejected)===x?void w(t,n._s,n._v):(e=c(g)(r,n._v))===Y?void w(t,A,e.e):void j(t,e)}),on=f(9,function(n){m(n)||(n[J]=1,h(X,n))});Object.defineProperty(tn.prototype,tn.Symbol.toStringTag,{value:"Promise",writable:!1,enumerable:!1,configurable:!0}),C.Promise=tn}();
@@ -875,5 +875,15 @@
875
875
  }
876
876
  }
877
877
 
878
+ // 27.2.5.5 Promise.prototype [ @@toStringTag ]
879
+ // The initial value of the @@toStringTag property is the String value "Promise".
880
+ // This property has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: true }.
881
+ Object.defineProperty(Yaku.prototype, Yaku.Symbol.toStringTag, {
882
+ value: 'Promise',
883
+ writable: false,
884
+ enumerable: false,
885
+ configurable: true
886
+ });
887
+
878
888
  root.Promise = Yaku;
879
889
  })();
@@ -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","Symbol","Symbol.iterator","Symbol.species"],"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)"],"browsers":{"android":"<5.1","bb":"10 - *","chrome":"<49","edge":"<13","firefox":"<36","firefox_mob":"<29","ie":"*","ie_mob":"*","opera":"<25","op_mob":"*","op_mini":"*","safari":"<9.0","ios_saf":"<9.0","samsung_mob":"<5"},"detectSource":"\"Set\"in self&&function(){try{var e=new self.Set([1,2])\nreturn 0===self.Set.length&&2===e.size&&\"Symbol\"in self&&\"iterator\"in self.Symbol&&\"function\"==typeof e[self.Symbol.iterator]}catch(e){return!1}}()\n","baseDir":"Set","hasTests":true,"isTestable":true,"isPublic":true,"size":5754}
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","Symbol","Symbol.iterator","Symbol.species","Symbol.toStringTag"],"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)"],"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"},"detectSource":"\"Set\"in self&&function(){try{var e=new self.Set([1,2])\nreturn 0===self.Set.length&&2===e.size&&\"Symbol\"in self&&\"iterator\"in self.Symbol&&\"function\"==typeof e[self.Symbol.iterator]&&\"toStringTag\"in self.Symbol&&void 0!==e[self.Symbol.toStringTag]}catch(e){return!1}}()\n","baseDir":"Set","hasTests":true,"isTestable":true,"isPublic":true,"size":5973}
@@ -1 +1 @@
1
- !function(e){function t(e,t){if("object"!=typeof e)throw new TypeError("createSetIterator called on incompatible receiver "+Object.prototype.toString.call(e));if(!0!==e._es6Set)throw new TypeError("createSetIterator called on incompatible receiver "+Object.prototype.toString.call(e));var r=Object.create(i);return Object.defineProperty(r,"[[IteratedSet]]",{configurable:!0,enumerable:!1,writable:!0,value:e}),Object.defineProperty(r,"[[SetNextIndex]]",{configurable:!0,enumerable:!1,writable:!0,value:0}),Object.defineProperty(r,"[[SetIterationKind]]",{configurable:!0,enumerable:!1,writable:!0,value:t}),r}var r=Symbol("undef"),o=function e(){if(!(this instanceof e))throw new TypeError('Constructor Set requires "new"');var t=OrdinaryCreateFromConstructor(this,e.prototype,{_values:[],_size:0,_es6Set:!0}),r=arguments.length>0?arguments[0]:void 0;if(null===r||void 0===r)return t;var o=t.add;if(!IsCallable(o))throw new TypeError("Set.prototype.add is not a function");try{for(var a=GetIterator(r);;){var i=IteratorStep(a);if(!1===i)return t;var n=IteratorValue(i);try{o.call(t,n)}catch(e){return IteratorClose(a,e)}}}catch(e){if(!Array.isArray(r)&&"[object Arguments]"!==Object.prototype.toString.call(r))throw e;var l,p=r.length;for(l=0;l<p;l++)o.call(t,r[l])}return t};Object.defineProperty(o,"prototype",{configurable:!1,enumerable:!1,writable:!1,value:{}}),Object.defineProperty(o,Symbol.species,{configurable:!0,enumerable:!1,get:function(){return this},set:void 0}),CreateMethodProperty(o.prototype,"add",function e(t){var o=this;if("object"!=typeof o)throw new TypeError("Method Set.prototype.add called on incompatible receiver "+Object.prototype.toString.call(o));if(!0!==o._es6Set)throw new TypeError("Method Set.prototype.add called on incompatible receiver "+Object.prototype.toString.call(o));for(var a=o._values,i=0;i<a.length;i++){var n=a[i];if(n!==r&&SameValueZero(n,t))return o}return 0===t&&1/t==-1/0&&(t=0),o._values.push(t),this._size=++this._size,o}),CreateMethodProperty(o.prototype,"clear",function e(){var t=this;if("object"!=typeof t)throw new TypeError("Method Set.prototype.clear called on incompatible receiver "+Object.prototype.toString.call(t));if(!0!==t._es6Set)throw new TypeError("Method Set.prototype.clear called on incompatible receiver "+Object.prototype.toString.call(t));for(var o=t._values,a=0;a<o.length;a++)o[a]=r;this._size=0}),CreateMethodProperty(o.prototype,"constructor",o),CreateMethodProperty(o.prototype,"delete",function(e){var t=this;if("object"!=typeof t)throw new TypeError("Method Set.prototype.delete called on incompatible receiver "+Object.prototype.toString.call(t));if(!0!==t._es6Set)throw new TypeError("Method Set.prototype.delete called on incompatible receiver "+Object.prototype.toString.call(t));for(var o=t._values,a=0;a<o.length;a++){var i=o[a];if(i!==r&&SameValueZero(i,e))return o[a]=r,this._size=--this._size,!0}return!1}),CreateMethodProperty(o.prototype,"entries",function e(){return t(this,"key+value")}),CreateMethodProperty(o.prototype,"forEach",function e(t){var o=this;if("object"!=typeof o)throw new TypeError("Method Set.prototype.forEach called on incompatible receiver "+Object.prototype.toString.call(o));if(!0!==o._es6Set)throw new TypeError("Method Set.prototype.forEach called on incompatible receiver "+Object.prototype.toString.call(o));if(!IsCallable(t))throw new TypeError(Object.prototype.toString.call(t)+" is not a function.");if(arguments[1])var a=arguments[1];for(var i=o._values,n=0;n<i.length;n++){var l=i[n];l!==r&&t.call(a,l,l,o)}}),CreateMethodProperty(o.prototype,"has",function e(t){var o=this;if("object"!=typeof o)throw new TypeError("Method Set.prototype.forEach called on incompatible receiver "+Object.prototype.toString.call(o));if(!0!==o._es6Set)throw new TypeError("Method Set.prototype.forEach called on incompatible receiver "+Object.prototype.toString.call(o));for(var a=o._values,i=0;i<a.length;i++){var n=a[i];if(n!==r&&SameValueZero(n,t))return!0}return!1});var a=function e(){return t(this,"value")};CreateMethodProperty(o.prototype,"values",a),CreateMethodProperty(o.prototype,"keys",a),Object.defineProperty(o.prototype,"size",{configurable:!0,enumerable:!1,get:function(){var e=this;if("object"!=typeof e)throw new TypeError("Method Set.prototype.size called on incompatible receiver "+Object.prototype.toString.call(e));if(!0!==e._es6Set)throw new TypeError("Method Set.prototype.size called on incompatible receiver "+Object.prototype.toString.call(e));for(var t=e._values,o=0,a=0;a<t.length;a++){t[a]!==r&&(o+=1)}return o},set:void 0}),CreateMethodProperty(o.prototype,Symbol.iterator,a),"name"in o||Object.defineProperty(o,"name",{configurable:!0,enumerable:!1,writable:!1,value:"Set"});var i={};Object.defineProperty(i,"isSetIterator",{configurable:!1,enumerable:!1,writable:!1,value:!0}),CreateMethodProperty(i,"next",function e(){var t=this;if("object"!=typeof t)throw new TypeError("Method %SetIteratorPrototype%.next called on incompatible receiver "+Object.prototype.toString.call(t));if(!t.isSetIterator)throw new TypeError("Method %SetIteratorPrototype%.next called on incompatible receiver "+Object.prototype.toString.call(t));var o=t["[[IteratedSet]]"],a=t["[[SetNextIndex]]"],i=t["[[SetIterationKind]]"];if(void 0===o)return CreateIterResultObject(void 0,!0);if(!o._es6Set)throw new Error(Object.prototype.toString.call(o)+" does not have [[SetData]] internal slot.");for(var n=o._values,l=n.length;a<l;){var p=n[a];if(a+=1,t["[[SetNextIndex]]"]=a,p!==r)return"key+value"===i?CreateIterResultObject([p,p],!1):CreateIterResultObject(p,!1)}return t["[[IteratedSet]]"]=void 0,CreateIterResultObject(void 0,!0)}),CreateMethodProperty(i,Symbol.iterator,function e(){return this}),CreateMethodProperty(e,"Set",o)}(self);
1
+ !function(e){function t(e,t){if("object"!=typeof e)throw new TypeError("createSetIterator called on incompatible receiver "+Object.prototype.toString.call(e));if(!0!==e._es6Set)throw new TypeError("createSetIterator called on incompatible receiver "+Object.prototype.toString.call(e));var r=Object.create(i);return Object.defineProperty(r,"[[IteratedSet]]",{configurable:!0,enumerable:!1,writable:!0,value:e}),Object.defineProperty(r,"[[SetNextIndex]]",{configurable:!0,enumerable:!1,writable:!0,value:0}),Object.defineProperty(r,"[[SetIterationKind]]",{configurable:!0,enumerable:!1,writable:!0,value:t}),r}var r=Symbol("undef"),o=function e(){if(!(this instanceof e))throw new TypeError('Constructor Set requires "new"');var t=OrdinaryCreateFromConstructor(this,e.prototype,{_values:[],_size:0,_es6Set:!0}),r=arguments.length>0?arguments[0]:void 0;if(null===r||void 0===r)return t;var o=t.add;if(!IsCallable(o))throw new TypeError("Set.prototype.add is not a function");try{for(var a=GetIterator(r);;){var i=IteratorStep(a);if(!1===i)return t;var n=IteratorValue(i);try{o.call(t,n)}catch(e){return IteratorClose(a,e)}}}catch(e){if(!Array.isArray(r)&&"[object Arguments]"!==Object.prototype.toString.call(r))throw e;var l,p=r.length;for(l=0;l<p;l++)o.call(t,r[l])}return t};Object.defineProperty(o,"prototype",{configurable:!1,enumerable:!1,writable:!1,value:{}}),Object.defineProperty(o,Symbol.species,{configurable:!0,enumerable:!1,get:function(){return this},set:void 0}),CreateMethodProperty(o.prototype,"add",function e(t){var o=this;if("object"!=typeof o)throw new TypeError("Method Set.prototype.add called on incompatible receiver "+Object.prototype.toString.call(o));if(!0!==o._es6Set)throw new TypeError("Method Set.prototype.add called on incompatible receiver "+Object.prototype.toString.call(o));for(var a=o._values,i=0;i<a.length;i++){var n=a[i];if(n!==r&&SameValueZero(n,t))return o}return 0===t&&1/t==-1/0&&(t=0),o._values.push(t),this._size=++this._size,o}),CreateMethodProperty(o.prototype,"clear",function e(){var t=this;if("object"!=typeof t)throw new TypeError("Method Set.prototype.clear called on incompatible receiver "+Object.prototype.toString.call(t));if(!0!==t._es6Set)throw new TypeError("Method Set.prototype.clear called on incompatible receiver "+Object.prototype.toString.call(t));for(var o=t._values,a=0;a<o.length;a++)o[a]=r;this._size=0}),CreateMethodProperty(o.prototype,"constructor",o),CreateMethodProperty(o.prototype,"delete",function(e){var t=this;if("object"!=typeof t)throw new TypeError("Method Set.prototype.delete called on incompatible receiver "+Object.prototype.toString.call(t));if(!0!==t._es6Set)throw new TypeError("Method Set.prototype.delete called on incompatible receiver "+Object.prototype.toString.call(t));for(var o=t._values,a=0;a<o.length;a++){var i=o[a];if(i!==r&&SameValueZero(i,e))return o[a]=r,this._size=--this._size,!0}return!1}),CreateMethodProperty(o.prototype,"entries",function e(){return t(this,"key+value")}),CreateMethodProperty(o.prototype,"forEach",function e(t){var o=this;if("object"!=typeof o)throw new TypeError("Method Set.prototype.forEach called on incompatible receiver "+Object.prototype.toString.call(o));if(!0!==o._es6Set)throw new TypeError("Method Set.prototype.forEach called on incompatible receiver "+Object.prototype.toString.call(o));if(!IsCallable(t))throw new TypeError(Object.prototype.toString.call(t)+" is not a function.");if(arguments[1])var a=arguments[1];for(var i=o._values,n=0;n<i.length;n++){var l=i[n];l!==r&&t.call(a,l,l,o)}}),CreateMethodProperty(o.prototype,"has",function e(t){var o=this;if("object"!=typeof o)throw new TypeError("Method Set.prototype.forEach called on incompatible receiver "+Object.prototype.toString.call(o));if(!0!==o._es6Set)throw new TypeError("Method Set.prototype.forEach called on incompatible receiver "+Object.prototype.toString.call(o));for(var a=o._values,i=0;i<a.length;i++){var n=a[i];if(n!==r&&SameValueZero(n,t))return!0}return!1});var a=function e(){return t(this,"value")};CreateMethodProperty(o.prototype,"values",a),CreateMethodProperty(o.prototype,"keys",a),Object.defineProperty(o.prototype,"size",{configurable:!0,enumerable:!1,get:function(){var e=this;if("object"!=typeof e)throw new TypeError("Method Set.prototype.size called on incompatible receiver "+Object.prototype.toString.call(e));if(!0!==e._es6Set)throw new TypeError("Method Set.prototype.size called on incompatible receiver "+Object.prototype.toString.call(e));for(var t=e._values,o=0,a=0;a<t.length;a++){t[a]!==r&&(o+=1)}return o},set:void 0}),CreateMethodProperty(o.prototype,Symbol.iterator,a),Object.defineProperty(o.prototype,Symbol.toStringTag,{value:"Set",writable:!1,enumerable:!1,configurable:!0}),"name"in o||Object.defineProperty(o,"name",{configurable:!0,enumerable:!1,writable:!1,value:"Set"});var i={};Object.defineProperty(i,"isSetIterator",{configurable:!1,enumerable:!1,writable:!1,value:!0}),CreateMethodProperty(i,"next",function e(){var t=this;if("object"!=typeof t)throw new TypeError("Method %SetIteratorPrototype%.next called on incompatible receiver "+Object.prototype.toString.call(t));if(!t.isSetIterator)throw new TypeError("Method %SetIteratorPrototype%.next called on incompatible receiver "+Object.prototype.toString.call(t));var o=t["[[IteratedSet]]"],a=t["[[SetNextIndex]]"],i=t["[[SetIterationKind]]"];if(void 0===o)return CreateIterResultObject(void 0,!0);if(!o._es6Set)throw new Error(Object.prototype.toString.call(o)+" does not have [[SetData]] internal slot.");for(var n=o._values,l=n.length;a<l;){var p=n[a];if(a+=1,t["[[SetNextIndex]]"]=a,p!==r)return"key+value"===i?CreateIterResultObject([p,p],!1):CreateIterResultObject(p,!1)}return t["[[IteratedSet]]"]=void 0,CreateIterResultObject(void 0,!0)}),Object.defineProperty(i,Symbol.toStringTag,{value:"Set Iterator",writable:!1,enumerable:!1,configurable:!0}),CreateMethodProperty(i,Symbol.iterator,function e(){return this}),CreateMethodProperty(e,"Set",o)}(self);
@@ -314,6 +314,12 @@
314
314
  // 23.2.3.12. Set.prototype [ @@toStringTag ]
315
315
  // The initial value of the @@toStringTag property is the String value "Set".
316
316
  // This property has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: true }.
317
+ Object.defineProperty(Set.prototype, Symbol.toStringTag, {
318
+ value: 'Set',
319
+ writable: false,
320
+ enumerable: false,
321
+ configurable: true
322
+ });
317
323
 
318
324
  // Polyfill.io - Safari 8 implements Set.name but as a non-configurable property, which means it would throw an error if we try and configure it here.
319
325
  if (!('name' in Set)) {
@@ -432,6 +438,12 @@
432
438
  // 23.2.5.2.2. %SetIteratorPrototype% [ @@toStringTag ]
433
439
  // The initial value of the @@toStringTag property is the String value "Set Iterator".
434
440
  // This property has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: true }.
441
+ Object.defineProperty(SetIteratorPrototype, Symbol.toStringTag, {
442
+ value: 'Set Iterator',
443
+ writable: false,
444
+ enumerable: false,
445
+ configurable: true
446
+ });
435
447
 
436
448
  CreateMethodProperty(SetIteratorPrototype, Symbol.iterator, function iterator() {
437
449
  return this;
@@ -1 +1 @@
1
- {"aliases":["es6","es2015"],"dependencies":["_ESAbstract.CreateMethodProperty","_ESAbstract.RequireObjectCoercible","_ESAbstract.ToString","_StringIterator","Symbol.iterator"],"spec":"https://tc39.github.io/ecma262/#sec-string.prototype-@@iterator","docs":"https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/String/@@iterator","browsers":{"android":"<5.1","chrome":"<49","edge":"<13","edge_mob":"<13","firefox":"<38","firefox_mob":"<38","ie":">=9","ie_mob":">=9","opera":"<36","safari":"<9.0","ios_saf":"<9.0","samsung_mob":"<5"},"detectSource":"\"Symbol\"in self&&\"iterator\"in self.Symbol&&!!String.prototype[self.Symbol.iterator]\n","baseDir":"String/prototype/@@iterator","hasTests":true,"isTestable":true,"isPublic":true,"size":145}
1
+ {"aliases":["es6","es2015"],"dependencies":["_ESAbstract.CreateMethodProperty","_ESAbstract.RequireObjectCoercible","_ESAbstract.ToString","_StringIterator","Symbol.iterator","Symbol.toStringTag"],"spec":"https://tc39.github.io/ecma262/#sec-string.prototype-@@iterator","docs":"https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/String/@@iterator","browsers":{"android":"<5.1","chrome":"<49","edge":"<13","edge_mob":"<13","firefox":"<38","firefox_mob":"<38","ie":">=9","ie_mob":">=9","opera":"<36","safari":"<9.0","ios_saf":"<9.0","samsung_mob":"<5"},"detectSource":"\"Symbol\"in self&&\"iterator\"in self.Symbol&&!!String.prototype[self.Symbol.iterator]\n","baseDir":"String/prototype/@@iterator","hasTests":true,"isTestable":true,"isPublic":true,"size":145}
@@ -1 +1 @@
1
- {"aliases":["es6","es2015"],"dependencies":["Symbol"],"license":"MIT","spec":"http://www.ecma-international.org/ecma-262/6.0/index.html#sec-symbol.tostringtag","docs":"https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Symbol","browsers":{"android":"*","bb":"10 - *","chrome":"<49","edge":"<13","edge_mob":"<13","firefox":"<51","ie":"*","ie_mob":"*","opera":"<37","safari":"<9.0","ios_saf":"<10.0","samsung_mob":"<5"},"detectSource":"\"Symbol\"in self&&\"toStringTag\"in self.Symbol\n","baseDir":"Symbol/toStringTag","hasTests":true,"isTestable":true,"isPublic":true,"size":74}
1
+ {"aliases":["es6","es2015"],"dependencies":["Symbol"],"license":"MIT","spec":"http://www.ecma-international.org/ecma-262/6.0/index.html#sec-symbol.tostringtag","docs":"https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Symbol","browsers":{"android":"*","bb":"10 - *","chrome":"<49","edge":"<15","edge_mob":"<15","firefox":"<51","ie":"*","ie_mob":"*","opera":"<36","op_mob":"<36","safari":"<10.0","ios_saf":"<10.0","samsung_mob":"<5"},"detectSource":"\"Symbol\"in self&&\"toStringTag\"in self.Symbol\n","baseDir":"Symbol/toStringTag","hasTests":true,"isTestable":true,"isPublic":true,"size":74}
@@ -0,0 +1 @@
1
+ {"aliases":["es6","es2015"],"dependencies":["_ESAbstract.CreateMethodProperty","ArrayBuffer","Symbol.iterator","TypedArray.prototype.values"],"spec":"https://tc39.es/ecma262/#sec-%typedarray%.prototype-@@iterator","docs":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/@@iterator","browsers":{"android":"*","chrome":"<38","firefox":"<36","ie":"*","ie_mob":"*","opera":"<25","op_mob":"<25","safari":"<10.0","ios_saf":"<10.0","samsung_mob":"<3"},"detectSource":"\"Symbol\"in self&&\"iterator\"in self.Symbol&&\"Int8Array\"in self&&self.Symbol.iterator in self.Int8Array.prototype\n","baseDir":"TypedArray/prototype/@@iterator","hasTests":true,"isTestable":true,"isPublic":true,"size":1108}
@@ -0,0 +1 @@
1
+ "__proto__"in self.Int8Array.prototype&&self.Int8Array.prototype.__proto__!==Object.prototype?CreateMethodProperty(self.Int8Array.prototype.__proto__,Symbol.iterator,self.Int8Array.prototype.__proto__.values):(CreateMethodProperty(self.Int8Array.prototype,Symbol.iterator,self.Int8Array.prototype.values),CreateMethodProperty(self.Uint8Array.prototype,Symbol.iterator,self.Uint8Array.prototype.values),CreateMethodProperty(self.Uint8ClampedArray.prototype,Symbol.iterator,self.Uint8ClampedArray.prototype.values),CreateMethodProperty(self.Int16Array.prototype,Symbol.iterator,self.Int16Array.prototype.values),CreateMethodProperty(self.Uint16Array.prototype,Symbol.iterator,self.Uint16Array.prototype.values),CreateMethodProperty(self.Int32Array.prototype,Symbol.iterator,self.Int32Array.prototype.values),CreateMethodProperty(self.Uint32Array.prototype,Symbol.iterator,self.Uint32Array.prototype.values),CreateMethodProperty(self.Float32Array.prototype,Symbol.iterator,self.Float32Array.prototype.values),CreateMethodProperty(self.Float64Array.prototype,Symbol.iterator,self.Float64Array.prototype.values));
@@ -0,0 +1,22 @@
1
+
2
+ // TypedArray.prototype.@@iterator
3
+ /* global Symbol, CreateMethodProperty */
4
+ // 23.2.3.34 %TypedArray%.prototype [ @@iterator ] ( )
5
+ // The initial value of the @@iterator property is %TypedArray.prototype.values%
6
+
7
+ // in IE11, `Int8Array.prototype` inherits directly from `Object.prototype`
8
+ // in that case, don't define it on the parent; define it directly on the prototype
9
+ if ('__proto__' in self.Int8Array.prototype && self.Int8Array.prototype.__proto__ !== Object.prototype) {
10
+ // set this on the underlying "TypedArrayPrototype", which is shared with all "TypedArray" subclasses
11
+ CreateMethodProperty(self.Int8Array.prototype.__proto__, Symbol.iterator, self.Int8Array.prototype.__proto__.values);
12
+ } else {
13
+ CreateMethodProperty(self.Int8Array.prototype, Symbol.iterator, self.Int8Array.prototype.values);
14
+ CreateMethodProperty(self.Uint8Array.prototype, Symbol.iterator, self.Uint8Array.prototype.values);
15
+ CreateMethodProperty(self.Uint8ClampedArray.prototype, Symbol.iterator, self.Uint8ClampedArray.prototype.values);
16
+ CreateMethodProperty(self.Int16Array.prototype, Symbol.iterator, self.Int16Array.prototype.values);
17
+ CreateMethodProperty(self.Uint16Array.prototype, Symbol.iterator, self.Uint16Array.prototype.values);
18
+ CreateMethodProperty(self.Int32Array.prototype, Symbol.iterator, self.Int32Array.prototype.values);
19
+ CreateMethodProperty(self.Uint32Array.prototype, Symbol.iterator, self.Uint32Array.prototype.values);
20
+ CreateMethodProperty(self.Float32Array.prototype, Symbol.iterator, self.Float32Array.prototype.values);
21
+ CreateMethodProperty(self.Float64Array.prototype, Symbol.iterator, self.Float64Array.prototype.values);
22
+ }
@@ -0,0 +1 @@
1
+ {"aliases":["es6","es2015"],"dependencies":["_ESAbstract.Type","ArrayBuffer","Symbol.toStringTag"],"spec":"https://tc39.es/ecma262/#sec-get-%typedarray%.prototype-@@tostringtag","docs":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag","browsers":{"android":"*","bb":"10 - *","chrome":"<49","edge":"<15","edge_mob":"<15","firefox":"<51","ie":"*","ie_mob":"*","opera":"<36","op_mob":"<36","safari":"<10.0","ios_saf":"<10.0","samsung_mob":"<5"},"detectSource":"\"Symbol\"in self&&\"toStringTag\"in self.Symbol&&\"Int8Array\"in self&&Object.getOwnPropertyDescriptor(\"__proto__\"in self.Int8Array.prototype&&self.Int8Array.prototype.__proto__!==Object.prototype&&self.Int8Array.prototype.__proto__||self.Int8Array.prototype,self.Symbol.toStringTag)\n","baseDir":"TypedArray/prototype/@@toStringTag","hasTests":true,"isTestable":true,"isPublic":true,"size":1370}
@@ -0,0 +1 @@
1
+ !function(){function r(){var r=this;if("object"===Type(r)&&"_name"in r){var t=r._name;if("string"!==Type(t))throw TypeError();return t}}function t(t){Object.defineProperty(t,Symbol.toStringTag,{get:r,enumerable:!1,configurable:!0})}function e(r,t){Object.defineProperty(r,"_name",{value:t,writable:!1,enumerable:!1,configurable:!1})}(function(){var r=function(){};try{return Object.defineProperty(r,"name",{value:"test"}),!0}catch(r){return!1}})()&&Object.defineProperty(r,"name",{value:"get [Symbol.toStringTag]",writable:!1,enumerable:!1,configurable:!0}),e(self.Int8Array.prototype,"Int8Array"),e(self.Uint8Array.prototype,"Uint8Array"),e(self.Uint8ClampedArray.prototype,"Uint8ClampedArray"),e(self.Int16Array.prototype,"Int16Array"),e(self.Uint16Array.prototype,"Uint16Array"),e(self.Int32Array.prototype,"Int32Array"),e(self.Uint32Array.prototype,"Uint32Array"),e(self.Float32Array.prototype,"Float32Array"),e(self.Float64Array.prototype,"Float64Array"),"__proto__"in self.Int8Array.prototype&&self.Int8Array.prototype.__proto__!==Object.prototype?t(self.Int8Array.prototype.__proto__):(t(self.Int8Array.prototype),t(self.Uint8Array.prototype),t(self.Uint8ClampedArray.prototype),t(self.Int16Array.prototype),t(self.Uint16Array.prototype),t(self.Int32Array.prototype),t(self.Uint32Array.prototype),t(self.Float32Array.prototype),t(self.Float64Array.prototype))}();
@@ -0,0 +1,91 @@
1
+
2
+ // TypedArray.prototype.@@toStringTag
3
+ /* global Symbol, Type */
4
+ // 23.2.3.33 get %TypedArray%.prototype [ @@toStringTag ]
5
+ (function () {
6
+ var supportsDefiningFunctionName = (function () {
7
+ var fn = function () {};
8
+ try {
9
+ Object.defineProperty(fn, 'name', {
10
+ value: 'test'
11
+ });
12
+ return true;
13
+ } catch (ignore) {
14
+ return false;
15
+ }
16
+ })();
17
+
18
+ function _get() {
19
+ // 1. Let O be the this value.
20
+ var O = this;
21
+ // 2. If Type(O) is not Object, return undefined.
22
+ if (Type(O) !== 'object') {
23
+ return undefined;
24
+ }
25
+ // 3. If O does not have a [[TypedArrayName]] internal slot, return undefined.
26
+ if (!('_name' in O)) {
27
+ return undefined;
28
+ }
29
+ // 4. Let name be O.[[TypedArrayName]].
30
+ var name = O._name;
31
+ // 5. Assert: Type(name) is String.
32
+ if (Type(name) !== 'string') {
33
+ throw TypeError();
34
+ }
35
+ // 6. Return name.
36
+ return name;
37
+ }
38
+
39
+ if (supportsDefiningFunctionName) {
40
+ Object.defineProperty(_get, 'name', {
41
+ value: 'get [Symbol.toStringTag]',
42
+ writable: false,
43
+ enumerable: false,
44
+ configurable: true
45
+ });
46
+ }
47
+
48
+ function defineToStringTag(proto) {
49
+ Object.defineProperty(proto, Symbol.toStringTag, {
50
+ get: _get,
51
+ enumerable: false,
52
+ configurable: true
53
+ });
54
+ }
55
+
56
+ function defineNameInternalSlot(proto, name) {
57
+ Object.defineProperty(proto, '_name', {
58
+ value: name,
59
+ writable: false,
60
+ enumerable: false,
61
+ configurable: false
62
+ });
63
+ }
64
+
65
+ defineNameInternalSlot(self.Int8Array.prototype, 'Int8Array');
66
+ defineNameInternalSlot(self.Uint8Array.prototype, 'Uint8Array');
67
+ defineNameInternalSlot(self.Uint8ClampedArray.prototype, 'Uint8ClampedArray');
68
+ defineNameInternalSlot(self.Int16Array.prototype, 'Int16Array');
69
+ defineNameInternalSlot(self.Uint16Array.prototype, 'Uint16Array');
70
+ defineNameInternalSlot(self.Int32Array.prototype, 'Int32Array');
71
+ defineNameInternalSlot(self.Uint32Array.prototype, 'Uint32Array');
72
+ defineNameInternalSlot(self.Float32Array.prototype, 'Float32Array');
73
+ defineNameInternalSlot(self.Float64Array.prototype, 'Float64Array');
74
+
75
+ // IE11, and potentially other browsers, have `Int8Array.prototype` inherit directly from `Object.prototype`
76
+ // in that case, don't define `Symbol.toStringTag` on the parent; define it directly on the prototype
77
+ if ('__proto__' in self.Int8Array.prototype && self.Int8Array.prototype.__proto__ !== Object.prototype) {
78
+ // set this on the underlying "TypedArrayPrototype", which is shared with all "TypedArray" subclasses
79
+ defineToStringTag(self.Int8Array.prototype.__proto__);
80
+ } else {
81
+ defineToStringTag(self.Int8Array.prototype);
82
+ defineToStringTag(self.Uint8Array.prototype);
83
+ defineToStringTag(self.Uint8ClampedArray.prototype);
84
+ defineToStringTag(self.Int16Array.prototype);
85
+ defineToStringTag(self.Uint16Array.prototype);
86
+ defineToStringTag(self.Int32Array.prototype);
87
+ defineToStringTag(self.Uint32Array.prototype);
88
+ defineToStringTag(self.Float32Array.prototype);
89
+ defineToStringTag(self.Float64Array.prototype);
90
+ }
91
+ })();
@@ -0,0 +1 @@
1
+ {"aliases":["es6","es2015"],"dependencies":["_ArrayIterator","_ESAbstract.CreateMethodProperty","ArrayBuffer"],"license":"MIT","spec":"https://tc39.es/ecma262/#sec-%typedarray%.prototype.entries","docs":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/entries","browsers":{"android":"*","chrome":"<45","edge":"<14","edge_mob":"<14","firefox":"<37","firefox_mob":"<37","ie":"*","ie_mob":"*","opera":"<36","op_mob":"<36","safari":"<9.1","ios_saf":"<9.3","samsung_mob":"<5"},"detectSource":"\"Int8Array\"in self&&\"entries\"in self.Int8Array.prototype\n","baseDir":"TypedArray/prototype/entries","hasTests":true,"isTestable":true,"isPublic":true,"size":750}
@@ -0,0 +1 @@
1
+ !function(){!function t(r){var e="entries";"__proto__"in self.Int8Array.prototype&&self.Int8Array.prototype.__proto__!==Object.prototype?CreateMethodProperty(self.Int8Array.prototype.__proto__,e,r):(CreateMethodProperty(self.Int8Array.prototype,e,r),CreateMethodProperty(self.Uint8Array.prototype,e,r),CreateMethodProperty(self.Uint8ClampedArray.prototype,e,r),CreateMethodProperty(self.Int16Array.prototype,e,r),CreateMethodProperty(self.Uint16Array.prototype,e,r),CreateMethodProperty(self.Int32Array.prototype,e,r),CreateMethodProperty(self.Uint32Array.prototype,e,r),CreateMethodProperty(self.Float32Array.prototype,e,r),CreateMethodProperty(self.Float64Array.prototype,e,r))}(function t(){var r=this;return new ArrayIterator(r,"key+value")})}();
@@ -0,0 +1,38 @@
1
+
2
+ // TypedArray.prototype.entries
3
+ /* global CreateMethodProperty, ArrayIterator */
4
+ // 23.2.3.7 %TypedArray%.prototype.entries ( )
5
+ (function () {
6
+ // use "Int8Array" as a proxy for support of "TypedArray" subclasses
7
+
8
+ function createMethodProperties (fn) {
9
+ var fnName = 'entries'
10
+
11
+ // in IE11, `Int8Array.prototype` inherits directly from `Object.prototype`
12
+ // in that case, don't define it on the parent; define it directly on the prototype
13
+ if ('__proto__' in self.Int8Array.prototype && self.Int8Array.prototype.__proto__ !== Object.prototype) {
14
+ // set this on the underlying "TypedArrayPrototype", which is shared with all "TypedArray" subclasses
15
+ CreateMethodProperty(self.Int8Array.prototype.__proto__, fnName, fn);
16
+ } else {
17
+ CreateMethodProperty(self.Int8Array.prototype, fnName, fn);
18
+ CreateMethodProperty(self.Uint8Array.prototype, fnName, fn);
19
+ CreateMethodProperty(self.Uint8ClampedArray.prototype, fnName, fn);
20
+ CreateMethodProperty(self.Int16Array.prototype, fnName, fn);
21
+ CreateMethodProperty(self.Uint16Array.prototype, fnName, fn);
22
+ CreateMethodProperty(self.Int32Array.prototype, fnName, fn);
23
+ CreateMethodProperty(self.Uint32Array.prototype, fnName, fn);
24
+ CreateMethodProperty(self.Float32Array.prototype, fnName, fn);
25
+ CreateMethodProperty(self.Float64Array.prototype, fnName, fn);
26
+ }
27
+ }
28
+
29
+ createMethodProperties(function entries () {
30
+ // 1. Let O be the this value.
31
+ var O = this;
32
+ // 2. Perform ? ValidateTypedArray(O).
33
+ // TODO: Add ValidateTypedArray
34
+ // 3. Return CreateArrayIterator(O, key).
35
+ // TODO: Add CreateArrayIterator
36
+ return new ArrayIterator(O, 'key+value');
37
+ });
38
+ })();
@@ -0,0 +1 @@
1
+ {"aliases":["es6","es2015"],"dependencies":["_ArrayIterator","_ESAbstract.CreateMethodProperty","ArrayBuffer"],"license":"MIT","spec":"https://tc39.es/ecma262/#sec-%typedarray%.prototype.keys","docs":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/keys","browsers":{"android":"*","chrome":"<38","edge":"<14","edge_mob":"<14","firefox":"<37","firefox_mob":"<37","ie":"*","ie_mob":"*","opera":"<25","op_mob":"<25","safari":"<10.0","ios_saf":"<10.0","samsung_mob":"<3"},"detectSource":"\"Int8Array\"in self&&\"keys\"in self.Int8Array.prototype\n","baseDir":"TypedArray/prototype/keys","hasTests":true,"isTestable":true,"isPublic":true,"size":778}
@@ -0,0 +1 @@
1
+ !function(){!function e(t){"__proto__"in self.Int8Array.prototype&&self.Int8Array.prototype.__proto__!==Object.prototype?CreateMethodProperty(self.Int8Array.prototype.__proto__,"keys",t):(CreateMethodProperty(self.Int8Array.prototype,"keys",t),CreateMethodProperty(self.Uint8Array.prototype,"keys",t),CreateMethodProperty(self.Uint8ClampedArray.prototype,"keys",t),CreateMethodProperty(self.Int16Array.prototype,"keys",t),CreateMethodProperty(self.Uint16Array.prototype,"keys",t),CreateMethodProperty(self.Int32Array.prototype,"keys",t),CreateMethodProperty(self.Uint32Array.prototype,"keys",t),CreateMethodProperty(self.Float32Array.prototype,"keys",t),CreateMethodProperty(self.Float64Array.prototype,"keys",t))}(function e(){var t=this;return new ArrayIterator(t,"key")})}();
@@ -0,0 +1,38 @@
1
+
2
+ // TypedArray.prototype.keys
3
+ /* global CreateMethodProperty, ArrayIterator */
4
+ // 23.2.3.19 %TypedArray%.prototype.keys ( )
5
+ (function () {
6
+ // use "Int8Array" as a proxy for support of "TypedArray" subclasses
7
+
8
+ function createMethodProperties (fn) {
9
+ var fnName = 'keys'
10
+
11
+ // in IE11, `Int8Array.prototype` inherits directly from `Object.prototype`
12
+ // in that case, don't define it on the parent; define it directly on the prototype
13
+ if ('__proto__' in self.Int8Array.prototype && self.Int8Array.prototype.__proto__ !== Object.prototype) {
14
+ // set this on the underlying "TypedArrayPrototype", which is shared with all "TypedArray" subclasses
15
+ CreateMethodProperty(self.Int8Array.prototype.__proto__, fnName, fn);
16
+ } else {
17
+ CreateMethodProperty(self.Int8Array.prototype, fnName, fn);
18
+ CreateMethodProperty(self.Uint8Array.prototype, fnName, fn);
19
+ CreateMethodProperty(self.Uint8ClampedArray.prototype, fnName, fn);
20
+ CreateMethodProperty(self.Int16Array.prototype, fnName, fn);
21
+ CreateMethodProperty(self.Uint16Array.prototype, fnName, fn);
22
+ CreateMethodProperty(self.Int32Array.prototype, fnName, fn);
23
+ CreateMethodProperty(self.Uint32Array.prototype, fnName, fn);
24
+ CreateMethodProperty(self.Float32Array.prototype, fnName, fn);
25
+ CreateMethodProperty(self.Float64Array.prototype, fnName, fn);
26
+ }
27
+ }
28
+
29
+ createMethodProperties(function keys () {
30
+ // 1. Let O be the this value.
31
+ var O = this;
32
+ // 2. Perform ? ValidateTypedArray(O).
33
+ // TODO: Add ValidateTypedArray
34
+ // 3. Return CreateArrayIterator(O, key).
35
+ // TODO: Add CreateArrayIterator
36
+ return new ArrayIterator(O, 'key');
37
+ });
38
+ })();
@@ -0,0 +1 @@
1
+ {"aliases":["es6","es2015"],"dependencies":["_ESAbstract.CreateMethodProperty","ArrayBuffer","Intl.NumberFormat.~locale.en"],"spec":"https://tc39.es/ecma262/#sec-%typedarray%.prototype.tolocalestring","docs":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/toLocaleString","notes":["Locales must be specified separately by prefixing the locale name with `Intl.NumberFormat.~locale`, eg `Intl.NumberFormat.~locale.en-GB`."],"browsers":{"android":"*","chrome":"<7","firefox":"<51","ie":"<10","ie_mob":"<10","opera":"<11.6","op_mob":"<12","safari":"<5.1","ios_saf":"<5.0","samsung_mob":"<1"},"detectSource":"\"Int8Array\"in self&&\"toLocaleString\"in self.Int8Array.prototype\n","baseDir":"TypedArray/prototype/toLocaleString","hasTests":true,"isTestable":true,"isPublic":true,"size":747}
@@ -0,0 +1 @@
1
+ !function(){function t(){return Array.prototype.toLocaleString.call(this,arguments)}var r="toLocaleString";"__proto__"in self.Int8Array.prototype&&self.Int8Array.prototype.__proto__!==Object.prototype?CreateMethodProperty(self.Int8Array.prototype.__proto__,r,t):(CreateMethodProperty(self.Int8Array.prototype,r,t),CreateMethodProperty(self.Uint8Array.prototype,r,t),CreateMethodProperty(self.Uint8ClampedArray.prototype,r,t),CreateMethodProperty(self.Int16Array.prototype,r,t),CreateMethodProperty(self.Uint16Array.prototype,r,t),CreateMethodProperty(self.Int32Array.prototype,r,t),CreateMethodProperty(self.Uint32Array.prototype,r,t),CreateMethodProperty(self.Float32Array.prototype,r,t),CreateMethodProperty(self.Float64Array.prototype,r,t))}();
@@ -0,0 +1,31 @@
1
+
2
+ // TypedArray.prototype.toLocaleString
3
+ /* global CreateMethodProperty */
4
+ // 23.2.3.31 %TypedArray%.prototype.toLocaleString ( [ reserved1 [ , reserved2 ] ] )
5
+ (function () {
6
+ var fnName = 'toLocaleString'
7
+
8
+ // %TypedArray%.prototype.toLocaleString is a distinct function that implements the same algorithm as Array.prototype.toLocaleString
9
+ function toLocaleString () {
10
+ return Array.prototype.toLocaleString.call(this, arguments);
11
+ }
12
+
13
+ // use "Int8Array" as a proxy for all "TypedArray" subclasses
14
+
15
+ // in IE11, `Int8Array.prototype` inherits directly from `Object.prototype`
16
+ // in that case, don't define it on the parent; define it directly on the prototype
17
+ if ('__proto__' in self.Int8Array.prototype && self.Int8Array.prototype.__proto__ !== Object.prototype) {
18
+ // set this on the underlying "TypedArrayPrototype", which is shared with all "TypedArray" subclasses
19
+ CreateMethodProperty(self.Int8Array.prototype.__proto__, fnName, toLocaleString);
20
+ } else {
21
+ CreateMethodProperty(self.Int8Array.prototype, fnName, toLocaleString);
22
+ CreateMethodProperty(self.Uint8Array.prototype, fnName, toLocaleString);
23
+ CreateMethodProperty(self.Uint8ClampedArray.prototype, fnName, toLocaleString);
24
+ CreateMethodProperty(self.Int16Array.prototype, fnName, toLocaleString);
25
+ CreateMethodProperty(self.Uint16Array.prototype, fnName, toLocaleString);
26
+ CreateMethodProperty(self.Int32Array.prototype, fnName, toLocaleString);
27
+ CreateMethodProperty(self.Uint32Array.prototype, fnName, toLocaleString);
28
+ CreateMethodProperty(self.Float32Array.prototype, fnName, toLocaleString);
29
+ CreateMethodProperty(self.Float64Array.prototype, fnName, toLocaleString);
30
+ }
31
+ })();
@@ -0,0 +1 @@
1
+ {"aliases":["es6","es2015"],"dependencies":["_ESAbstract.CreateMethodProperty","ArrayBuffer"],"spec":"https://tc39.es/ecma262/#sec-%typedarray%.prototype.tostring","docs":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/toString","browsers":{"android":"*","chrome":"<7","firefox":"<51","ie":"<10","ie_mob":"<10","opera":"<11.6","op_mob":"<12","safari":"<5.1","ios_saf":"<5.0"},"detectSource":"\"Int8Array\"in self&&\"toString\"in self.Int8Array.prototype\n","baseDir":"TypedArray/prototype/toString","hasTests":true,"isTestable":true,"isPublic":true,"size":696}
@@ -0,0 +1 @@
1
+ !function(){var t="toString",r=Array.prototype.toString;"__proto__"in self.Int8Array.prototype&&self.Int8Array.prototype.__proto__!==Object.prototype?CreateMethodProperty(self.Int8Array.prototype.__proto__,t,r):(CreateMethodProperty(self.Int8Array.prototype,t,r),CreateMethodProperty(self.Uint8Array.prototype,t,r),CreateMethodProperty(self.Uint8ClampedArray.prototype,t,r),CreateMethodProperty(self.Int16Array.prototype,t,r),CreateMethodProperty(self.Uint16Array.prototype,t,r),CreateMethodProperty(self.Int32Array.prototype,t,r),CreateMethodProperty(self.Uint32Array.prototype,t,r),CreateMethodProperty(self.Float32Array.prototype,t,r),CreateMethodProperty(self.Float64Array.prototype,t,r))}();
@@ -0,0 +1,29 @@
1
+
2
+ // TypedArray.prototype.toString
3
+ /* global CreateMethodProperty */
4
+ // 23.2.3.32 %TypedArray%.prototype.toString ( )
5
+ // The initial value of the "toString" property is %Array.prototype.toString%
6
+
7
+ // use "Int8Array" as a proxy for all "TypedArray" subclasses
8
+
9
+ (function () {
10
+ var fnName = 'toString'
11
+ var fn = Array.prototype.toString
12
+
13
+ // in IE11, `Int8Array.prototype` inherits directly from `Object.prototype`
14
+ // in that case, don't define it on the parent; define it directly on the prototype
15
+ if ('__proto__' in self.Int8Array.prototype && self.Int8Array.prototype.__proto__ !== Object.prototype) {
16
+ // set this on the underlying "TypedArrayPrototype", which is shared with all "TypedArray" subclasses
17
+ CreateMethodProperty(self.Int8Array.prototype.__proto__, fnName, fn);
18
+ } else {
19
+ CreateMethodProperty(self.Int8Array.prototype, fnName, fn);
20
+ CreateMethodProperty(self.Uint8Array.prototype, fnName, fn);
21
+ CreateMethodProperty(self.Uint8ClampedArray.prototype, fnName, fn);
22
+ CreateMethodProperty(self.Int16Array.prototype, fnName, fn);
23
+ CreateMethodProperty(self.Uint16Array.prototype, fnName, fn);
24
+ CreateMethodProperty(self.Int32Array.prototype, fnName, fn);
25
+ CreateMethodProperty(self.Uint32Array.prototype, fnName, fn);
26
+ CreateMethodProperty(self.Float32Array.prototype, fnName, fn);
27
+ CreateMethodProperty(self.Float64Array.prototype, fnName, fn);
28
+ }
29
+ })();
@@ -0,0 +1 @@
1
+ {"aliases":["es6","es2015"],"dependencies":["_ArrayIterator","_ESAbstract.CreateMethodProperty","ArrayBuffer"],"license":"MIT","spec":"https://tc39.es/ecma262/#sec-%typedarray%.prototype.values","docs":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/values","browsers":{"android":"*","chrome":"<38","edge":"<14","edge_mob":"<14","firefox":"<37","firefox_mob":"<37","ie":"*","ie_mob":"*","opera":"<25","op_mob":"<25","safari":"<10.0","ios_saf":"<10.0","samsung_mob":"<3"},"detectSource":"\"Int8Array\"in self&&\"values\"in self.Int8Array.prototype\n","baseDir":"TypedArray/prototype/values","hasTests":true,"isTestable":true,"isPublic":true,"size":886}
@@ -0,0 +1 @@
1
+ !function(){function t(t){var r="values";"__proto__"in self.Int8Array.prototype&&self.Int8Array.prototype.__proto__!==Object.prototype?CreateMethodProperty(self.Int8Array.prototype.__proto__,r,t):(CreateMethodProperty(self.Int8Array.prototype,r,t),CreateMethodProperty(self.Uint8Array.prototype,r,t),CreateMethodProperty(self.Uint8ClampedArray.prototype,r,t),CreateMethodProperty(self.Int16Array.prototype,r,t),CreateMethodProperty(self.Uint16Array.prototype,r,t),CreateMethodProperty(self.Int32Array.prototype,r,t),CreateMethodProperty(self.Uint32Array.prototype,r,t),CreateMethodProperty(self.Float32Array.prototype,r,t),CreateMethodProperty(self.Float64Array.prototype,r,t))}t("Symbol"in self&&"iterator"in Symbol&&"function"==typeof self.Int8Array.prototype[Symbol.iterator]?self.Int8Array.prototype[Symbol.iterator]:function t(){var r=this;return new ArrayIterator(r,"value")})}();
@@ -0,0 +1,43 @@
1
+
2
+ // TypedArray.prototype.values
3
+ /* global CreateMethodProperty, Symbol, ArrayIterator */
4
+ // 23.2.3.33 %TypedArray%.prototype.values ( )
5
+ (function () {
6
+ // use "Int8Array" as a proxy for support of "TypedArray" subclasses
7
+
8
+ function createMethodProperties (fn) {
9
+ var fnName = 'values'
10
+
11
+ // in IE11, `Int8Array.prototype` inherits directly from `Object.prototype`
12
+ // in that case, don't define it on the parent; define it directly on the prototype
13
+ if ('__proto__' in self.Int8Array.prototype && self.Int8Array.prototype.__proto__ !== Object.prototype) {
14
+ // set this on the underlying "TypedArrayPrototype", which is shared with all "TypedArray" subclasses
15
+ CreateMethodProperty(self.Int8Array.prototype.__proto__, fnName, fn);
16
+ } else {
17
+ CreateMethodProperty(self.Int8Array.prototype, fnName, fn);
18
+ CreateMethodProperty(self.Uint8Array.prototype, fnName, fn);
19
+ CreateMethodProperty(self.Uint8ClampedArray.prototype, fnName, fn);
20
+ CreateMethodProperty(self.Int16Array.prototype, fnName, fn);
21
+ CreateMethodProperty(self.Uint16Array.prototype, fnName, fn);
22
+ CreateMethodProperty(self.Int32Array.prototype, fnName, fn);
23
+ CreateMethodProperty(self.Uint32Array.prototype, fnName, fn);
24
+ CreateMethodProperty(self.Float32Array.prototype, fnName, fn);
25
+ CreateMethodProperty(self.Float64Array.prototype, fnName, fn);
26
+ }
27
+ }
28
+
29
+ // Polyfill.io - Firefox, Chrome and Opera have %TypedArray%.prototype[Symbol.iterator], which is the exact same function as %TypedArray%.prototype.values.
30
+ if ('Symbol' in self && 'iterator' in Symbol && typeof self.Int8Array.prototype[Symbol.iterator] === 'function') {
31
+ createMethodProperties(self.Int8Array.prototype[Symbol.iterator])
32
+ } else {
33
+ createMethodProperties(function values () {
34
+ // 1. Let O be the this value.
35
+ var O = this;
36
+ // 2. Perform ? ValidateTypedArray(O).
37
+ // TODO: Add ValidateTypedArray
38
+ // 3. Return CreateArrayIterator(O, value).
39
+ // TODO: Add CreateArrayIterator
40
+ return new ArrayIterator(O, 'value');
41
+ });
42
+ }
43
+ })();
@@ -1 +1 @@
1
- {"aliases":["es6","es2015","blissfuljs"],"dependencies":["_ESAbstract.CreateMethodProperty","_ESAbstract.OrdinaryCreateFromConstructor","_ESAbstract.Get","_ESAbstract.IsCallable","_ESAbstract.GetIterator","_ESAbstract.IteratorStep","_ESAbstract.IteratorValue","_ESAbstract.Call","_ESAbstract.IteratorClose","_ESAbstract.IsArray","_ESAbstract.Type","_ESAbstract.SameValue","Symbol","Symbol.toStringTag"],"license":"MIT","docs":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap","spec":"https://tc39.github.io/ecma262/#sec-weakmap-objects","browsers":{"android":"*","bb":"10 - *","chrome":"<44","firefox":"<40","firefox_mob":"<36","ie":"*","ie_mob":">=10","opera":"<25","safari":"<9.0","ios_saf":"<9.0","samsung_mob":"<4"},"detectSource":"(function(){try{if(\"WeakMap\"in self&&0===self.WeakMap.length){var e={},t=new self.WeakMap([[e,\"test\"]])\nreturn\"test\"===t.get(e)&&!1===t.delete(0)}return!1}catch(e){return!1}})()\n","baseDir":"WeakMap","hasTests":true,"isTestable":true,"isPublic":true,"size":3416}
1
+ {"aliases":["es6","es2015","blissfuljs"],"dependencies":["_ESAbstract.CreateMethodProperty","_ESAbstract.OrdinaryCreateFromConstructor","_ESAbstract.Get","_ESAbstract.IsCallable","_ESAbstract.GetIterator","_ESAbstract.IteratorStep","_ESAbstract.IteratorValue","_ESAbstract.Call","_ESAbstract.IteratorClose","_ESAbstract.IsArray","_ESAbstract.Type","_ESAbstract.SameValue","Symbol","Symbol.toStringTag"],"license":"MIT","docs":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap","spec":"https://tc39.github.io/ecma262/#sec-weakmap-objects","browsers":{"android":"*","bb":"10 - *","chrome":"<49","firefox":"<51","firefox_mob":"<51","ie":"*","ie_mob":">=10","opera":"<36","op_mob":"<36","safari":"<10.0","ios_saf":"<10.0","samsung_mob":"<4"},"detectSource":"(function(){try{if(\"WeakMap\"in self&&0===self.WeakMap.length){var e={},t=new self.WeakMap([[e,\"test\"]])\nreturn\"test\"===t.get(e)&&!1===t.delete(0)&&\"toStringTag\"in self.Symbol&&void 0!==t[self.Symbol.toStringTag]}return!1}catch(e){return!1}})()\n","baseDir":"WeakMap","hasTests":true,"isTestable":true,"isPublic":true,"size":3416}
@@ -1 +1 @@
1
- {"aliases":["es6","es2015"],"dependencies":["_ESAbstract.CreateMethodProperty","_ESAbstract.OrdinaryCreateFromConstructor","_ESAbstract.Get","_ESAbstract.IsCallable","_ESAbstract.GetIterator","_ESAbstract.IteratorStep","_ESAbstract.IteratorValue","_ESAbstract.Call","_ESAbstract.IteratorClose","_ESAbstract.IsArray","_ESAbstract.Type","_ESAbstract.SameValueZero","Symbol"],"docs":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet","license":"MIT","browsers":{"android":"*","bb":"10 - *","chrome":"<44","firefox":"<40","firefox_mob":"<34","ie":">=7","ie_mob":">=10","opera":"<25","safari":"<9.0","ios_saf":"<9.0","samsung_mob":"<4"},"detectSource":"(function(e){try{if(Object.prototype.hasOwnProperty.call(e,\"WeakSet\")&&0===e.WeakSet.length){var t={},r=new e.WeakSet([t])\nreturn r.has(t)&&!1===r.delete(0)}return!1}catch(e){return!1}})(self)\n","baseDir":"WeakSet","hasTests":true,"isTestable":true,"isPublic":true,"size":2490}
1
+ {"aliases":["es6","es2015"],"dependencies":["_ESAbstract.CreateMethodProperty","_ESAbstract.OrdinaryCreateFromConstructor","_ESAbstract.Get","_ESAbstract.IsCallable","_ESAbstract.GetIterator","_ESAbstract.IteratorStep","_ESAbstract.IteratorValue","_ESAbstract.Call","_ESAbstract.IteratorClose","_ESAbstract.IsArray","_ESAbstract.Type","_ESAbstract.SameValueZero","Symbol","Symbol.toStringTag"],"docs":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet","license":"MIT","browsers":{"android":"*","bb":"10 - *","chrome":"<49","firefox":"<51","firefox_mob":"<51","ie":">=7","ie_mob":">=10","opera":"<36","op_mob":"<36","safari":"<10.0","ios_saf":"<10.0","samsung_mob":"<4"},"detectSource":"(function(e){try{if(Object.prototype.hasOwnProperty.call(e,\"WeakSet\")&&0===e.WeakSet.length){var t={},r=new e.WeakSet([t])\nreturn r.has(t)&&!1===r.delete(0)&&\"toStringTag\"in self.Symbol&&void 0!==r[self.Symbol.toStringTag]}return!1}catch(e){return!1}})(self)\n","baseDir":"WeakSet","hasTests":true,"isTestable":true,"isPublic":true,"size":2604}