Skip to content

Commit

Permalink
Auto-generated commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stdlib-bot committed Dec 16, 2023
1 parent ff81d3d commit 0765883
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Dorrin Sotoudeh <[email protected]>
Frank Kovacs <[email protected]>
Harshita Kalani <[email protected]>
James Gelok <[email protected]>
Jaysukh Makvana <[email protected].com>
Jaysukh Makvana <jaysukhmakvana2004@gmail.com>
Jithin KS <[email protected]>
Joey Reed <[email protected]>
Jordan Gallivan <[email protected]>
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ var HAS_ITERATOR_SYMBOL = hasIteratorSymbolSupport();
* @param {*} value - value to test
* @returns {boolean} boolean indicating if a value is a complex typed array
*/
function isComplexArray( value ) {
function isComplexArray( value ) { // TODO: move to array/base/assert/is-complex-array
return (
value instanceof Complex64Array ||
(
Expand Down Expand Up @@ -106,7 +106,7 @@ function isComplexArrayConstructor( value ) {
* @param {*} value - value to test
* @returns {boolean} boolean indicating if a value is a `Complex64Array`
*/
function isComplex64Array( value ) {
function isComplex64Array( value ) { // TODO: move to array/base/assert/is-complex64-array
return (
typeof value === 'object' &&
value !== null &&
Expand All @@ -122,7 +122,7 @@ function isComplex64Array( value ) {
* @param {*} value - value to test
* @returns {boolean} boolean indicating if a value is a `Complex128Array`
*/
function isComplex128Array( value ) {
function isComplex128Array( value ) { // TODO: move to array/base/assert/is-complex128-array
return (
typeof value === 'object' &&
value !== null &&
Expand Down Expand Up @@ -268,7 +268,7 @@ function Complex64Array() {
}
buf = buf[ ITERATOR_SYMBOL ]();
if ( !isFunction( buf.next ) ) {
throw new TypeError( format( 'invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.', buf ) );
throw new TypeError( format( 'invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.', buf ) ); // FIXME: `buf` is what is returned from above, NOT the original value
}
buf = fromIterator( buf );
if ( buf instanceof Error ) {
Expand Down Expand Up @@ -956,7 +956,7 @@ setReadOnlyAccessor( Complex64Array.prototype, 'length', function get() {
* src: ---------------------
* ```
*
* by the time we begin copying into the overlapping region, we are copying from the end of `src`, a non-overlapping region, which means we don't run the risk of copying copied values, rather than the original `src` values as intended.
* by the time we begin copying into the overlapping region, we are copying from the end of `src`, a non-overlapping region, which means we don't run the risk of copying copied values, rather than the original `src` values, as intended.
*
* @name set
* @memberof Complex64Array.prototype
Expand Down Expand Up @@ -1093,7 +1093,7 @@ setReadOnly( Complex64Array.prototype, 'set', function set( value ) {
// We need to copy source values...
tmp = new Float32Array( N );
for ( i = 0; i < N; i++ ) {
tmp[ i ] = sbuf[ i ];
tmp[ i ] = sbuf[ i ]; // TODO: handle accessor arrays
}
sbuf = tmp;
}
Expand Down

0 comments on commit 0765883

Please sign in to comment.