Skip to content

Commit 6458bde

Browse files
committed
Auto-generated commit
1 parent 504dc68 commit 6458bde

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

.github/.keepalive

Lines changed: 0 additions & 1 deletion
This file was deleted.

lib/accessors_complex.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ var imagf = require( '@stdlib/complex-imagf' );
3636
* @private
3737
* @param {Object} out - output array object
3838
* @param {ArrayLikeObject} out.data - output array data
39-
* @param {Function} out.setter - accessor for setting array elements
39+
* @param {Array<Function>} out.accessors - array element accessors
4040
* @param {string} dt1 - start value data type
4141
* @param {ComplexLike} start - start of interval
4242
* @param {string} dt2 - stop value data type
@@ -95,7 +95,7 @@ function linspace( out, dt1, start, dt2, stop, len, endpoint ) {
9595
}
9696
// Cache array object references:
9797
buf = out.data;
98-
set = out.setter;
98+
set = out.accessors[ 1 ];
9999

100100
// Set the first value:
101101
if ( len === 1 ) {

lib/accessors_real.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* @private
2727
* @param {Object} out - output array object
2828
* @param {ArrayLikeObject} out.data - output array data
29-
* @param {Function} out.setter - accessor for setting array elements
29+
* @param {Array<Function>} out.accessors - array element accessors
3030
* @param {number} start - start of interval
3131
* @param {number} stop - end of interval
3232
* @param {NonNegativeInteger} len - length of output array
@@ -43,7 +43,7 @@
4343
* var out = new Float64Array( 6 );
4444
* var obj = {
4545
* 'data': out,
46-
* 'setter': set
46+
* 'accessors': [ null, set ]
4747
* };
4848
* linspace( obj, 0, 100, out.length, true );
4949
*
@@ -60,7 +60,7 @@
6060
* var out = new Float64Array( 5 );
6161
* var obj = {
6262
* 'data': out,
63-
* 'setter': set
63+
* 'accessors': [ null, set ]
6464
* };
6565
* linspace( obj, 0, 100, out.length, false );
6666
*
@@ -79,7 +79,7 @@ function linspace( out, start, stop, len, endpoint ) {
7979
}
8080
// Cache array object references:
8181
buf = out.data;
82-
set = out.setter;
82+
set = out.accessors[ 1 ];
8383

8484
// Set the first value:
8585
if ( len === 1 ) {

lib/assign.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ function linspace( start, stop, out ) {
133133
throw new TypeError( 'invalid arguments. If either of the first two arguments are complex numbers, the output array must be a complex number array or a "generic" array-like object.' );
134134
}
135135
o = arraylike2object( out );
136-
if ( o.accessors ) {
136+
if ( o.accessorProtocol ) {
137137
accreal( o, start, stop, out.length, opts.endpoint );
138138
return out;
139139
}

0 commit comments

Comments
 (0)