@@ -23,9 +23,9 @@ <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 "> 26.26 % </ span >
26
+ < span class ="strong "> 26.16 % </ span >
27
27
< span class ="quiet "> Statements</ span >
28
- < span class ='fraction '> 192/731 </ span >
28
+ < span class ='fraction '> 191/730 </ span >
29
29
</ div >
30
30
31
31
@@ -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 "> 26.26 % </ span >
47
+ < span class ="strong "> 26.16 % </ span >
48
48
< span class ="quiet "> Lines</ span >
49
- < span class ='fraction '> 192/731 </ span >
49
+ < span class ='fraction '> 191/730 </ span >
50
50
</ div >
51
51
52
52
@@ -793,9 +793,7 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">array/fix
793
793
< a name ='L728 '> </ a > < a href ='#L728 '> 728</ a >
794
794
< a name ='L729 '> </ a > < a href ='#L729 '> 729</ a >
795
795
< a name ='L730 '> </ a > < a href ='#L730 '> 730</ a >
796
- < a name ='L731 '> </ a > < a href ='#L731 '> 731</ a >
797
- < a name ='L732 '> </ a > < a href ='#L732 '> 732</ a > </ td > < td class ="line-coverage quiet "> < span class ="cline-any cline-yes "> 1x</ span >
798
- < span class ="cline-any cline-yes "> 1x</ span >
796
+ < a name ='L731 '> </ a > < a href ='#L731 '> 731</ a > </ td > < td class ="line-coverage quiet "> < span class ="cline-any cline-yes "> 1x</ span >
799
797
< span class ="cline-any cline-yes "> 1x</ span >
800
798
< span class ="cline-any cline-yes "> 1x</ span >
801
799
< span class ="cline-any cline-yes "> 1x</ span >
@@ -1594,13 +1592,12 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">array/fix
1594
1592
'uint32': 'getUint32',
1595
1593
'uint16': 'getUint16'
1596
1594
};
1597
- var DTYPE2ARTICLE = {
1598
- 'float64': 'a',
1599
- 'float32': 'a',
1600
- 'int32': 'an',
1601
- 'int16': 'an',
1602
- 'uint32': 'a',
1603
- 'uint16': 'a'
1595
+ var CHAR2ARTICLE = {
1596
+ 'c': 'a',
1597
+ 'f': 'a',
1598
+ 'i': 'an',
1599
+ 'u': 'a',
1600
+ 'b': 'a'
1604
1601
};
1605
1602
var isDataType = contains( DTYPES );
1606
1603
@@ -1894,7 +1891,7 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">array/fix
1894
1891
< span class ="cstat-no " title ="statement not covered " > throw new TypeError( 'invalid invocation. `this` context must be a constructor.' );</ span >
1895
1892
< span class ="cstat-no " title ="statement not covered " > }</ span >
1896
1893
< span class ="cstat-no " title ="statement not covered " > if ( !isTypedArrayConstructor( this ) ) {</ span >
1897
- < span class ="cstat-no " title ="statement not covered " > throw new TypeError( format( 'invalid invocation. `this` is not %s %s.', DTYPE2ARTICLE [ dtype ], CTOR_NAME ) );</ span >
1894
+ < span class ="cstat-no " title ="statement not covered " > throw new TypeError( format( 'invalid invocation. `this` is not %s %s.', CHAR2ARTICLE [ dtype[0] ], CTOR_NAME ) );</ span >
1898
1895
< span class ="cstat-no " title ="statement not covered " > }</ span >
1899
1896
< span class ="cstat-no " title ="statement not covered " > order = byteOrder( endianness );</ span >
1900
1897
< span class ="cstat-no " title ="statement not covered " > if ( order === null || !isByteOrder( order ) ) {</ span >
@@ -1972,7 +1969,7 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">array/fix
1972
1969
< span class ="cstat-no " title ="statement not covered " > throw new TypeError( 'invalid invocation. `this` context must be a constructor.' );</ span >
1973
1970
< span class ="cstat-no " title ="statement not covered " > }</ span >
1974
1971
< span class ="cstat-no " title ="statement not covered " > if ( !isTypedArrayConstructor( this ) ) {</ span >
1975
- < span class ="cstat-no " title ="statement not covered " > throw new TypeError( format( 'invalid invocation. `this` is not %s %s.', DTYPE2ARTICLE [ dtype ], CTOR_NAME ) );</ span >
1972
+ < span class ="cstat-no " title ="statement not covered " > throw new TypeError( format( 'invalid invocation. `this` is not %s %s.', CHAR2ARTICLE [ dtype[0] ], CTOR_NAME ) );</ span >
1976
1973
< span class ="cstat-no " title ="statement not covered " > }</ span >
1977
1974
< span class ="cstat-no " title ="statement not covered " > order = byteOrder( endianness );</ span >
1978
1975
< span class ="cstat-no " title ="statement not covered " > if ( order === null || !isByteOrder( order ) ) {</ span >
@@ -2049,7 +2046,7 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">array/fix
2049
2046
< span class ="cstat-no " title ="statement not covered " > */</ span >
2050
2047
< span class ="cstat-no " title ="statement not covered " > setReadOnly( TypedArray.prototype, 'get', function get( idx ) {</ span >
2051
2048
< span class ="cstat-no " title ="statement not covered " > if ( !isTypedArray( this ) ) {</ span >
2052
- < span class ="cstat-no " title ="statement not covered " > throw new TypeError( format( 'invalid invocation. `this` is not %s %s.', DTYPE2ARTICLE [ dtype ], CTOR_NAME ) );</ span >
2049
+ < span class ="cstat-no " title ="statement not covered " > throw new TypeError( format( 'invalid invocation. `this` is not %s %s.', CHAR2ARTICLE [ dtype[0] ], CTOR_NAME ) );</ span >
2053
2050
< span class ="cstat-no " title ="statement not covered " > }</ span >
2054
2051
< span class ="cstat-no " title ="statement not covered " > if ( !isNonNegativeInteger( idx ) ) {</ span >
2055
2052
< span class ="cstat-no " title ="statement not covered " > throw new TypeError( format( 'invalid argument. Must provide a nonnegative integer. Value: `%s`.', idx ) );</ span >
@@ -2118,7 +2115,7 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">array/fix
2118
2115
< span class ="cstat-no " title ="statement not covered " > var i;</ span >
2119
2116
< span class ="cstat-no " title ="statement not covered " > var j;</ span >
2120
2117
< span class ="cstat-no " title ="statement not covered " > if ( !isTypedArray( this ) ) {</ span >
2121
- < span class ="cstat-no " title ="statement not covered " > throw new TypeError( format( 'invalid invocation. `this` is not %s %s.', DTYPE2ARTICLE [ dtype ], CTOR_NAME ) );</ span >
2118
+ < span class ="cstat-no " title ="statement not covered " > throw new TypeError( format( 'invalid invocation. `this` is not %s %s.', CHAR2ARTICLE [ dtype[0] ], CTOR_NAME ) );</ span >
2122
2119
< span class ="cstat-no " title ="statement not covered " > }</ span >
2123
2120
< span class ="cstat-no " title ="statement not covered " > buf = this._buffer;</ span >
2124
2121
< span class ="cstat-no " title ="statement not covered " > if ( arguments.length > 1 ) {</ span >
@@ -2183,7 +2180,7 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">array/fix
2183
2180
< span class ="cstat-no " title ="statement not covered " > var buf;</ span >
2184
2181
< span class ="cstat-no " title ="statement not covered " > var i;</ span >
2185
2182
< span class ="cstat-no " title ="statement not covered " > if ( !isTypedArray( this ) ) {</ span >
2186
- < span class ="cstat-no " title ="statement not covered " > throw new TypeError( format( 'invalid invocation. `this` is not %s %s.', DTYPE2ARTICLE [ dtype ], CTOR_NAME ) );</ span >
2183
+ < span class ="cstat-no " title ="statement not covered " > throw new TypeError( format( 'invalid invocation. `this` is not %s %s.', CHAR2ARTICLE [ dtype[0] ], CTOR_NAME ) );</ span >
2187
2184
< span class ="cstat-no " title ="statement not covered " > }</ span >
2188
2185
< span class ="cstat-no " title ="statement not covered " > out = [];</ span >
2189
2186
< span class ="cstat-no " title ="statement not covered " > buf = this._buffer;</ span >
@@ -2263,7 +2260,7 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">array/fix
2263
2260
< div class ='footer quiet pad2 space-top1 center small '>
2264
2261
Code coverage generated by
2265
2262
< a href ="https://istanbul.js.org/ " target ="_blank " rel ="noopener noreferrer "> istanbul</ a >
2266
- at 2024-09-25T06:51:16.479Z
2263
+ at 2024-09-25T08:02:38.984Z
2267
2264
</ div >
2268
2265
< script src ="../../../prettify.js "> </ script >
2269
2266
< script >
0 commit comments