polyfill-library 4.1.0 → 4.1.1

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.1.0](https://github.com/Financial-Times/polyfill-library/compare/v4.1.0...v4.1.0)
7
+ #### [v4.1.1](https://github.com/Financial-Times/polyfill-library/compare/v4.1.1...v4.1.1)
8
8
 
9
- #### v4.1.0
9
+ #### v4.1.1
10
10
 
11
- > 16 May 2022
11
+ > 12 July 2022
12
12
 
13
- - Get HTMLCollection by children property of an element [`871a6c3`](https://github.com/Financial-Times/polyfill-library/commit/871a6c3d2a419a245bfc2c6359990f0beb132da2)
13
+ - Fixes `TypedArray.prototype.at` to avoid adding `at` to `Object.prototype` [`#1188`](https://github.com/Financial-Times/polyfill-library/pull/1188)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "polyfill-library",
3
- "version": "4.1.0",
3
+ "version": "4.1.1",
4
4
  "description": "A polyfill combinator",
5
5
  "main": "lib/index.js",
6
6
  "contributors": [
@@ -1 +1 @@
1
- {"aliases":["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","DataView"],"license":"MIT","repo":"https://github.com/inexorabletash/polyfill","docs":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray","browsers":{"android":"<37","bb":"*","chrome":"<32","edge":"<14","edge_mob":"<14","firefox":"<44","firefox_mob":"<44","ie":"*","ie_mob":"*","ios_chr":"<7","ios_saf":"<7","op_mini":"*","op_mob":"<19","opera":"<19","safari":"<7","samsung_mob":"<2"},"install":{"module":"js-polyfills","paths":["typedarray.js"]},"detectSource":"","baseDir":"ArrayBuffer","hasTests":false,"isTestable":true,"isPublic":true,"size":16100}
1
+ {"aliases":["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","DataView"],"license":"MIT","repo":"https://github.com/inexorabletash/polyfill","docs":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray","browsers":{"android":"<37","bb":"*","chrome":"<32","edge":"<14","edge_mob":"<14","firefox":"<44","firefox_mob":"<44","ie":"*","ie_mob":"*","ios_chr":"<7","ios_saf":"<7","op_mini":"*","op_mob":"<19","opera":"<19","safari":"<7","samsung_mob":"<2"},"install":{"module":"js-polyfills","paths":["typedarray.js"],"postinstall":"update.task.js"},"detectSource":"\"ArrayBuffer\"in self&&\"DataView\"in self&&\"Int8Array\"in self\n","baseDir":"ArrayBuffer","hasTests":true,"isTestable":true,"isPublic":true,"size":14761}
@@ -1 +1 @@
1
- !function(t){"use strict";function e(t){switch(typeof t){case"undefined":return"undefined";case"boolean":return"boolean";case"number":return"number";case"string":return"string";default:return null===t?"null":"object"}}function r(t){return Object.prototype.toString.call(t).replace(/^\[object *|\]$/g,"")}function n(t){return"function"==typeof t}function o(t){if(null===t||t===B)throw TypeError();return Object(t)}function i(t){return t>>0}function f(t){return t>>>0}function u(e){if(!("TYPED_ARRAY_POLYFILL_NO_ARRAY_ACCESSORS"in t)){if(e.length>N)throw RangeError("Array too large for polyfill");var r;for(r=0;r<e.length;r+=1)!function n(t){Object.defineProperty(e,t,{get:function(){return e._getter(t)},set:function(r){e._setter(t,r)},enumerable:!0,configurable:!1})}(r)}}function a(t,e){var r=32-e;return t<<r>>r}function h(t,e){var r=32-e;return t<<r>>>r}function y(t){return[255&t]}function s(t){return a(t[0],8)}function l(t){return[255&t]}function p(t){return h(t[0],8)}function c(t){return t=x(Number(t)),[t<0?0:t>255?255:255&t]}function b(t){return[255&t,t>>8&255]}function g(t){return a(t[1]<<8|t[0],16)}function E(t){return[255&t,t>>8&255]}function v(t){return h(t[1]<<8|t[0],16)}function _(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function O(t){return a(t[3]<<24|t[2]<<16|t[1]<<8|t[0],32)}function j(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function d(t){return h(t[3]<<24|t[2]<<16|t[1]<<8|t[0],32)}function P(t,e,r){function n(t){var e=m(t),r=t-e;return r<.5?e:r>.5?e+1:e%2?e+1:e}var o,i,f,u=(1<<e-1)-1;if(t!==t)i=(1<<e)-1,f=F(2,r-1),o=0;else if(t===1/0||t===-1/0)i=(1<<e)-1,f=0,o=t<0?1:0;else if(0===t)i=0,f=0,o=1/t==-1/0?1:0;else if(o=t<0,(t=M(t))>=F(2,1-u)){i=I(m(U(t)/S),1023);var a=t/F(2,i);a<1&&(i-=1,a*=2),a>=2&&(i+=1,a/=2);var h=F(2,r);f=n(a*h)-h,i+=u,f/h>=1&&(i+=1,f=0),i>2*u&&(i=(1<<e)-1,f=0)}else i=0,f=n(t/F(2,1-u-r));var y,s=[];for(y=r;y;y-=1)s.push(f%2?1:0),f=m(f/2);for(y=e;y;y-=1)s.push(i%2?1:0),i=m(i/2);s.push(o?1:0),s.reverse();for(var l=s.join(""),p=[];l.length;)p.unshift(parseInt(l.substring(0,8),2)),l=l.substring(8);return p}function T(t,e,r){var n,o,i,f,u,a,h,y,s=[];for(n=0;n<t.length;++n)for(i=t[n],o=8;o;o-=1)s.push(i%2?1:0),i>>=1;return s.reverse(),f=s.join(""),u=(1<<e-1)-1,a=parseInt(f.substring(0,1),2)?-1:1,h=parseInt(f.substring(1,1+e),2),y=parseInt(f.substring(1+e),2),h===(1<<e)-1?0!==y?NaN:a*(1/0):h>0?a*F(2,h-u)*(1+y/F(2,r)):0!==y?a*F(2,-(u-1))*(y/F(2,r)):a<0?-0:0}function w(t){return T(t,11,52)}function A(t){return P(t,11,52)}function L(t){return T(t,8,23)}function R(t){return P(t,8,23)}var B=void 0,N=1e5,S=Math.LN2,M=Math.abs,m=Math.floor,U=Math.log,Y=Math.max,I=Math.min,F=Math.pow,x=Math.round;!function(){var t=Object.defineProperty,e=!function(){try{return Object.defineProperty({},"x",{})}catch(t){return!1}}();t&&!e||(Object.defineProperty=function(e,r,n){if(t)try{return t(e,r,n)}catch(t){}if(e!==Object(e))throw TypeError("Object.defineProperty called on non-object");return Object.prototype.__defineGetter__&&"get"in n&&Object.prototype.__defineGetter__.call(e,r,n.get),Object.prototype.__defineSetter__&&"set"in n&&Object.prototype.__defineSetter__.call(e,r,n.set),"value"in n&&(e[r]=n.value),e})}(),function(){function a(t){if((t=i(t))<0)throw RangeError("ArrayBuffer size is not a small enough positive integer.");Object.defineProperty(this,"byteLength",{value:t}),Object.defineProperty(this,"_bytes",{value:Array(t)});for(var e=0;e<t;e+=1)this._bytes[e]=0}function h(){if(!arguments.length||"object"!=typeof arguments[0])return function(t){if((t=i(t))<0)throw RangeError("length is not a small enough positive integer.");Object.defineProperty(this,"length",{value:t}),Object.defineProperty(this,"byteLength",{value:t*this.BYTES_PER_ELEMENT}),Object.defineProperty(this,"buffer",{value:new a(this.byteLength)}),Object.defineProperty(this,"byteOffset",{value:0})}.apply(this,arguments);if(arguments.length>=1&&"object"===e(arguments[0])&&arguments[0]instanceof h)return function(t){if(this.constructor!==t.constructor)throw TypeError();var e=t.length*this.BYTES_PER_ELEMENT;Object.defineProperty(this,"buffer",{value:new a(e)}),Object.defineProperty(this,"byteLength",{value:e}),Object.defineProperty(this,"byteOffset",{value:0}),Object.defineProperty(this,"length",{value:t.length});for(var r=0;r<this.length;r+=1)this._setter(r,t._getter(r))}.apply(this,arguments);if(arguments.length>=1&&"object"===e(arguments[0])&&!(arguments[0]instanceof h)&&!(arguments[0]instanceof a||"ArrayBuffer"===r(arguments[0])))return function(t){var e=t.length*this.BYTES_PER_ELEMENT;Object.defineProperty(this,"buffer",{value:new a(e)}),Object.defineProperty(this,"byteLength",{value:e}),Object.defineProperty(this,"byteOffset",{value:0}),Object.defineProperty(this,"length",{value:t.length});for(var r=0;r<this.length;r+=1){var n=t[r];this._setter(r,Number(n))}}.apply(this,arguments);if(arguments.length>=1&&"object"===e(arguments[0])&&(arguments[0]instanceof a||"ArrayBuffer"===r(arguments[0])))return function(t,e,r){if((e=f(e))>t.byteLength)throw RangeError("byteOffset out of range");if(e%this.BYTES_PER_ELEMENT)throw RangeError("buffer length minus the byteOffset is not a multiple of the element size.");if(r===B){var n=t.byteLength-e;if(n%this.BYTES_PER_ELEMENT)throw RangeError("length of buffer minus byteOffset not a multiple of the element size");r=n/this.BYTES_PER_ELEMENT}else r=f(r),n=r*this.BYTES_PER_ELEMENT;if(e+n>t.byteLength)throw RangeError("byteOffset and length reference an area beyond the end of the buffer");Object.defineProperty(this,"buffer",{value:t}),Object.defineProperty(this,"byteLength",{value:n}),Object.defineProperty(this,"byteOffset",{value:e}),Object.defineProperty(this,"length",{value:r})}.apply(this,arguments);throw TypeError()}function P(t,e,r){var n=function(){Object.defineProperty(this,"constructor",{value:n}),h.apply(this,arguments),u(this)};"__proto__"in n?n.__proto__=h:(n.from=h.from,n.of=h.of),n.BYTES_PER_ELEMENT=t;var o=function(){};return o.prototype=T,n.prototype=new o,Object.defineProperty(n.prototype,"BYTES_PER_ELEMENT",{value:t}),Object.defineProperty(n.prototype,"_pack",{value:e}),Object.defineProperty(n.prototype,"_unpack",{value:r}),n}t.ArrayBuffer=t.ArrayBuffer||a,Object.defineProperty(h,"from",{value:function(t){return new this(t)}}),Object.defineProperty(h,"of",{value:function(){return new this(arguments)}});var T={};h.prototype=T,Object.defineProperty(h.prototype,"_getter",{value:function(t){if(arguments.length<1)throw SyntaxError("Not enough arguments");if((t=f(t))>=this.length)return B;var e,r,n=[];for(e=0,r=this.byteOffset+t*this.BYTES_PER_ELEMENT;e<this.BYTES_PER_ELEMENT;e+=1,r+=1)n.push(this.buffer._bytes[r]);return this._unpack(n)}}),Object.defineProperty(h.prototype,"get",{value:h.prototype._getter}),Object.defineProperty(h.prototype,"_setter",{value:function(t,e){if(arguments.length<2)throw SyntaxError("Not enough arguments");if(!((t=f(t))>=this.length)){var r,n,o=this._pack(e);for(r=0,n=this.byteOffset+t*this.BYTES_PER_ELEMENT;r<this.BYTES_PER_ELEMENT;r+=1,n+=1)this.buffer._bytes[n]=o[r]}}}),Object.defineProperty(h.prototype,"constructor",{value:h}),Object.defineProperty(h.prototype,"copyWithin",{value:function(t,e){var r=arguments[2],n=o(this),u=n.length,a=f(u);a=Y(a,0);var h,y=i(t);h=y<0?Y(a+y,0):I(y,a);var s,l=i(e);s=l<0?Y(a+l,0):I(l,a);var p;p=r===B?a:i(r);var c;c=p<0?Y(a+p,0):I(p,a);var b,g=I(c-s,a-h);for(s<h&&h<s+g?(b=-1,s=s+g-1,h=h+g-1):b=1;g>0;)n._setter(h,n._getter(s)),s+=b,h+=b,g-=1;return n}}),Object.defineProperty(h.prototype,"every",{value:function(t){if(this===B||null===this)throw TypeError();var e=Object(this),r=f(e.length);if(!n(t))throw TypeError();for(var o=arguments[1],i=0;i<r;i++)if(!t.call(o,e._getter(i),i,e))return!1;return!0}}),Object.defineProperty(h.prototype,"fill",{value:function(t){var e=arguments[1],r=arguments[2],n=o(this),u=n.length,a=f(u);a=Y(a,0);var h,y=i(e);h=y<0?Y(a+y,0):I(y,a);var s;s=r===B?a:i(r);var l;for(l=s<0?Y(a+s,0):I(s,a);h<l;)n._setter(h,t),h+=1;return n}}),Object.defineProperty(h.prototype,"filter",{value:function(t){if(this===B||null===this)throw TypeError();var e=Object(this),r=f(e.length);if(!n(t))throw TypeError();for(var o=[],i=arguments[1],u=0;u<r;u++){var a=e._getter(u);t.call(i,a,u,e)&&o.push(a)}return new this.constructor(o)}}),Object.defineProperty(h.prototype,"find",{value:function(t){var e=o(this),r=e.length,i=f(r);if(!n(t))throw TypeError();for(var u=arguments.length>1?arguments[1]:B,a=0;a<i;){var h=e._getter(a),y=t.call(u,h,a,e);if(Boolean(y))return h;++a}return B}}),Object.defineProperty(h.prototype,"findIndex",{value:function(t){var e=o(this),r=e.length,i=f(r);if(!n(t))throw TypeError();for(var u=arguments.length>1?arguments[1]:B,a=0;a<i;){var h=e._getter(a),y=t.call(u,h,a,e);if(Boolean(y))return a;++a}return-1}}),Object.defineProperty(h.prototype,"forEach",{value:function(t){if(this===B||null===this)throw TypeError();var e=Object(this),r=f(e.length);if(!n(t))throw TypeError();for(var o=arguments[1],i=0;i<r;i++)t.call(o,e._getter(i),i,e)}}),Object.defineProperty(h.prototype,"indexOf",{value:function(t){if(this===B||null===this)throw TypeError();var e=Object(this),r=f(e.length);if(0===r)return-1;var n=0;if(arguments.length>0&&(n=Number(arguments[1]),n!==n?n=0:0!==n&&n!==1/0&&n!==-1/0&&(n=(n>0||-1)*m(M(n)))),n>=r)return-1;for(var o=n>=0?n:Y(r-M(n),0);o<r;o++)if(e._getter(o)===t)return o;return-1}}),Object.defineProperty(h.prototype,"join",{value:function(t){if(this===B||null===this)throw TypeError();for(var e=Object(this),r=f(e.length),n=Array(r),o=0;o<r;++o)n[o]=e._getter(o);return n.join(t===B?",":t)}}),Object.defineProperty(h.prototype,"lastIndexOf",{value:function(t){if(this===B||null===this)throw TypeError();var e=Object(this),r=f(e.length);if(0===r)return-1;var n=r;arguments.length>1&&(n=Number(arguments[1]),n!==n?n=0:0!==n&&n!==1/0&&n!==-1/0&&(n=(n>0||-1)*m(M(n))));for(var o=n>=0?I(n,r-1):r-M(n);o>=0;o--)if(e._getter(o)===t)return o;return-1}}),Object.defineProperty(h.prototype,"map",{value:function(t){if(this===B||null===this)throw TypeError();var e=Object(this),r=f(e.length);if(!n(t))throw TypeError();var o=[];o.length=r;for(var i=arguments[1],u=0;u<r;u++)o[u]=t.call(i,e._getter(u),u,e);return new this.constructor(o)}}),Object.defineProperty(h.prototype,"reduce",{value:function(t){if(this===B||null===this)throw TypeError();var e=Object(this),r=f(e.length);if(!n(t))throw TypeError();if(0===r&&1===arguments.length)throw TypeError();var o,i=0;for(o=arguments.length>=2?arguments[1]:e._getter(i++);i<r;)o=t.call(B,o,e._getter(i),i,e),i++;return o}}),Object.defineProperty(h.prototype,"reduceRight",{value:function(t){if(this===B||null===this)throw TypeError();var e=Object(this),r=f(e.length);if(!n(t))throw TypeError();if(0===r&&1===arguments.length)throw TypeError();var o,i=r-1;for(o=arguments.length>=2?arguments[1]:e._getter(i--);i>=0;)o=t.call(B,o,e._getter(i),i,e),i--;return o}}),Object.defineProperty(h.prototype,"reverse",{value:function(){if(this===B||null===this)throw TypeError();for(var t=Object(this),e=f(t.length),r=m(e/2),n=0,o=e-1;n<r;++n,--o){var i=t._getter(n);t._setter(n,t._getter(o)),t._setter(o,i)}return t}}),Object.defineProperty(h.prototype,"set",{value:function(t,e){if(arguments.length<1)throw SyntaxError("Not enough arguments");var r,n,o,i,u,a,h,y,s,l;if("object"==typeof arguments[0]&&arguments[0].constructor===this.constructor){if(r=arguments[0],(o=f(arguments[1]))+r.length>this.length)throw RangeError("Offset plus length of array is out of range");if(y=this.byteOffset+o*this.BYTES_PER_ELEMENT,s=r.length*this.BYTES_PER_ELEMENT,r.buffer===this.buffer){for(l=[],u=0,a=r.byteOffset;u<s;u+=1,a+=1)l[u]=r.buffer._bytes[a];for(u=0,h=y;u<s;u+=1,h+=1)this.buffer._bytes[h]=l[u]}else for(u=0,a=r.byteOffset,h=y;u<s;u+=1,a+=1,h+=1)this.buffer._bytes[h]=r.buffer._bytes[a]}else{if("object"!=typeof arguments[0]||void 0===arguments[0].length)throw TypeError("Unexpected argument type(s)");if(n=arguments[0],i=f(n.length),(o=f(arguments[1]))+i>this.length)throw RangeError("Offset plus length of array is out of range");for(u=0;u<i;u+=1)a=n[u],this._setter(o+u,Number(a))}}}),Object.defineProperty(h.prototype,"slice",{value:function(t,e){for(var r=o(this),n=r.length,u=f(n),a=i(t),h=a<0?Y(u+a,0):I(a,u),y=e===B?u:i(e),s=y<0?Y(u+y,0):I(y,u),l=s-h,p=r.constructor,c=new p(l),b=0;h<s;){var g=r._getter(h);c._setter(b,g),++h,++b}return c}}),Object.defineProperty(h.prototype,"some",{value:function(t){if(this===B||null===this)throw TypeError();var e=Object(this),r=f(e.length);if(!n(t))throw TypeError();for(var o=arguments[1],i=0;i<r;i++)if(t.call(o,e._getter(i),i,e))return!0;return!1}}),Object.defineProperty(h.prototype,"sort",{value:function(t){function e(e,r){return e!==e&&r!==r?0:e!==e?1:r!==r?-1:t!==B?t(e,r):e<r?-1:e>r?1:0}if(this===B||null===this)throw TypeError();for(var r=Object(this),n=f(r.length),o=Array(n),i=0;i<n;++i)o[i]=r._getter(i);for(o.sort(e),i=0;i<n;++i)r._setter(i,o[i]);return r}}),Object.defineProperty(h.prototype,"subarray",{value:function(t,e){function r(t,e,r){return t<e?e:t>r?r:t}t=i(t),e=i(e),arguments.length<1&&(t=0),arguments.length<2&&(e=this.length),t<0&&(t=this.length+t),e<0&&(e=this.length+e),t=r(t,0,this.length),e=r(e,0,this.length);var n=e-t;return n<0&&(n=0),new this.constructor(this.buffer,this.byteOffset+t*this.BYTES_PER_ELEMENT,n)}});var N=P(1,y,s),S=P(1,l,p),U=P(1,c,p),F=P(2,b,g),x=P(2,E,v),k=P(4,_,O),C=P(4,j,d),z=P(4,R,L),D=P(8,A,w);t.Int8Array=t.Int8Array||N,t.Uint8Array=t.Uint8Array||S,t.Uint8ClampedArray=t.Uint8ClampedArray||U,t.Int16Array=t.Int16Array||F,t.Uint16Array=t.Uint16Array||x,t.Int32Array=t.Int32Array||k,t.Uint32Array=t.Uint32Array||C,t.Float32Array=t.Float32Array||z,t.Float64Array=t.Float64Array||D}(),function(){function e(t,e){return n(t.get)?t.get(e):t[e]}function o(t,e,n){if(!(t instanceof ArrayBuffer||"ArrayBuffer"===r(t)))throw TypeError();if((e=f(e))>t.byteLength)throw RangeError("byteOffset out of range");if(n=n===B?t.byteLength-e:f(n),e+n>t.byteLength)throw RangeError("byteOffset and length reference an area beyond the end of the buffer");Object.defineProperty(this,"buffer",{value:t}),Object.defineProperty(this,"byteLength",{value:n}),Object.defineProperty(this,"byteOffset",{value:e})}function i(t){return function r(n,o){if((n=f(n))+t.BYTES_PER_ELEMENT>this.byteLength)throw RangeError("Array index out of range");n+=this.byteOffset;for(var i=new Uint8Array(this.buffer,n,t.BYTES_PER_ELEMENT),u=[],h=0;h<t.BYTES_PER_ELEMENT;h+=1)u.push(e(i,h));return Boolean(o)===Boolean(a)&&u.reverse(),e(new t(new Uint8Array(u).buffer),0)}}function u(t){return function r(n,o,i){if((n=f(n))+t.BYTES_PER_ELEMENT>this.byteLength)throw RangeError("Array index out of range");var u,h,y=new t([o]),s=new Uint8Array(y.buffer),l=[];for(u=0;u<t.BYTES_PER_ELEMENT;u+=1)l.push(e(s,u));Boolean(i)===Boolean(a)&&l.reverse(),h=new Uint8Array(this.buffer,n,t.BYTES_PER_ELEMENT),h.set(l)}}var a=function(){var t=new Uint16Array([4660]);return 18===e(new Uint8Array(t.buffer),0)}();Object.defineProperty(o.prototype,"getUint8",{value:i(Uint8Array)}),Object.defineProperty(o.prototype,"getInt8",{value:i(Int8Array)}),Object.defineProperty(o.prototype,"getUint16",{value:i(Uint16Array)}),Object.defineProperty(o.prototype,"getInt16",{value:i(Int16Array)}),Object.defineProperty(o.prototype,"getUint32",{value:i(Uint32Array)}),Object.defineProperty(o.prototype,"getInt32",{value:i(Int32Array)}),Object.defineProperty(o.prototype,"getFloat32",{value:i(Float32Array)}),Object.defineProperty(o.prototype,"getFloat64",{value:i(Float64Array)}),Object.defineProperty(o.prototype,"setUint8",{value:u(Uint8Array)}),Object.defineProperty(o.prototype,"setInt8",{value:u(Int8Array)}),Object.defineProperty(o.prototype,"setUint16",{value:u(Uint16Array)}),Object.defineProperty(o.prototype,"setInt16",{value:u(Int16Array)}),Object.defineProperty(o.prototype,"setUint32",{value:u(Uint32Array)}),Object.defineProperty(o.prototype,"setInt32",{value:u(Int32Array)}),Object.defineProperty(o.prototype,"setFloat32",{value:u(Float32Array)}),Object.defineProperty(o.prototype,"setFloat64",{value:u(Float64Array)}),t.DataView=t.DataView||o}()}(self);
1
+ !function(t){"use strict";function r(t){switch(typeof t){case"undefined":return"undefined";case"boolean":return"boolean";case"number":return"number";case"string":return"string";default:return null===t?"null":"object"}}function e(t){return Object.prototype.toString.call(t).replace(/^\[object *|\]$/g,"")}function n(t){return"function"==typeof t}function o(t){if(null===t||t===P)throw TypeError();return Object(t)}function i(t){return t>>0}function f(t){return t>>>0}function u(r){if(!("TYPED_ARRAY_POLYFILL_NO_ARRAY_ACCESSORS"in t)){if(r.length>S)throw RangeError("Array too large for polyfill");var e;for(e=0;e<r.length;e+=1)!function n(t){Object.defineProperty(r,t,{get:function(){return r._getter(t)},set:function(e){r._setter(t,e)},enumerable:!0,configurable:!1})}(e)}}function a(t,r){var e=32-r;return t<<e>>e}function h(t,r){var e=32-r;return t<<e>>>e}function s(t){return[255&t]}function l(t){return a(t[0],8)}function y(t){return[255&t]}function p(t){return h(t[0],8)}function c(t){return t=k(Number(t)),[t<0?0:t>255?255:255&t]}function g(t){return[255&t,t>>8&255]}function E(t){return a(t[1]<<8|t[0],16)}function v(t){return[255&t,t>>8&255]}function b(t){return h(t[1]<<8|t[0],16)}function _(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function T(t){return a(t[3]<<24|t[2]<<16|t[1]<<8|t[0],32)}function w(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function O(t){return h(t[3]<<24|t[2]<<16|t[1]<<8|t[0],32)}function A(t,r,e){function n(t){var r=Y(t),e=t-r;return e<.5?r:e>.5?r+1:r%2?r+1:r}var o,i,f,u=(1<<r-1)-1;if(t!==t)i=(1<<r)-1,f=F(2,e-1),o=0;else if(t===1/0||t===-1/0)i=(1<<r)-1,f=0,o=t<0?1:0;else if(0===t)i=0,f=0,o=1/t==-1/0?1:0;else if(o=t<0,(t=m(t))>=F(2,1-u)){i=x(Y(U(t)/M),1023);var a=t/F(2,i);a<1&&(i-=1,a*=2),a>=2&&(i+=1,a/=2);var h=F(2,e);f=n(a*h)-h,i+=u,f/h>=1&&(i+=1,f=0),i>2*u&&(i=(1<<r)-1,f=0)}else i=0,f=n(t/F(2,1-u-e));var s,l=[];for(s=e;s;s-=1)l.push(f%2?1:0),f=Y(f/2);for(s=r;s;s-=1)l.push(i%2?1:0),i=Y(i/2);l.push(o?1:0),l.reverse();for(var y=l.join(""),p=[];y.length;)p.unshift(parseInt(y.substring(0,8),2)),y=y.substring(8);return p}function j(t,r,e){var n,o,i,f,u,a,h,s,l=[];for(n=0;n<t.length;++n)for(i=t[n],o=8;o;o-=1)l.push(i%2?1:0),i>>=1;return l.reverse(),f=l.join(""),u=(1<<r-1)-1,a=parseInt(f.substring(0,1),2)?-1:1,h=parseInt(f.substring(1,1+r),2),s=parseInt(f.substring(1+r),2),h===(1<<r)-1?0!==s?NaN:a*(1/0):h>0?a*F(2,h-u)*(1+s/F(2,e)):0!==s?a*F(2,-(u-1))*(s/F(2,e)):a<0?-0:0}function L(t){return j(t,11,52)}function R(t){return A(t,11,52)}function d(t){return j(t,8,23)}function B(t){return A(t,8,23)}function N(t,r,e){return e.writable=!0,e.configurable=!0,Object.defineProperty(t,r,e)}var P=void 0,S=1e5,M=Math.LN2,m=Math.abs,Y=Math.floor,U=Math.log,I=Math.max,x=Math.min,F=Math.pow,k=Math.round;!function(){var t=Object.defineProperty,r=!function(){try{return Object.defineProperty({},"x",{})}catch(t){return!1}}();t&&!r||(Object.defineProperty=function(r,e,n){if(t)try{return t(r,e,n)}catch(t){}if(r!==Object(r))throw TypeError("Object.defineProperty called on non-object");return Object.prototype.__defineGetter__&&"get"in n&&Object.prototype.__defineGetter__.call(r,e,n.get),Object.prototype.__defineSetter__&&"set"in n&&Object.prototype.__defineSetter__.call(r,e,n.set),"value"in n&&(r[e]=n.value),r})}(),function(){function a(t){if((t=i(t))<0)throw RangeError("ArrayBuffer size is not a small enough positive integer.");N(this,"byteLength",{value:t}),N(this,"_bytes",{value:Array(t)});for(var r=0;r<t;r+=1)this._bytes[r]=0}function h(){if(!arguments.length||"object"!=typeof arguments[0])return function(t){if((t=i(t))<0)throw RangeError("length is not a small enough positive integer.");N(this,"length",{value:t}),N(this,"byteLength",{value:t*this.BYTES_PER_ELEMENT}),N(this,"buffer",{value:new a(this.byteLength)}),N(this,"byteOffset",{value:0})}.apply(this,arguments);if(arguments.length>=1&&"object"===r(arguments[0])&&arguments[0]instanceof h)return function(t){if(this.constructor!==t.constructor)throw TypeError();var r=t.length*this.BYTES_PER_ELEMENT;N(this,"buffer",{value:new a(r)}),N(this,"byteLength",{value:r}),N(this,"byteOffset",{value:0}),N(this,"length",{value:t.length});for(var e=0;e<this.length;e+=1)this._setter(e,t._getter(e))}.apply(this,arguments);if(arguments.length>=1&&"object"===r(arguments[0])&&!(arguments[0]instanceof h)&&!(arguments[0]instanceof a||"ArrayBuffer"===e(arguments[0])))return function(t){var r=t.length*this.BYTES_PER_ELEMENT;N(this,"buffer",{value:new a(r)}),N(this,"byteLength",{value:r}),N(this,"byteOffset",{value:0}),N(this,"length",{value:t.length});for(var e=0;e<this.length;e+=1){var n=t[e];this._setter(e,Number(n))}}.apply(this,arguments);if(arguments.length>=1&&"object"===r(arguments[0])&&(arguments[0]instanceof a||"ArrayBuffer"===e(arguments[0])))return function(t,r,e){if((r=f(r))>t.byteLength)throw RangeError("byteOffset out of range");if(r%this.BYTES_PER_ELEMENT)throw RangeError("buffer length minus the byteOffset is not a multiple of the element size.");if(e===P){var n=t.byteLength-r;if(n%this.BYTES_PER_ELEMENT)throw RangeError("length of buffer minus byteOffset not a multiple of the element size");e=n/this.BYTES_PER_ELEMENT}else e=f(e),n=e*this.BYTES_PER_ELEMENT;if(r+n>t.byteLength)throw RangeError("byteOffset and length reference an area beyond the end of the buffer");N(this,"buffer",{value:t}),N(this,"byteLength",{value:n}),N(this,"byteOffset",{value:r}),N(this,"length",{value:e})}.apply(this,arguments);throw TypeError()}function A(t,r,e){var n=function(){N(this,"constructor",{value:n}),h.apply(this,arguments),u(this)};"__proto__"in n?n.__proto__=h:(n.from=h.from,n.of=h.of),n.BYTES_PER_ELEMENT=t;var o=function(){};return o.prototype=j,n.prototype=new o,Object.defineProperty(n.prototype,"BYTES_PER_ELEMENT",{value:t}),Object.defineProperty(n.prototype,"_pack",{value:r}),Object.defineProperty(n.prototype,"_unpack",{value:e}),n}t.ArrayBuffer=a,N(h,"from",{value:function(t){return new this(t)}}),N(h,"of",{value:function(){return new this(arguments)}});var j={};h.prototype=j,N(h.prototype,"_getter",{value:function(t){if(arguments.length<1)throw SyntaxError("Not enough arguments");if((t=f(t))>=this.length)return P;var r,e,n=[];for(r=0,e=this.byteOffset+t*this.BYTES_PER_ELEMENT;r<this.BYTES_PER_ELEMENT;r+=1,e+=1)n.push(this.buffer._bytes[e]);return this._unpack(n)}}),N(h.prototype,"get",{value:h.prototype._getter}),N(h.prototype,"_setter",{value:function(t,r){if(arguments.length<2)throw SyntaxError("Not enough arguments");if(!((t=f(t))>=this.length)){var e,n,o=this._pack(r);for(e=0,n=this.byteOffset+t*this.BYTES_PER_ELEMENT;e<this.BYTES_PER_ELEMENT;e+=1,n+=1)this.buffer._bytes[n]=o[e]}}}),N(h.prototype,"constructor",{value:h}),N(h.prototype,"copyWithin",{value:function(t,r){var e=arguments[2],n=o(this),u=n.length,a=f(u);a=I(a,0);var h,s=i(t);h=s<0?I(a+s,0):x(s,a);var l,y=i(r);l=y<0?I(a+y,0):x(y,a);var p;p=e===P?a:i(e);var c;c=p<0?I(a+p,0):x(p,a);var g,E=x(c-l,a-h);for(l<h&&h<l+E?(g=-1,l=l+E-1,h=h+E-1):g=1;E>0;)n._setter(h,n._getter(l)),l+=g,h+=g,E-=1;return n}}),N(h.prototype,"every",{value:function(t){if(this===P||null===this)throw TypeError();var r=Object(this),e=f(r.length);if(!n(t))throw TypeError();for(var o=arguments[1],i=0;i<e;i++)if(!t.call(o,r._getter(i),i,r))return!1;return!0}}),N(h.prototype,"fill",{value:function(t){var r=arguments[1],e=arguments[2],n=o(this),u=n.length,a=f(u);a=I(a,0);var h,s=i(r);h=s<0?I(a+s,0):x(s,a);var l;l=e===P?a:i(e);var y;for(y=l<0?I(a+l,0):x(l,a);h<y;)n._setter(h,t),h+=1;return n}}),N(h.prototype,"filter",{value:function(t){if(this===P||null===this)throw TypeError();var r=Object(this),e=f(r.length);if(!n(t))throw TypeError();for(var o=[],i=arguments[1],u=0;u<e;u++){var a=r._getter(u);t.call(i,a,u,r)&&o.push(a)}return new this.constructor(o)}}),N(h.prototype,"find",{value:function(t){var r=o(this),e=r.length,i=f(e);if(!n(t))throw TypeError();for(var u=arguments.length>1?arguments[1]:P,a=0;a<i;){var h=r._getter(a),s=t.call(u,h,a,r);if(Boolean(s))return h;++a}return P}}),N(h.prototype,"findIndex",{value:function(t){var r=o(this),e=r.length,i=f(e);if(!n(t))throw TypeError();for(var u=arguments.length>1?arguments[1]:P,a=0;a<i;){var h=r._getter(a),s=t.call(u,h,a,r);if(Boolean(s))return a;++a}return-1}}),N(h.prototype,"forEach",{value:function(t){if(this===P||null===this)throw TypeError();var r=Object(this),e=f(r.length);if(!n(t))throw TypeError();for(var o=arguments[1],i=0;i<e;i++)t.call(o,r._getter(i),i,r)}}),N(h.prototype,"indexOf",{value:function(t){if(this===P||null===this)throw TypeError();var r=Object(this),e=f(r.length);if(0===e)return-1;var n=0;if(arguments.length>0&&(n=Number(arguments[1]),n!==n?n=0:0!==n&&n!==1/0&&n!==-1/0&&(n=(n>0||-1)*Y(m(n)))),n>=e)return-1;for(var o=n>=0?n:I(e-m(n),0);o<e;o++)if(r._getter(o)===t)return o;return-1}}),N(h.prototype,"join",{value:function(t){if(this===P||null===this)throw TypeError();for(var r=Object(this),e=f(r.length),n=Array(e),o=0;o<e;++o)n[o]=r._getter(o);return n.join(t===P?",":t)}}),N(h.prototype,"lastIndexOf",{value:function(t){if(this===P||null===this)throw TypeError();var r=Object(this),e=f(r.length);if(0===e)return-1;var n=e;arguments.length>1&&(n=Number(arguments[1]),n!==n?n=0:0!==n&&n!==1/0&&n!==-1/0&&(n=(n>0||-1)*Y(m(n))));for(var o=n>=0?x(n,e-1):e-m(n);o>=0;o--)if(r._getter(o)===t)return o;return-1}}),N(h.prototype,"map",{value:function(t){if(this===P||null===this)throw TypeError();var r=Object(this),e=f(r.length);if(!n(t))throw TypeError();var o=[];o.length=e;for(var i=arguments[1],u=0;u<e;u++)o[u]=t.call(i,r._getter(u),u,r);return new this.constructor(o)}}),N(h.prototype,"reduce",{value:function(t){if(this===P||null===this)throw TypeError();var r=Object(this),e=f(r.length);if(!n(t))throw TypeError();if(0===e&&1===arguments.length)throw TypeError();var o,i=0;for(o=arguments.length>=2?arguments[1]:r._getter(i++);i<e;)o=t.call(P,o,r._getter(i),i,r),i++;return o}}),N(h.prototype,"reduceRight",{value:function(t){if(this===P||null===this)throw TypeError();var r=Object(this),e=f(r.length);if(!n(t))throw TypeError();if(0===e&&1===arguments.length)throw TypeError();var o,i=e-1;for(o=arguments.length>=2?arguments[1]:r._getter(i--);i>=0;)o=t.call(P,o,r._getter(i),i,r),i--;return o}}),N(h.prototype,"reverse",{value:function(){if(this===P||null===this)throw TypeError();for(var t=Object(this),r=f(t.length),e=Y(r/2),n=0,o=r-1;n<e;++n,--o){var i=t._getter(n);t._setter(n,t._getter(o)),t._setter(o,i)}return t}}),N(h.prototype,"set",{value:function(t,r){if(arguments.length<1)throw SyntaxError("Not enough arguments");var e,n,o,i,u,a,h,s,l,y;if("object"==typeof arguments[0]&&arguments[0].constructor===this.constructor){if(e=arguments[0],(o=f(arguments[1]))+e.length>this.length)throw RangeError("Offset plus length of array is out of range");if(s=this.byteOffset+o*this.BYTES_PER_ELEMENT,l=e.length*this.BYTES_PER_ELEMENT,e.buffer===this.buffer){for(y=[],u=0,a=e.byteOffset;u<l;u+=1,a+=1)y[u]=e.buffer._bytes[a];for(u=0,h=s;u<l;u+=1,h+=1)this.buffer._bytes[h]=y[u]}else for(u=0,a=e.byteOffset,h=s;u<l;u+=1,a+=1,h+=1)this.buffer._bytes[h]=e.buffer._bytes[a]}else{if("object"!=typeof arguments[0]||void 0===arguments[0].length)throw TypeError("Unexpected argument type(s)");if(n=arguments[0],i=f(n.length),(o=f(arguments[1]))+i>this.length)throw RangeError("Offset plus length of array is out of range");for(u=0;u<i;u+=1)a=n[u],this._setter(o+u,Number(a))}}}),N(h.prototype,"slice",{value:function(t,r){for(var e=o(this),n=e.length,u=f(n),a=i(t),h=a<0?I(u+a,0):x(a,u),s=r===P?u:i(r),l=s<0?I(u+s,0):x(s,u),y=l-h,p=e.constructor,c=new p(y),g=0;h<l;){var E=e._getter(h);c._setter(g,E),++h,++g}return c}}),N(h.prototype,"some",{value:function(t){if(this===P||null===this)throw TypeError();var r=Object(this),e=f(r.length);if(!n(t))throw TypeError();for(var o=arguments[1],i=0;i<e;i++)if(t.call(o,r._getter(i),i,r))return!0;return!1}}),N(h.prototype,"sort",{value:function(t){function r(r,e){return r!==r&&e!==e?0:r!==r?1:e!==e?-1:t!==P?t(r,e):r<e?-1:r>e?1:0}if(this===P||null===this)throw TypeError();for(var e=Object(this),n=f(e.length),o=Array(n),i=0;i<n;++i)o[i]=e._getter(i);for(o.sort(r),i=0;i<n;++i)e._setter(i,o[i]);return e}}),N(h.prototype,"subarray",{value:function(t,r){function e(t,r,e){return t<r?r:t>e?e:t}t=i(t),r=i(r),arguments.length<1&&(t=0),arguments.length<2&&(r=this.length),t<0&&(t=this.length+t),r<0&&(r=this.length+r),t=e(t,0,this.length),r=e(r,0,this.length);var n=r-t;return n<0&&(n=0),new this.constructor(this.buffer,this.byteOffset+t*this.BYTES_PER_ELEMENT,n)}});var S=A(1,s,l),M=A(1,y,p),U=A(1,c,p),F=A(2,g,E),k=A(2,v,b),z=A(4,_,T),C=A(4,w,O),D=A(4,B,d),G=A(8,R,L);t.Int8Array=S,t.Uint8Array=M,t.Uint8ClampedArray=U,t.Int16Array=F,t.Uint16Array=k,t.Int32Array=z,t.Uint32Array=C,t.Float32Array=D,t.Float64Array=G}(),function(){function r(t,r){return n(t.get)?t.get(r):t[r]}function o(t,r,n){if(!(t instanceof ArrayBuffer||"ArrayBuffer"===e(t)))throw TypeError();if((r=f(r))>t.byteLength)throw RangeError("byteOffset out of range");if(n=n===P?t.byteLength-r:f(n),r+n>t.byteLength)throw RangeError("byteOffset and length reference an area beyond the end of the buffer");N(this,"buffer",{value:t}),N(this,"byteLength",{value:n}),N(this,"byteOffset",{value:r})}function i(t){return function e(n,o){if((n=f(n))+t.BYTES_PER_ELEMENT>this.byteLength)throw RangeError("Array index out of range");n+=this.byteOffset;for(var i=new Uint8Array(this.buffer,n,t.BYTES_PER_ELEMENT),u=[],h=0;h<t.BYTES_PER_ELEMENT;h+=1)u.push(r(i,h));return Boolean(o)===Boolean(a)&&u.reverse(),r(new t(new Uint8Array(u).buffer),0)}}function u(t){return function e(n,o,i){if((n=f(n))+t.BYTES_PER_ELEMENT>this.byteLength)throw RangeError("Array index out of range");var u,h,s=new t([o]),l=new Uint8Array(s.buffer),y=[];for(u=0;u<t.BYTES_PER_ELEMENT;u+=1)y.push(r(l,u));Boolean(i)===Boolean(a)&&y.reverse(),h=new Uint8Array(this.buffer,n,t.BYTES_PER_ELEMENT),h.set(y)}}var a=function(){var t=new Uint16Array([4660]);return 18===r(new Uint8Array(t.buffer),0)}();N(o.prototype,"getUint8",{value:i(Uint8Array)}),N(o.prototype,"getInt8",{value:i(Int8Array)}),N(o.prototype,"getUint16",{value:i(Uint16Array)}),N(o.prototype,"getInt16",{value:i(Int16Array)}),N(o.prototype,"getUint32",{value:i(Uint32Array)}),N(o.prototype,"getInt32",{value:i(Int32Array)}),N(o.prototype,"getFloat32",{value:i(Float32Array)}),N(o.prototype,"getFloat64",{value:i(Float64Array)}),N(o.prototype,"setUint8",{value:u(Uint8Array)}),N(o.prototype,"setInt8",{value:u(Int8Array)}),N(o.prototype,"setUint16",{value:u(Uint16Array)}),N(o.prototype,"setInt16",{value:u(Int16Array)}),N(o.prototype,"setUint32",{value:u(Uint32Array)}),N(o.prototype,"setInt32",{value:u(Int32Array)}),N(o.prototype,"setFloat32",{value:u(Float32Array)}),N(o.prototype,"setFloat64",{value:u(Float64Array)}),t.DataView=o}()}(self);
@@ -274,6 +274,12 @@
274
274
  function unpackF32(b) { return unpackIEEE754(b, 8, 23); }
275
275
  function packF32(v) { return packIEEE754(v, 8, 23); }
276
276
 
277
+ function ObjectDefinePropertyConfigurable(o, prop, desc) {
278
+ desc.writable = true;
279
+ desc.configurable = true;
280
+ return Object.defineProperty(o, prop, desc);
281
+ }
282
+
277
283
  //
278
284
  // 3 The ArrayBuffer Type
279
285
  //
@@ -283,14 +289,14 @@
283
289
  function ArrayBuffer(length) {
284
290
  length = ToInt32(length);
285
291
  if (length < 0) throw RangeError('ArrayBuffer size is not a small enough positive integer.');
286
- Object.defineProperty(this, 'byteLength', {value: length});
287
- Object.defineProperty(this, '_bytes', {value: Array(length)});
292
+ ObjectDefinePropertyConfigurable(this, 'byteLength', {value: length});
293
+ ObjectDefinePropertyConfigurable(this, '_bytes', {value: Array(length)});
288
294
 
289
295
  for (var i = 0; i < length; i += 1)
290
296
  this._bytes[i] = 0;
291
297
  }
292
298
 
293
- global.ArrayBuffer = global.ArrayBuffer || ArrayBuffer;
299
+ global.ArrayBuffer = ArrayBuffer;
294
300
 
295
301
  //
296
302
  // 5 The Typed Array View Types
@@ -303,10 +309,10 @@
303
309
  return (function(length) {
304
310
  length = ToInt32(length);
305
311
  if (length < 0) throw RangeError('length is not a small enough positive integer.');
306
- Object.defineProperty(this, 'length', {value: length});
307
- Object.defineProperty(this, 'byteLength', {value: length * this.BYTES_PER_ELEMENT});
308
- Object.defineProperty(this, 'buffer', {value: new ArrayBuffer(this.byteLength)});
309
- Object.defineProperty(this, 'byteOffset', {value: 0});
312
+ ObjectDefinePropertyConfigurable(this, 'length', {value: length});
313
+ ObjectDefinePropertyConfigurable(this, 'byteLength', {value: length * this.BYTES_PER_ELEMENT});
314
+ ObjectDefinePropertyConfigurable(this, 'buffer', {value: new ArrayBuffer(this.byteLength)});
315
+ ObjectDefinePropertyConfigurable(this, 'byteOffset', {value: 0});
310
316
 
311
317
  }).apply(this, arguments);
312
318
  }
@@ -319,10 +325,10 @@
319
325
  if (this.constructor !== typedArray.constructor) throw TypeError();
320
326
 
321
327
  var byteLength = typedArray.length * this.BYTES_PER_ELEMENT;
322
- Object.defineProperty(this, 'buffer', {value: new ArrayBuffer(byteLength)});
323
- Object.defineProperty(this, 'byteLength', {value: byteLength});
324
- Object.defineProperty(this, 'byteOffset', {value: 0});
325
- Object.defineProperty(this, 'length', {value: typedArray.length});
328
+ ObjectDefinePropertyConfigurable(this, 'buffer', {value: new ArrayBuffer(byteLength)});
329
+ ObjectDefinePropertyConfigurable(this, 'byteLength', {value: byteLength});
330
+ ObjectDefinePropertyConfigurable(this, 'byteOffset', {value: 0});
331
+ ObjectDefinePropertyConfigurable(this, 'length', {value: typedArray.length});
326
332
 
327
333
  for (var i = 0; i < this.length; i += 1)
328
334
  this._setter(i, typedArray._getter(i));
@@ -338,10 +344,10 @@
338
344
  return (function(array) {
339
345
 
340
346
  var byteLength = array.length * this.BYTES_PER_ELEMENT;
341
- Object.defineProperty(this, 'buffer', {value: new ArrayBuffer(byteLength)});
342
- Object.defineProperty(this, 'byteLength', {value: byteLength});
343
- Object.defineProperty(this, 'byteOffset', {value: 0});
344
- Object.defineProperty(this, 'length', {value: array.length});
347
+ ObjectDefinePropertyConfigurable(this, 'buffer', {value: new ArrayBuffer(byteLength)});
348
+ ObjectDefinePropertyConfigurable(this, 'byteLength', {value: byteLength});
349
+ ObjectDefinePropertyConfigurable(this, 'byteOffset', {value: 0});
350
+ ObjectDefinePropertyConfigurable(this, 'length', {value: array.length});
345
351
 
346
352
  for (var i = 0; i < this.length; i += 1) {
347
353
  var s = array[i];
@@ -379,10 +385,10 @@
379
385
  if ((byteOffset + byteLength) > buffer.byteLength)
380
386
  throw RangeError('byteOffset and length reference an area beyond the end of the buffer');
381
387
 
382
- Object.defineProperty(this, 'buffer', {value: buffer});
383
- Object.defineProperty(this, 'byteLength', {value: byteLength});
384
- Object.defineProperty(this, 'byteOffset', {value: byteOffset});
385
- Object.defineProperty(this, 'length', {value: length});
388
+ ObjectDefinePropertyConfigurable(this, 'buffer', {value: buffer});
389
+ ObjectDefinePropertyConfigurable(this, 'byteLength', {value: byteLength});
390
+ ObjectDefinePropertyConfigurable(this, 'byteOffset', {value: byteOffset});
391
+ ObjectDefinePropertyConfigurable(this, 'length', {value: length});
386
392
 
387
393
  }).apply(this, arguments);
388
394
  }
@@ -394,12 +400,12 @@
394
400
  // Properties of the %TypedArray Instrinsic Object
395
401
 
396
402
  // %TypedArray%.from ( source , mapfn=undefined, thisArg=undefined )
397
- Object.defineProperty($TypedArray$, 'from', {value: function(iterable) {
403
+ ObjectDefinePropertyConfigurable($TypedArray$, 'from', {value: function(iterable) {
398
404
  return new this(iterable);
399
405
  }});
400
406
 
401
407
  // %TypedArray%.of ( ...items )
402
- Object.defineProperty($TypedArray$, 'of', {value: function(/*...items*/) {
408
+ ObjectDefinePropertyConfigurable($TypedArray$, 'of', {value: function(/*...items*/) {
403
409
  return new this(arguments);
404
410
  }});
405
411
 
@@ -408,7 +414,7 @@
408
414
  $TypedArray$.prototype = $TypedArrayPrototype$;
409
415
 
410
416
  // WebIDL: getter type (unsigned long index);
411
- Object.defineProperty($TypedArray$.prototype, '_getter', {value: function(index) {
417
+ ObjectDefinePropertyConfigurable($TypedArray$.prototype, '_getter', {value: function(index) {
412
418
  if (arguments.length < 1) throw SyntaxError('Not enough arguments');
413
419
 
414
420
  index = ToUint32(index);
@@ -425,10 +431,10 @@
425
431
  }});
426
432
 
427
433
  // NONSTANDARD: convenience alias for getter: type get(unsigned long index);
428
- Object.defineProperty($TypedArray$.prototype, 'get', {value: $TypedArray$.prototype._getter});
434
+ ObjectDefinePropertyConfigurable($TypedArray$.prototype, 'get', {value: $TypedArray$.prototype._getter});
429
435
 
430
436
  // WebIDL: setter void (unsigned long index, type value);
431
- Object.defineProperty($TypedArray$.prototype, '_setter', {value: function(index, value) {
437
+ ObjectDefinePropertyConfigurable($TypedArray$.prototype, '_setter', {value: function(index, value) {
432
438
  if (arguments.length < 2) throw SyntaxError('Not enough arguments');
433
439
 
434
440
  index = ToUint32(index);
@@ -449,10 +455,10 @@
449
455
  // -- applied directly to the object in the constructor
450
456
 
451
457
  // %TypedArray%.prototype.constructor
452
- Object.defineProperty($TypedArray$.prototype, 'constructor', {value: $TypedArray$});
458
+ ObjectDefinePropertyConfigurable($TypedArray$.prototype, 'constructor', {value: $TypedArray$});
453
459
 
454
460
  // %TypedArray%.prototype.copyWithin (target, start, end = this.length )
455
- Object.defineProperty($TypedArray$.prototype, 'copyWithin', {value: function(target, start) {
461
+ ObjectDefinePropertyConfigurable($TypedArray$.prototype, 'copyWithin', {value: function(target, start) {
456
462
  var end = arguments[2];
457
463
 
458
464
  var o = ToObject(this);
@@ -503,7 +509,7 @@
503
509
  // -- defined in es6.js to shim browsers w/ native TypedArrays
504
510
 
505
511
  // %TypedArray%.prototype.every ( callbackfn, thisArg = undefined )
506
- Object.defineProperty($TypedArray$.prototype, 'every', {value: function(callbackfn) {
512
+ ObjectDefinePropertyConfigurable($TypedArray$.prototype, 'every', {value: function(callbackfn) {
507
513
  if (this === undefined || this === null) throw TypeError();
508
514
  var t = Object(this);
509
515
  var len = ToUint32(t.length);
@@ -517,7 +523,7 @@
517
523
  }});
518
524
 
519
525
  // %TypedArray%.prototype.fill (value, start = 0, end = this.length )
520
- Object.defineProperty($TypedArray$.prototype, 'fill', {value: function(value) {
526
+ ObjectDefinePropertyConfigurable($TypedArray$.prototype, 'fill', {value: function(value) {
521
527
  var start = arguments[1],
522
528
  end = arguments[2];
523
529
 
@@ -549,7 +555,7 @@
549
555
  }});
550
556
 
551
557
  // %TypedArray%.prototype.filter ( callbackfn, thisArg = undefined )
552
- Object.defineProperty($TypedArray$.prototype, 'filter', {value: function(callbackfn) {
558
+ ObjectDefinePropertyConfigurable($TypedArray$.prototype, 'filter', {value: function(callbackfn) {
553
559
  if (this === undefined || this === null) throw TypeError();
554
560
  var t = Object(this);
555
561
  var len = ToUint32(t.length);
@@ -565,7 +571,7 @@
565
571
  }});
566
572
 
567
573
  // %TypedArray%.prototype.find (predicate, thisArg = undefined)
568
- Object.defineProperty($TypedArray$.prototype, 'find', {value: function(predicate) {
574
+ ObjectDefinePropertyConfigurable($TypedArray$.prototype, 'find', {value: function(predicate) {
569
575
  var o = ToObject(this);
570
576
  var lenValue = o.length;
571
577
  var len = ToUint32(lenValue);
@@ -583,7 +589,7 @@
583
589
  }});
584
590
 
585
591
  // %TypedArray%.prototype.findIndex ( predicate, thisArg = undefined )
586
- Object.defineProperty($TypedArray$.prototype, 'findIndex', {value: function(predicate) {
592
+ ObjectDefinePropertyConfigurable($TypedArray$.prototype, 'findIndex', {value: function(predicate) {
587
593
  var o = ToObject(this);
588
594
  var lenValue = o.length;
589
595
  var len = ToUint32(lenValue);
@@ -601,7 +607,7 @@
601
607
  }});
602
608
 
603
609
  // %TypedArray%.prototype.forEach ( callbackfn, thisArg = undefined )
604
- Object.defineProperty($TypedArray$.prototype, 'forEach', {value: function(callbackfn) {
610
+ ObjectDefinePropertyConfigurable($TypedArray$.prototype, 'forEach', {value: function(callbackfn) {
605
611
  if (this === undefined || this === null) throw TypeError();
606
612
  var t = Object(this);
607
613
  var len = ToUint32(t.length);
@@ -612,7 +618,7 @@
612
618
  }});
613
619
 
614
620
  // %TypedArray%.prototype.indexOf (searchElement, fromIndex = 0 )
615
- Object.defineProperty($TypedArray$.prototype, 'indexOf', {value: function(searchElement) {
621
+ ObjectDefinePropertyConfigurable($TypedArray$.prototype, 'indexOf', {value: function(searchElement) {
616
622
  if (this === undefined || this === null) throw TypeError();
617
623
  var t = Object(this);
618
624
  var len = ToUint32(t.length);
@@ -637,7 +643,7 @@
637
643
  }});
638
644
 
639
645
  // %TypedArray%.prototype.join ( separator )
640
- Object.defineProperty($TypedArray$.prototype, 'join', {value: function(separator) {
646
+ ObjectDefinePropertyConfigurable($TypedArray$.prototype, 'join', {value: function(separator) {
641
647
  if (this === undefined || this === null) throw TypeError();
642
648
  var t = Object(this);
643
649
  var len = ToUint32(t.length);
@@ -651,7 +657,7 @@
651
657
  // -- defined in es6.js to shim browsers w/ native TypedArrays
652
658
 
653
659
  // %TypedArray%.prototype.lastIndexOf ( searchElement, fromIndex = this.length-1 )
654
- Object.defineProperty($TypedArray$.prototype, 'lastIndexOf', {value: function(searchElement) {
660
+ ObjectDefinePropertyConfigurable($TypedArray$.prototype, 'lastIndexOf', {value: function(searchElement) {
655
661
  if (this === undefined || this === null) throw TypeError();
656
662
  var t = Object(this);
657
663
  var len = ToUint32(t.length);
@@ -677,7 +683,7 @@
677
683
  // -- applied directly to the object in the constructor
678
684
 
679
685
  // %TypedArray%.prototype.map ( callbackfn, thisArg = undefined )
680
- Object.defineProperty($TypedArray$.prototype, 'map', {value: function(callbackfn) {
686
+ ObjectDefinePropertyConfigurable($TypedArray$.prototype, 'map', {value: function(callbackfn) {
681
687
  if (this === undefined || this === null) throw TypeError();
682
688
  var t = Object(this);
683
689
  var len = ToUint32(t.length);
@@ -690,7 +696,7 @@
690
696
  }});
691
697
 
692
698
  // %TypedArray%.prototype.reduce ( callbackfn [, initialValue] )
693
- Object.defineProperty($TypedArray$.prototype, 'reduce', {value: function(callbackfn) {
699
+ ObjectDefinePropertyConfigurable($TypedArray$.prototype, 'reduce', {value: function(callbackfn) {
694
700
  if (this === undefined || this === null) throw TypeError();
695
701
  var t = Object(this);
696
702
  var len = ToUint32(t.length);
@@ -712,7 +718,7 @@
712
718
  }});
713
719
 
714
720
  // %TypedArray%.prototype.reduceRight ( callbackfn [, initialValue] )
715
- Object.defineProperty($TypedArray$.prototype, 'reduceRight', {value: function(callbackfn) {
721
+ ObjectDefinePropertyConfigurable($TypedArray$.prototype, 'reduceRight', {value: function(callbackfn) {
716
722
  if (this === undefined || this === null) throw TypeError();
717
723
  var t = Object(this);
718
724
  var len = ToUint32(t.length);
@@ -734,7 +740,7 @@
734
740
  }});
735
741
 
736
742
  // %TypedArray%.prototype.reverse ( )
737
- Object.defineProperty($TypedArray$.prototype, 'reverse', {value: function() {
743
+ ObjectDefinePropertyConfigurable($TypedArray$.prototype, 'reverse', {value: function() {
738
744
  if (this === undefined || this === null) throw TypeError();
739
745
  var t = Object(this);
740
746
  var len = ToUint32(t.length);
@@ -751,7 +757,7 @@
751
757
  // %TypedArray%.prototype.set(typedArray, offset = 0 )
752
758
  // WebIDL: void set(TypedArray array, optional unsigned long offset);
753
759
  // WebIDL: void set(sequence<type> array, optional unsigned long offset);
754
- Object.defineProperty($TypedArray$.prototype, 'set', {value: function(index, value) {
760
+ ObjectDefinePropertyConfigurable($TypedArray$.prototype, 'set', {value: function(index, value) {
755
761
  if (arguments.length < 1) throw SyntaxError('Not enough arguments');
756
762
  var array, sequence, offset, len,
757
763
  i, s, d,
@@ -803,7 +809,7 @@
803
809
  }});
804
810
 
805
811
  // %TypedArray%.prototype.slice ( start, end )
806
- Object.defineProperty($TypedArray$.prototype, 'slice', {value: function(start, end) {
812
+ ObjectDefinePropertyConfigurable($TypedArray$.prototype, 'slice', {value: function(start, end) {
807
813
  var o = ToObject(this);
808
814
  var lenVal = o.length;
809
815
  var len = ToUint32(lenVal);
@@ -825,7 +831,7 @@
825
831
  }});
826
832
 
827
833
  // %TypedArray%.prototype.some ( callbackfn, thisArg = undefined )
828
- Object.defineProperty($TypedArray$.prototype, 'some', {value: function(callbackfn) {
834
+ ObjectDefinePropertyConfigurable($TypedArray$.prototype, 'some', {value: function(callbackfn) {
829
835
  if (this === undefined || this === null) throw TypeError();
830
836
  var t = Object(this);
831
837
  var len = ToUint32(t.length);
@@ -840,7 +846,7 @@
840
846
  }});
841
847
 
842
848
  // %TypedArray%.prototype.sort ( comparefn )
843
- Object.defineProperty($TypedArray$.prototype, 'sort', {value: function(comparefn) {
849
+ ObjectDefinePropertyConfigurable($TypedArray$.prototype, 'sort', {value: function(comparefn) {
844
850
  if (this === undefined || this === null) throw TypeError();
845
851
  var t = Object(this);
846
852
  var len = ToUint32(t.length);
@@ -866,7 +872,7 @@
866
872
 
867
873
  // %TypedArray%.prototype.subarray(begin = 0, end = this.length )
868
874
  // WebIDL: TypedArray subarray(long begin, optional long end);
869
- Object.defineProperty($TypedArray$.prototype, 'subarray', {value: function(start, end) {
875
+ ObjectDefinePropertyConfigurable($TypedArray$.prototype, 'subarray', {value: function(start, end) {
870
876
  function clamp(v, min, max) { return v < min ? min : v > max ? max : v; }
871
877
 
872
878
  start = ToInt32(start);
@@ -901,7 +907,7 @@
901
907
  // Each TypedArray type requires a distinct constructor instance with
902
908
  // identical logic, which this produces.
903
909
  var TypedArray = function() {
904
- Object.defineProperty(this, 'constructor', {value: TypedArray});
910
+ ObjectDefinePropertyConfigurable(this, 'constructor', {value: TypedArray});
905
911
  $TypedArray$.apply(this, arguments);
906
912
  makeArrayAccessors(this);
907
913
  };
@@ -936,15 +942,15 @@
936
942
  var Float32Array = makeTypedArray(4, packF32, unpackF32);
937
943
  var Float64Array = makeTypedArray(8, packF64, unpackF64);
938
944
 
939
- global.Int8Array = global.Int8Array || Int8Array;
940
- global.Uint8Array = global.Uint8Array || Uint8Array;
941
- global.Uint8ClampedArray = global.Uint8ClampedArray || Uint8ClampedArray;
942
- global.Int16Array = global.Int16Array || Int16Array;
943
- global.Uint16Array = global.Uint16Array || Uint16Array;
944
- global.Int32Array = global.Int32Array || Int32Array;
945
- global.Uint32Array = global.Uint32Array || Uint32Array;
946
- global.Float32Array = global.Float32Array || Float32Array;
947
- global.Float64Array = global.Float64Array || Float64Array;
945
+ global.Int8Array = Int8Array;
946
+ global.Uint8Array = Uint8Array;
947
+ global.Uint8ClampedArray = Uint8ClampedArray;
948
+ global.Int16Array = Int16Array;
949
+ global.Uint16Array = Uint16Array;
950
+ global.Int32Array = Int32Array;
951
+ global.Uint32Array = Uint32Array;
952
+ global.Float32Array = Float32Array;
953
+ global.Float64Array = Float64Array;
948
954
  }());
949
955
 
950
956
  //
@@ -981,9 +987,9 @@
981
987
  if ((byteOffset + byteLength) > buffer.byteLength)
982
988
  throw RangeError('byteOffset and length reference an area beyond the end of the buffer');
983
989
 
984
- Object.defineProperty(this, 'buffer', {value: buffer});
985
- Object.defineProperty(this, 'byteLength', {value: byteLength});
986
- Object.defineProperty(this, 'byteOffset', {value: byteOffset});
990
+ ObjectDefinePropertyConfigurable(this, 'buffer', {value: buffer});
991
+ ObjectDefinePropertyConfigurable(this, 'byteLength', {value: byteLength});
992
+ ObjectDefinePropertyConfigurable(this, 'byteOffset', {value: byteOffset});
987
993
  };
988
994
 
989
995
  // get DataView.prototype.buffer
@@ -1012,14 +1018,14 @@
1012
1018
  };
1013
1019
  }
1014
1020
 
1015
- Object.defineProperty(DataView.prototype, 'getUint8', {value: makeGetter(Uint8Array)});
1016
- Object.defineProperty(DataView.prototype, 'getInt8', {value: makeGetter(Int8Array)});
1017
- Object.defineProperty(DataView.prototype, 'getUint16', {value: makeGetter(Uint16Array)});
1018
- Object.defineProperty(DataView.prototype, 'getInt16', {value: makeGetter(Int16Array)});
1019
- Object.defineProperty(DataView.prototype, 'getUint32', {value: makeGetter(Uint32Array)});
1020
- Object.defineProperty(DataView.prototype, 'getInt32', {value: makeGetter(Int32Array)});
1021
- Object.defineProperty(DataView.prototype, 'getFloat32', {value: makeGetter(Float32Array)});
1022
- Object.defineProperty(DataView.prototype, 'getFloat64', {value: makeGetter(Float64Array)});
1021
+ ObjectDefinePropertyConfigurable(DataView.prototype, 'getUint8', {value: makeGetter(Uint8Array)});
1022
+ ObjectDefinePropertyConfigurable(DataView.prototype, 'getInt8', {value: makeGetter(Int8Array)});
1023
+ ObjectDefinePropertyConfigurable(DataView.prototype, 'getUint16', {value: makeGetter(Uint16Array)});
1024
+ ObjectDefinePropertyConfigurable(DataView.prototype, 'getInt16', {value: makeGetter(Int16Array)});
1025
+ ObjectDefinePropertyConfigurable(DataView.prototype, 'getUint32', {value: makeGetter(Uint32Array)});
1026
+ ObjectDefinePropertyConfigurable(DataView.prototype, 'getInt32', {value: makeGetter(Int32Array)});
1027
+ ObjectDefinePropertyConfigurable(DataView.prototype, 'getFloat32', {value: makeGetter(Float32Array)});
1028
+ ObjectDefinePropertyConfigurable(DataView.prototype, 'getFloat64', {value: makeGetter(Float64Array)});
1023
1029
 
1024
1030
  function makeSetter(arrayType) {
1025
1031
  return function SetViewValue(byteOffset, value, littleEndian) {
@@ -1045,16 +1051,16 @@
1045
1051
  };
1046
1052
  }
1047
1053
 
1048
- Object.defineProperty(DataView.prototype, 'setUint8', {value: makeSetter(Uint8Array)});
1049
- Object.defineProperty(DataView.prototype, 'setInt8', {value: makeSetter(Int8Array)});
1050
- Object.defineProperty(DataView.prototype, 'setUint16', {value: makeSetter(Uint16Array)});
1051
- Object.defineProperty(DataView.prototype, 'setInt16', {value: makeSetter(Int16Array)});
1052
- Object.defineProperty(DataView.prototype, 'setUint32', {value: makeSetter(Uint32Array)});
1053
- Object.defineProperty(DataView.prototype, 'setInt32', {value: makeSetter(Int32Array)});
1054
- Object.defineProperty(DataView.prototype, 'setFloat32', {value: makeSetter(Float32Array)});
1055
- Object.defineProperty(DataView.prototype, 'setFloat64', {value: makeSetter(Float64Array)});
1054
+ ObjectDefinePropertyConfigurable(DataView.prototype, 'setUint8', {value: makeSetter(Uint8Array)});
1055
+ ObjectDefinePropertyConfigurable(DataView.prototype, 'setInt8', {value: makeSetter(Int8Array)});
1056
+ ObjectDefinePropertyConfigurable(DataView.prototype, 'setUint16', {value: makeSetter(Uint16Array)});
1057
+ ObjectDefinePropertyConfigurable(DataView.prototype, 'setInt16', {value: makeSetter(Int16Array)});
1058
+ ObjectDefinePropertyConfigurable(DataView.prototype, 'setUint32', {value: makeSetter(Uint32Array)});
1059
+ ObjectDefinePropertyConfigurable(DataView.prototype, 'setInt32', {value: makeSetter(Int32Array)});
1060
+ ObjectDefinePropertyConfigurable(DataView.prototype, 'setFloat32', {value: makeSetter(Float32Array)});
1061
+ ObjectDefinePropertyConfigurable(DataView.prototype, 'setFloat64', {value: makeSetter(Float64Array)});
1056
1062
 
1057
- global.DataView = global.DataView || DataView;
1063
+ global.DataView = DataView;
1058
1064
 
1059
1065
  }());
1060
1066
 
@@ -1 +1 @@
1
- {"dependencies":["atob","URL"],"docs":"https://developer.mozilla.org/en-US/docs/Web/API/Blob/Blob","license":"MIT","repo":"https://github.com/eligrey/Blob.js/blob","browsers":{"chrome":"<20","edge":"<79","edge_mob":"*","firefox":"<13","firefox_mob":"<14","safari":"<6","ie":"<10","opera":"<12"},"detectSource":"\"Blob\"in self&&function(){try{return new Blob,!0}catch(n){return!1}}()&&function(){try{return Blob(),!1}catch(n){return!0}}()\n","baseDir":"Blob","hasTests":true,"isTestable":true,"isPublic":true,"size":3466}
1
+ {"dependencies":["atob","URL"],"docs":"https://developer.mozilla.org/en-US/docs/Web/API/Blob/Blob","license":"MIT","repo":"https://github.com/eligrey/Blob.js/blob","browsers":{"chrome":"<20","edge":"<79","edge_mob":"*","firefox":"<13","firefox_mob":"<14","safari":"<6","ie":"*","opera":"<12"},"detectSource":"\"Blob\"in self&&function(){try{return new Blob,!0}catch(n){return!1}}()&&function(){try{return Blob(),!1}catch(n){return!0}}()\n","baseDir":"Blob","hasTests":true,"isTestable":true,"isPublic":true,"size":3466}
@@ -1 +1 @@
1
- {"aliases":[],"dependencies":["Event","performance.now"],"docs":"https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserver","spec":"http://rawgit.com/w3c/IntersectionObserver/master/index.html","notes":[],"repo":"https://github.com/w3c/IntersectionObserver","browsers":{"android":"<51","bb":"*","chrome":"< 51","edge":"< 16","edge_mob":"< 16","firefox":"< 55","firefox_mob":"< 55","ie":"*","ie_mob":"*","ios_saf":"*","op_mini":"*","op_mob":"< 46","opera":"< 45","safari":"< 12.1","samsung_mob":"< 7"},"detectSource":"\"IntersectionObserver\"in window&&\"IntersectionObserverEntry\"in window&&\"intersectionRatio\"in window.IntersectionObserverEntry.prototype\n","baseDir":"IntersectionObserver","hasTests":false,"isTestable":true,"isPublic":true,"size":6661}
1
+ {"aliases":[],"dependencies":["Event","performance.now"],"docs":"https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserver","spec":"http://rawgit.com/w3c/IntersectionObserver/master/index.html","notes":[],"repo":"https://github.com/w3c/IntersectionObserver","browsers":{"android":"<51","bb":"*","chrome":"< 51","edge":"< 16","edge_mob":"< 16","firefox":"< 55","firefox_mob":"< 55","ie":"*","ie_mob":"*","ios_saf":"<16","op_mini":"*","op_mob":"< 46","opera":"< 45","safari":"<16","samsung_mob":"< 7"},"detectSource":"\"IntersectionObserver\"in window&&\"IntersectionObserverEntry\"in window&&\"intersectionRatio\"in window.IntersectionObserverEntry.prototype\n","baseDir":"IntersectionObserver","hasTests":false,"isTestable":true,"isPublic":true,"size":6661}
@@ -1 +1 @@
1
- {"aliases":["es2022"],"dependencies":["_ESAbstract.CreateMethodProperty","_ESAbstract.Get","_ESAbstract.ToIntegerOrInfinity","_ESAbstract.ToString","ArrayBuffer"],"spec":"https://tc39.es/ecma262/#sec-%typedarray%.prototype.at","docs":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/at","browsers":{"android":"*","bb":"*","chrome":"< 92","edge":"*","edge_mob":"*","firefox":"< 90","firefox_mob":"< 90","ie":"*","ie_mob":"*","ios_chr":"*","ios_saf":"*","op_mini":"*","op_mob":"*","opera":"< 78","safari":"*","samsung_mob":"< 16"},"detectSource":"\"Int8Array\"in self&&\"at\"in self.Int8Array.prototype\n","baseDir":"TypedArray/prototype/at","hasTests":true,"isTestable":true,"isPublic":true,"size":743}
1
+ {"aliases":["es2022"],"dependencies":["_ESAbstract.CreateMethodProperty","_ESAbstract.Get","_ESAbstract.ToIntegerOrInfinity","_ESAbstract.ToString","ArrayBuffer"],"spec":"https://tc39.es/ecma262/#sec-%typedarray%.prototype.at","docs":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/at","browsers":{"android":"*","bb":"*","chrome":"< 92","edge":"*","edge_mob":"*","firefox":"< 90","firefox_mob":"< 90","ie":"*","ie_mob":"*","ios_chr":"*","ios_saf":"*","op_mini":"*","op_mob":"*","opera":"< 78","safari":"*","samsung_mob":"< 16"},"detectSource":"\"Int8Array\"in self&&\"at\"in self.Int8Array.prototype\n","baseDir":"TypedArray/prototype/at","hasTests":true,"isTestable":true,"isPublic":true,"size":798}
@@ -1 +1 @@
1
- !function(){function t(t){var r=this,e=r.length,o=ToIntegerOrInfinity(t),a=o>=0?o:e+o;if(!(a<0||a>=e))return Get(r,ToString(a))}"__proto__"in self.Int8Array.prototype?CreateMethodProperty(self.Int8Array.prototype.__proto__,"at",t):(CreateMethodProperty(self.Int8Array.prototype,"at",t),CreateMethodProperty(self.Uint8Array.prototype,"at",t),CreateMethodProperty(self.Uint8ClampedArray.prototype,"at",t),CreateMethodProperty(self.Int16Array.prototype,"at",t),CreateMethodProperty(self.Uint16Array.prototype,"at",t),CreateMethodProperty(self.Int32Array.prototype,"at",t),CreateMethodProperty(self.Uint32Array.prototype,"at",t),CreateMethodProperty(self.Float32Array.prototype,"at",t),CreateMethodProperty(self.Float64Array.prototype,"at",t))}();
1
+ !function(){function t(t){var r=this,e=r.length,o=ToIntegerOrInfinity(t),p=o>=0?o:e+o;if(!(p<0||p>=e))return Get(r,ToString(p))}"__proto__"in self.Int8Array.prototype&&self.Int8Array.prototype.__proto__!==Object.prototype?CreateMethodProperty(self.Int8Array.prototype.__proto__,"at",t):(CreateMethodProperty(self.Int8Array.prototype,"at",t),CreateMethodProperty(self.Uint8Array.prototype,"at",t),CreateMethodProperty(self.Uint8ClampedArray.prototype,"at",t),CreateMethodProperty(self.Int16Array.prototype,"at",t),CreateMethodProperty(self.Uint16Array.prototype,"at",t),CreateMethodProperty(self.Int32Array.prototype,"at",t),CreateMethodProperty(self.Uint32Array.prototype,"at",t),CreateMethodProperty(self.Float32Array.prototype,"at",t),CreateMethodProperty(self.Float64Array.prototype,"at",t))}();
@@ -23,7 +23,9 @@
23
23
  return Get(O, ToString(k));
24
24
  }
25
25
 
26
- if ('__proto__' in self.Int8Array.prototype) {
26
+ // in IE11, `Int8Array.prototype` inherits directly from `Object.prototype`
27
+ // in that case, don't define `at` on the parent; define it directly on the prototype
28
+ if ('__proto__' in self.Int8Array.prototype && self.Int8Array.prototype.__proto__ !== Object.prototype) {
27
29
  // set this on the underlying "TypedArrayPrototype", which is shared with all "TypedArray" subclasses
28
30
  CreateMethodProperty(self.Int8Array.prototype.__proto__, 'at', at);
29
31
  } else {