File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
lib/node_modules/@stdlib/ndarray/ctor/lib Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -60,8 +60,8 @@ function get() {
60
60
ind = getIndex ( arguments [ i ] , this . _shape [ i ] - 1 , this . _submode [ i % M ] ) ; // eslint-disable-line max-len
61
61
idx += this . _strides [ i ] * ind ;
62
62
}
63
- if ( this . _getter ) {
64
- return this . _getter . call ( this . _buffer , idx ) ;
63
+ if ( this . _accessors ) {
64
+ return this . _buffer . get ( idx ) ;
65
65
}
66
66
return this . _buffer [ idx ] ;
67
67
}
Original file line number Diff line number Diff line change @@ -61,8 +61,8 @@ function set() {
61
61
ind = getIndex ( arguments [ i ] , this . _shape [ i ] - 1 , this . _submode [ i % M ] ) ; // eslint-disable-line max-len
62
62
idx += this . _strides [ i ] * ind ;
63
63
}
64
- if ( this . _setter ) {
65
- this . _setter . call ( this . _buffer , arguments [ i ] , idx ) ;
64
+ if ( this . _accessors ) {
65
+ this . _buffer . set ( arguments [ i ] , idx ) ;
66
66
} else {
67
67
this . _buffer [ idx ] = arguments [ i ] ;
68
68
}
You can’t perform that action at this time.
0 commit comments