From ecb3eac578ce79cecacbdad2e015ed77df5226a8 Mon Sep 17 00:00:00 2001 From: Kayd-06 Date: Thu, 5 Feb 2026 14:32:19 +0530 Subject: [PATCH 1/2] chore: fix JavaScript lint errors (issue #10084) resolves #10084 --- .../math/strided/special/asinh-by/test/test.main.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/math/strided/special/asinh-by/test/test.main.js b/lib/node_modules/@stdlib/math/strided/special/asinh-by/test/test.main.js index 25c53bc69db9..9434e4d861d5 100644 --- a/lib/node_modules/@stdlib/math/strided/special/asinh-by/test/test.main.js +++ b/lib/node_modules/@stdlib/math/strided/special/asinh-by/test/test.main.js @@ -74,7 +74,10 @@ tape( 'the function computes the hyperbolic arcsine via a callback function', fu asinhBy( x.length, x, 1, y, 1, accessor ); t.deepEqual( y, expected, 'deep equal' ); - x = new Array( 5 ); // sparse array + x = []; + for ( i = 0; i < 5; i++ ) { + x.push( void 0 ); + } y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ]; expected = [ 0.0, 0.0, 0.0, 0.0, 0.0 ]; @@ -82,7 +85,10 @@ tape( 'the function computes the hyperbolic arcsine via a callback function', fu asinhBy( x.length, x, 1, y, 1, accessor ); t.deepEqual( y, expected, 'deep equal' ); - x = new Array( 5 ); // sparse array + x = []; + for ( i = 0; i < 5; i++ ) { + x.push( void 0 ); + } x[ 2 ] = rand(); y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ]; From 0c221a88448003a13ec4ae689a6fa04284b8e11e Mon Sep 17 00:00:00 2001 From: Athan Date: Fri, 10 Apr 2026 02:44:59 -0700 Subject: [PATCH 2/2] style: disable lint rule Signed-off-by: Athan --- .../math/strided/special/asinh-by/test/test.main.js | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/lib/node_modules/@stdlib/math/strided/special/asinh-by/test/test.main.js b/lib/node_modules/@stdlib/math/strided/special/asinh-by/test/test.main.js index 9434e4d861d5..4c69b9305406 100644 --- a/lib/node_modules/@stdlib/math/strided/special/asinh-by/test/test.main.js +++ b/lib/node_modules/@stdlib/math/strided/special/asinh-by/test/test.main.js @@ -74,10 +74,8 @@ tape( 'the function computes the hyperbolic arcsine via a callback function', fu asinhBy( x.length, x, 1, y, 1, accessor ); t.deepEqual( y, expected, 'deep equal' ); - x = []; - for ( i = 0; i < 5; i++ ) { - x.push( void 0 ); - } + // eslint-disable-next-line stdlib/no-new-array + x = new Array( 5 ); // sparse array y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ]; expected = [ 0.0, 0.0, 0.0, 0.0, 0.0 ]; @@ -85,10 +83,8 @@ tape( 'the function computes the hyperbolic arcsine via a callback function', fu asinhBy( x.length, x, 1, y, 1, accessor ); t.deepEqual( y, expected, 'deep equal' ); - x = []; - for ( i = 0; i < 5; i++ ) { - x.push( void 0 ); - } + // eslint-disable-next-line stdlib/no-new-array + x = new Array( 5 ); // sparse array x[ 2 ] = rand(); y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];