From 4bafea7969ea28fa892e8574b88806c63c8e28b8 Mon Sep 17 00:00:00 2001 From: Kenneth Nnabuife Date: Thu, 25 Dec 2025 04:07:02 +0000 Subject: [PATCH 1/2] chore: fix JavaScript lint errors (issue #9356) --- .../@stdlib/math/strided/special/cos-by/test/test.main.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/math/strided/special/cos-by/test/test.main.js b/lib/node_modules/@stdlib/math/strided/special/cos-by/test/test.main.js index 1694e4ad6ddf..69a0a7e0af94 100644 --- a/lib/node_modules/@stdlib/math/strided/special/cos-by/test/test.main.js +++ b/lib/node_modules/@stdlib/math/strided/special/cos-by/test/test.main.js @@ -74,7 +74,8 @@ tape( 'the function computes the cosine via a callback function', function test( cosBy( x.length, x, 1, y, 1, accessor ); t.deepEqual( y, expected, 'deep equal' ); - x = new Array( 5 ); // sparse array + x = []; + x.length = 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 ]; @@ -82,7 +83,8 @@ tape( 'the function computes the cosine via a callback function', function test( cosBy( x.length, x, 1, y, 1, accessor ); t.deepEqual( y, expected, 'deep equal' ); - x = new Array( 5 ); // sparse array + x = []; + x.length = 5; // sparse array x[ 2 ] = rand(); y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ]; From 7adebbf45614ace5f8c6d234a867e55a9fcacbc6 Mon Sep 17 00:00:00 2001 From: Kenneth Nnabuife Date: Thu, 25 Dec 2025 04:32:35 +0000 Subject: [PATCH 2/2] chore: fix JavaScript lint errors (issue #9356) --- .../@stdlib/math/strided/special/cos-by/test/test.main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/strided/special/cos-by/test/test.main.js b/lib/node_modules/@stdlib/math/strided/special/cos-by/test/test.main.js index 69a0a7e0af94..7aa8852d3a3e 100644 --- a/lib/node_modules/@stdlib/math/strided/special/cos-by/test/test.main.js +++ b/lib/node_modules/@stdlib/math/strided/special/cos-by/test/test.main.js @@ -84,7 +84,7 @@ tape( 'the function computes the cosine via a callback function', function test( t.deepEqual( y, expected, 'deep equal' ); x = []; - x.length = 5; // sparse array + x.length = 5;// sparse array x[ 2 ] = rand(); y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];