Skip to content

Commit 7cea233

Browse files
committed
chore: fix JavaScript lint errors (issue #8980)
1 parent 4304bee commit 7cea233

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

  • lib/node_modules/@stdlib/math/strided/special/bessely1-by/test

lib/node_modules/@stdlib/math/strided/special/bessely1-by/test/test.main.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,17 @@ tape( 'the function computes the Bessel function of the second kind of order one
7474
bessely1By( x.length, x, 1, y, 1, accessor );
7575
t.deepEqual( y, expected, 'deep equal' );
7676

77-
x = new Array( 5 ); // sparse array
77+
x = [];
78+
x.length = 5; // sparse array
7879
y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];
7980

8081
expected = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];
8182

8283
bessely1By( x.length, x, 1, y, 1, accessor );
8384
t.deepEqual( y, expected, 'deep equal' );
8485

85-
x = new Array( 5 ); // sparse array
86+
x = [];
87+
x.length = 5; // sparse array
8688
x[ 2 ] = rand();
8789
y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];
8890

0 commit comments

Comments
 (0)