From e0833fcf3e691a64d5dc57b611fab9137d91dac0 Mon Sep 17 00:00:00 2001 From: Travis Bonnet Date: Thu, 5 Mar 2026 21:38:38 -0600 Subject: [PATCH] chore: fix JavaScript lint errors (issue #10073) Replace `new Array( 5 )` with `x = []; x.length = 5;` in `@stdlib/math/strided/special/cbrt-by/test/test.main.js` to satisfy the `stdlib/no-new-array` lint rule. Resolves #10073 Co-authored-by: Egger Co-Authored-By: Claude Opus 4.6 --- .../@stdlib/math/strided/special/cbrt-by/test/test.main.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/math/strided/special/cbrt-by/test/test.main.js b/lib/node_modules/@stdlib/math/strided/special/cbrt-by/test/test.main.js index 3731585c663e..88d8fc6c6f88 100644 --- a/lib/node_modules/@stdlib/math/strided/special/cbrt-by/test/test.main.js +++ b/lib/node_modules/@stdlib/math/strided/special/cbrt-by/test/test.main.js @@ -74,7 +74,8 @@ tape( 'the function computes the cube root of each indexed strided array element cbrtBy( 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 cube root of each indexed strided array element cbrtBy( 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 ];