Skip to content

Commit c63a8e2

Browse files
Sumithrajuclaude
andcommitted
chore: fix JavaScript lint errors (issue #10708)
Replace new Array() constructor with Array.from() to comply with stdlib/no-new-array linting rule. The change maintains identical functionality while adhering to coding standards. Fixes #10708 Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
1 parent 33f4c10 commit c63a8e2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,8 @@ 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+
buffer.length = 1e4;
179180
shape = [ buffer.length ];
180181
order = 'row-major';
181182
strides = [ 1 ];

0 commit comments

Comments
 (0)