Skip to content

Commit 9d592cc

Browse files
committed
chore: fix JavaScript lint errors (issue #10084)
1 parent baaed47 commit 9d592cc

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

lib/node_modules/@stdlib/math/strided/special/asinh-by/test/test.ndarray.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,17 @@ tape( 'the function computes the hyperbolic arcsine via a callback function', fu
7373
asinhBy( x.length, x, 1, 0, y, 1, 0, accessor );
7474
t.deepEqual( y, expected, 'deep equal' );
7575

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

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

8182
asinhBy( x.length, x, 1, 0, y, 1, 0, accessor );
8283
t.deepEqual( y, expected, 'deep equal' );
8384

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

0 commit comments

Comments
 (0)