@@ -23,16 +23,16 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">array/fix
23
23
< div class ='clearfix '>
24
24
25
25
< div class ='fl pad1y space-right2 '>
26
- < span class ="strong "> 82.04 % </ span >
26
+ < span class ="strong "> 81.95 % </ span >
27
27
< span class ="quiet "> Statements</ span >
28
- < span class ='fraction '> 1005/1225 </ span >
28
+ < span class ='fraction '> 1008/1230 </ span >
29
29
</ div >
30
30
31
31
32
32
< div class ='fl pad1y space-right2 '>
33
- < span class ="strong "> 92.68 % </ span >
33
+ < span class ="strong "> 92.12 % </ span >
34
34
< span class ="quiet "> Branches</ span >
35
- < span class ='fraction '> 152/164 </ span >
35
+ < span class ='fraction '> 152/165 </ span >
36
36
</ div >
37
37
38
38
@@ -44,9 +44,9 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">array/fix
44
44
45
45
46
46
< div class ='fl pad1y space-right2 '>
47
- < span class ="strong "> 82.04 % </ span >
47
+ < span class ="strong "> 81.95 % </ span >
48
48
< span class ="quiet "> Lines</ span >
49
- < span class ='fraction '> 1005/1225 </ span >
49
+ < span class ='fraction '> 1008/1230 </ span >
50
50
</ div >
51
51
52
52
@@ -1288,7 +1288,12 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">array/fix
1288
1288
< a name ='L1223 '> </ a > < a href ='#L1223 '> 1223</ a >
1289
1289
< a name ='L1224 '> </ a > < a href ='#L1224 '> 1224</ a >
1290
1290
< 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 >
1292
1297
< span class ="cline-any cline-yes "> 14x</ span >
1293
1298
< span class ="cline-any cline-yes "> 14x</ span >
1294
1299
< 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
1527
1532
< span class ="cline-any cline-yes "> 111x</ span >
1528
1533
< span class ="cline-any cline-yes "> 111x</ span >
1529
1534
< 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 >
1530
1537
< span class ="cline-any cline-yes "> 106x</ span >
1531
1538
< span class ="cline-any cline-yes "> 106x</ span >
1532
1539
< 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
1571
1578
< span class ="cline-any cline-yes "> 3x</ span >
1572
1579
< span class ="cline-any cline-no "> </ span >
1573
1580
< 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 >
1574
1584
< span class ="cline-any cline-no "> </ span >
1575
1585
< span class ="cline-any cline-no "> </ span >
1576
1586
< 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
2749
2759
* @throws {TypeError} if provided only two arguments, the second argument must be a valid argument
2750
2760
* @throws {TypeError} byte offset must be a nonnegative integer
2751
2761
* @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
2752
2764
* @returns {TypedArray} typed array instance
2753
2765
*/
2754
2766
function TypedArray() {
@@ -2793,6 +2805,9 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">array/fix
2793
2805
buf = fromArray( new DataView( new ArrayBuffer( arg.length*BYTES_PER_ELEMENT ) ), arg, isLE );
2794
2806
} else if ( isArrayBuffer( arg ) ) {
2795
2807
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 >
2796
2811
}< span class ="branch-0 cbranch-no " title ="branch not covered " > else if ( isObject( arg ) ) {</ span >
2797
2812
< span class ="cstat-no " title ="statement not covered " > if ( HAS_ITERATOR_SYMBOL === false ) {</ span >
2798
2813
< 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
3125
3140
}
3126
3141
buf = this._buffer;
3127
3142
out = [];
3128
- for ( i = 0; i < this._length; i++) {
3143
+ for ( i = 0; i < this._length; i++ ) {
3129
3144
v = buf[ GETTER ]( i*BYTES_PER_ELEMENT, this._isLE );
3130
3145
if ( predicate.call( thisArg, v, i, this ) ) {
3131
3146
out.push( v );
@@ -3561,7 +3576,7 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">array/fix
3561
3576
< span class ="cstat-no " title ="statement not covered " > ) {</ span >
3562
3577
< span class ="cstat-no " title ="statement not covered " > // We need to copy source values...</ span >
3563
3578
< 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 >
3565
3580
< span class ="cstat-no " title ="statement not covered " > tmp.push( get( value, i ) );</ span >
3566
3581
< span class ="cstat-no " title ="statement not covered " > }</ span >
3567
3582
< 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
3745
3760
< div class ='footer quiet pad2 space-top1 center small '>
3746
3761
Code coverage generated by
3747
3762
< 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
3749
3764
</ div >
3750
3765
< script src ="../../../prettify.js "> </ script >
3751
3766
< script >
0 commit comments