Skip to content

Commit

Permalink
temp: add TODOs
Browse files Browse the repository at this point in the history
  • Loading branch information
kgryte committed Dec 16, 2023
1 parent 2d73fa3 commit 813b67b
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions lib/node_modules/@stdlib/array/complex64/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 @@ -884,8 +884,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 @@ -1022,7 +1021,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 813b67b

Please sign in to comment.