Skip to content

Commit

Permalink
fix: ensure support for typed arrays larger than 2^32-1
Browse files Browse the repository at this point in the history
  • Loading branch information
kgryte committed Dec 15, 2024
1 parent fb1ca76 commit 629ce7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/node_modules/@stdlib/array/to-fancy/lib/factory.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

// MODULES //

var isCollection = require( '@stdlib/assert/is-collection' );
var isArrayLike = require( '@stdlib/assert/is-array-like' );
var Proxy = require( '@stdlib/proxy/ctor' );
var arraylike2object = require( '@stdlib/array/base/arraylike2object' );
Expand Down Expand Up @@ -124,7 +125,7 @@ function factory() {
var arr;
var dt;
var o;
if ( !isArrayLike( x ) ) {
if ( !isArrayLike( x ) && !isCollection( x ) ) {
throw new TypeError( format( 'invalid argument. First argument must be array-like. Value: `%s`.', x ) );
}
if ( hasProxySupport ) {
Expand Down
1 change: 0 additions & 1 deletion lib/node_modules/@stdlib/array/to-fancy/lib/set.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ var setSlice = require( './set_slice.js' );
*
* @private
* @param {Object} ctx - context object
* @param {Function} ctx.setter - accessor for setting array elements
* @param {string} ctx.dtype - array data type
* @param {boolean} ctx.strict - boolean indicating whether to enforce strict bounds checking
* @param {Function} ctx.validator - function for validating new values
Expand Down

0 comments on commit 629ce7b

Please sign in to comment.