Skip to content

Commit c77417d

Browse files
authored
chore: fix JavaScript lint errors (issue #10708)
Replaced fixed-size array with dynamic array initialization. Signed-off-by: Hasin Amir <124334345+HasinAmir@users.noreply.github.com>
1 parent 33f4c10 commit c77417d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

lib/node_modules/@stdlib/ndarray/fancy/test/test.instance.tostring.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,10 @@ tape( 'a FancyArray constructor returns an instance which has a custom `toString
175175
var arr;
176176

177177
dtype = 'generic';
178-
buffer = new Array( 1e4 );
178+
buffer = [];
179+
for ( var i = 0; i < 1e4; i++ ) {
180+
buffer.push( 0 );
181+
}
179182
shape = [ buffer.length ];
180183
order = 'row-major';
181184
strides = [ 1 ];

0 commit comments

Comments
 (0)