Skip to content

Commit a320ed4

Browse files
committed
Auto-generated commit
1 parent d9b2669 commit a320ed4

File tree

5 files changed

+44
-42
lines changed

5 files changed

+44
-42
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
### Bug Fixes
1212

13+
- [`629ce7b`](https://github.com/stdlib-js/stdlib/commit/629ce7bfa31b0d263f36fd597bb67acfc87689ff) - ensure support for typed arrays larger than 2^32-1
1314
- [`dcfa1d6`](https://github.com/stdlib-js/stdlib/commit/dcfa1d62126625847df6517662851e812ef997be) - update import name
1415

1516
</section>
@@ -22,6 +23,7 @@
2223

2324
<details>
2425

26+
- [`629ce7b`](https://github.com/stdlib-js/stdlib/commit/629ce7bfa31b0d263f36fd597bb67acfc87689ff) - **fix:** ensure support for typed arrays larger than 2^32-1 _(by Athan Reines)_
2527
- [`02fe522`](https://github.com/stdlib-js/stdlib/commit/02fe52268be65ac41e413c27cef0f1f83b94636a) - **refactor:** remove unused file _(by Athan Reines)_
2628
- [`dcfa1d6`](https://github.com/stdlib-js/stdlib/commit/dcfa1d62126625847df6517662851e812ef997be) - **fix:** update import name _(by Athan Reines)_
2729

dist/index.js

+37-37
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/factory.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
// MODULES //
2222

23+
var isCollection = require( '@stdlib/assert-is-collection' );
2324
var isArrayLike = require( '@stdlib/assert-is-array-like' );
2425
var Proxy = require( '@stdlib/proxy-ctor' );
2526
var arraylike2object = require( '@stdlib/array-base-arraylike2object' );
@@ -124,7 +125,7 @@ function factory() {
124125
var arr;
125126
var dt;
126127
var o;
127-
if ( !isArrayLike( x ) ) {
128+
if ( !isArrayLike( x ) && !isCollection( x ) ) {
128129
throw new TypeError( format( 'invalid argument. First argument must be array-like. Value: `%s`.', x ) );
129130
}
130131
if ( hasProxySupport ) {

lib/set.js

-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ var setSlice = require( './set_slice.js' );
3737
*
3838
* @private
3939
* @param {Object} ctx - context object
40-
* @param {Function} ctx.setter - accessor for setting array elements
4140
* @param {string} ctx.dtype - array data type
4241
* @param {boolean} ctx.strict - boolean indicating whether to enforce strict bounds checking
4342
* @param {Function} ctx.validator - function for validating new values

0 commit comments

Comments
 (0)