@@ -23,16 +23,16 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">array/fix
2323 < div class ='clearfix '>
2424
2525 < div class ='fl pad1y space-right2 '>
26- < span class ="strong "> 82.04 % </ span >
26+ < span class ="strong "> 81.95 % </ span >
2727 < span class ="quiet "> Statements</ span >
28- < span class ='fraction '> 1005/1225 </ span >
28+ < span class ='fraction '> 1008/1230 </ span >
2929 </ div >
3030
3131
3232 < div class ='fl pad1y space-right2 '>
33- < span class ="strong "> 92.68 % </ span >
33+ < span class ="strong "> 92.12 % </ span >
3434 < span class ="quiet "> Branches</ span >
35- < span class ='fraction '> 152/164 </ span >
35+ < span class ='fraction '> 152/165 </ span >
3636 </ div >
3737
3838
@@ -44,9 +44,9 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">array/fix
4444
4545
4646 < div class ='fl pad1y space-right2 '>
47- < span class ="strong "> 82.04 % </ span >
47+ < span class ="strong "> 81.95 % </ span >
4848 < span class ="quiet "> Lines</ span >
49- < span class ='fraction '> 1005/1225 </ span >
49+ < span class ='fraction '> 1008/1230 </ span >
5050 </ div >
5151
5252
@@ -1288,7 +1288,12 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">array/fix
12881288< a name ='L1223 '> </ a > < a href ='#L1223 '> 1223</ a >
12891289< a name ='L1224 '> </ a > < a href ='#L1224 '> 1224</ a >
12901290< a name ='L1225 '> </ a > < a href ='#L1225 '> 1225</ a >
1291- < a name ='L1226 '> </ a > < a href ='#L1226 '> 1226</ a > </ td > < td class ="line-coverage quiet "> < span class ="cline-any cline-yes "> 14x</ span >
1291+ < a name ='L1226 '> </ a > < a href ='#L1226 '> 1226</ a >
1292+ < a name ='L1227 '> </ a > < a href ='#L1227 '> 1227</ a >
1293+ < a name ='L1228 '> </ a > < a href ='#L1228 '> 1228</ a >
1294+ < a name ='L1229 '> </ a > < a href ='#L1229 '> 1229</ a >
1295+ < a name ='L1230 '> </ a > < a href ='#L1230 '> 1230</ a >
1296+ < a name ='L1231 '> </ a > < a href ='#L1231 '> 1231</ a > </ td > < td class ="line-coverage quiet "> < span class ="cline-any cline-yes "> 14x</ span >
12921297< span class ="cline-any cline-yes "> 14x</ span >
12931298< span class ="cline-any cline-yes "> 14x</ span >
12941299< span class ="cline-any cline-yes "> 14x</ span >
@@ -1527,6 +1532,8 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">array/fix
15271532< span class ="cline-any cline-yes "> 111x</ span >
15281533< span class ="cline-any cline-yes "> 111x</ span >
15291534< span class ="cline-any cline-yes "> 111x</ span >
1535+ < span class ="cline-any cline-yes "> 111x</ span >
1536+ < span class ="cline-any cline-yes "> 111x</ span >
15301537< span class ="cline-any cline-yes "> 106x</ span >
15311538< span class ="cline-any cline-yes "> 106x</ span >
15321539< span class ="cline-any cline-yes "> 106x</ span >
@@ -1571,6 +1578,9 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">array/fix
15711578< span class ="cline-any cline-yes "> 3x</ span >
15721579< span class ="cline-any cline-no "> </ span >
15731580< span class ="cline-any cline-no "> </ span >
1581+ < span class ="cline-any cline-yes "> 3x</ span >
1582+ < span class ="cline-any cline-no "> </ span >
1583+ < span class ="cline-any cline-no "> </ span >
15741584< span class ="cline-any cline-no "> </ span >
15751585< span class ="cline-any cline-no "> </ span >
15761586< span class ="cline-any cline-no "> </ span >
@@ -2749,6 +2759,8 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">array/fix
27492759 * @throws {TypeError} if provided only two arguments, the second argument must be a valid argument
27502760 * @throws {TypeError} byte offset must be a nonnegative integer
27512761 * @throws {RangeError} must provide sufficient memory to accommodate byte offset and view length requirements
2762+ * @throws {RangeError} byte offset must be a multiple of the data type size
2763+ * @throws {TypeError} view length must be a positive multiple of the data type size
27522764 * @returns {TypedArray} typed array instance
27532765 */
27542766 function TypedArray() {
@@ -2793,6 +2805,9 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">array/fix
27932805 buf = fromArray( new DataView( new ArrayBuffer( arg.length*BYTES_PER_ELEMENT ) ), arg, isLE );
27942806 } else if ( isArrayBuffer( arg ) ) {
27952807 buf = new DataView( arg );
2808+ if ( !isNonNegativeInteger( arg.byteLength/BYTES_PER_ELEMENT ) ) < span class ="branch-0 cbranch-no " title ="branch not covered " > {</ span >
2809+ < span class ="cstat-no " title ="statement not covered " > throw new RangeError( format( 'invalid argument. ArrayBuffer byte length must be a multiple of %u. Byte length: `%u`.', BYTES_PER_ELEMENT, buf.byteLength ) );</ span >
2810+ < span class ="cstat-no " title ="statement not covered " > }</ span >
27962811 }< span class ="branch-0 cbranch-no " title ="branch not covered " > else if ( isObject( arg ) ) {</ span >
27972812< span class ="cstat-no " title ="statement not covered " > if ( HAS_ITERATOR_SYMBOL === false ) {</ span >
27982813< span class ="cstat-no " title ="statement not covered " > throw new TypeError( format( 'invalid argument. Environment lacks Symbol.iterator support. Must provide a length, ArrayBuffer, typed array, or array-like object. Value: `%s`.', arg ) );</ span >
@@ -3125,7 +3140,7 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">array/fix
31253140 }
31263141 buf = this._buffer;
31273142 out = [];
3128- for ( i = 0; i < this._length; i++) {
3143+ for ( i = 0; i < this._length; i++ ) {
31293144 v = buf[ GETTER ]( i*BYTES_PER_ELEMENT, this._isLE );
31303145 if ( predicate.call( thisArg, v, i, this ) ) {
31313146 out.push( v );
@@ -3561,7 +3576,7 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">array/fix
35613576< span class ="cstat-no " title ="statement not covered " > ) {</ span >
35623577< span class ="cstat-no " title ="statement not covered " > // We need to copy source values...</ span >
35633578< span class ="cstat-no " title ="statement not covered " > tmp = [];</ span >
3564- < span class ="cstat-no " title ="statement not covered " > for ( i = 0; i < value.length ; i++ ) {</ span >
3579+ < span class ="cstat-no " title ="statement not covered " > for ( i = 0; i < N ; i++ ) {</ span >
35653580< span class ="cstat-no " title ="statement not covered " > tmp.push( get( value, i ) );</ span >
35663581< span class ="cstat-no " title ="statement not covered " > }</ span >
35673582< span class ="cstat-no " title ="statement not covered " > sbuf = tmp;</ span >
@@ -3745,7 +3760,7 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">array/fix
37453760 < div class ='footer quiet pad2 space-top1 center small '>
37463761 Code coverage generated by
37473762 < a href ="https://istanbul.js.org/ " target ="_blank " rel ="noopener noreferrer "> istanbul</ a >
3748- at 2024-12-17T03:05:27.317Z
3763+ at 2025-06-21T12:40:12.883Z
37493764 </ div >
37503765 < script src ="../../../prettify.js "> </ script >
37513766 < script >
0 commit comments