From a784599d2ee0d52b384fe3aa741ece469866b591 Mon Sep 17 00:00:00 2001 From: MANDEep22332 Date: Wed, 18 Mar 2026 08:25:47 +0000 Subject: [PATCH 1/4] fix: replace new Array() with array literals to fix lint errors --- .../@stdlib/assert/is-biguint64array/examples/index.js | 4 +++- .../math/strided/special/acoversin-by/test/test.main.js | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/node_modules/@stdlib/assert/is-biguint64array/examples/index.js b/lib/node_modules/@stdlib/assert/is-biguint64array/examples/index.js index b3232562f791..d6fe13b842b7 100644 --- a/lib/node_modules/@stdlib/assert/is-biguint64array/examples/index.js +++ b/lib/node_modules/@stdlib/assert/is-biguint64array/examples/index.js @@ -74,7 +74,9 @@ bool = isBigUint64Array( new Float32Array( 10 ) ); console.error( bool ); // => false -bool = isBigUint64Array( new Array( 10 ) ); +var arr = []; +arr.push( 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ); +bool = isBigUint64Array( arr ); console.error( bool ); // => false diff --git a/lib/node_modules/@stdlib/math/strided/special/acoversin-by/test/test.main.js b/lib/node_modules/@stdlib/math/strided/special/acoversin-by/test/test.main.js index 34e5907d4656..0b23a9e6650e 100644 --- a/lib/node_modules/@stdlib/math/strided/special/acoversin-by/test/test.main.js +++ b/lib/node_modules/@stdlib/math/strided/special/acoversin-by/test/test.main.js @@ -74,7 +74,8 @@ tape( 'the function computes the inverse coversed sine via a callback function', acoversinBy( x.length, x, 1, y, 1, accessor ); t.deepEqual( y, expected, 'deep equal' ); - x = new Array( 5 ); // sparse array + x = [ , , , , ]; // eslint-disable-line no-sparse-arrays + x.length(5); 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 inverse coversed sine via a callback function', acoversinBy( x.length, x, 1, y, 1, accessor ); t.deepEqual( y, expected, 'deep equal' ); - x = new Array( 5 ); // sparse array + x = [ , , , , ]; // eslint-disable-line no-sparse-arrays + x.length(5); x[ 2 ] = rand(); y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ]; From e44c040879d7c4c2c459aa361712bc1d22d2d37d Mon Sep 17 00:00:00 2001 From: MANDEep22332 Date: Wed, 18 Mar 2026 08:57:02 +0000 Subject: [PATCH 2/4] fix: replace new Array() with array literals to fix lint errors --- .../math/strided/special/acoversin-by/test/test.main.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/math/strided/special/acoversin-by/test/test.main.js b/lib/node_modules/@stdlib/math/strided/special/acoversin-by/test/test.main.js index 0b23a9e6650e..836dae996ffa 100644 --- a/lib/node_modules/@stdlib/math/strided/special/acoversin-by/test/test.main.js +++ b/lib/node_modules/@stdlib/math/strided/special/acoversin-by/test/test.main.js @@ -75,7 +75,6 @@ tape( 'the function computes the inverse coversed sine via a callback function', t.deepEqual( y, expected, 'deep equal' ); x = [ , , , , ]; // eslint-disable-line no-sparse-arrays - x.length(5); y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ]; expected = [ 0.0, 0.0, 0.0, 0.0, 0.0 ]; @@ -84,7 +83,7 @@ tape( 'the function computes the inverse coversed sine via a callback function', t.deepEqual( y, expected, 'deep equal' ); x = [ , , , , ]; // eslint-disable-line no-sparse-arrays - x.length(5); + x[ 2 ] = rand(); y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ]; From 213e2b3597089b68e9990c88a2ddee75e66bb124 Mon Sep 17 00:00:00 2001 From: MANDEep22332 Date: Wed, 18 Mar 2026 09:05:49 +0000 Subject: [PATCH 3/4] fix: use Array.from for sparse arrays to fix lint errors --- .../special/acoversin-by/test/test.main.js | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/lib/node_modules/@stdlib/math/strided/special/acoversin-by/test/test.main.js b/lib/node_modules/@stdlib/math/strided/special/acoversin-by/test/test.main.js index 836dae996ffa..39c97d5f0edc 100644 --- a/lib/node_modules/@stdlib/math/strided/special/acoversin-by/test/test.main.js +++ b/lib/node_modules/@stdlib/math/strided/special/acoversin-by/test/test.main.js @@ -74,17 +74,16 @@ tape( 'the function computes the inverse coversed sine via a callback function', acoversinBy( x.length, x, 1, y, 1, accessor ); t.deepEqual( y, expected, 'deep equal' ); - x = [ , , , , ]; // eslint-disable-line no-sparse-arrays - y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ]; - - expected = [ 0.0, 0.0, 0.0, 0.0, 0.0 ]; + x = Array.from( { 'length': 5 } ); // sparse array +y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ]; - acoversinBy( x.length, x, 1, y, 1, accessor ); - t.deepEqual( y, expected, 'deep equal' ); +expected = [ 0.0, 0.0, 0.0, 0.0, 0.0 ]; - x = [ , , , , ]; // eslint-disable-line no-sparse-arrays +acoversinBy( x.length, x, 1, y, 1, accessor ); +t.deepEqual( y, expected, 'deep equal' ); - x[ 2 ] = rand(); +x = Array.from( { 'length': 5 } ); // sparse array +x[ 2 ] = rand(); y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ]; expected = y.slice(); From 78c6a887e738610d9b5f5ee84e6529af61f07b18 Mon Sep 17 00:00:00 2001 From: MANDEep22332 Date: Wed, 18 Mar 2026 09:13:48 +0000 Subject: [PATCH 4/4] fix: use array literal with length property for sparse arrays --- .../special/acoversin-by/test/test.main.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/lib/node_modules/@stdlib/math/strided/special/acoversin-by/test/test.main.js b/lib/node_modules/@stdlib/math/strided/special/acoversin-by/test/test.main.js index 39c97d5f0edc..93db498e45ff 100644 --- a/lib/node_modules/@stdlib/math/strided/special/acoversin-by/test/test.main.js +++ b/lib/node_modules/@stdlib/math/strided/special/acoversin-by/test/test.main.js @@ -74,16 +74,18 @@ tape( 'the function computes the inverse coversed sine via a callback function', acoversinBy( x.length, x, 1, y, 1, accessor ); t.deepEqual( y, expected, 'deep equal' ); - x = Array.from( { 'length': 5 } ); // sparse array -y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ]; + x = []; // sparse array + x.length = 5; + y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ]; -expected = [ 0.0, 0.0, 0.0, 0.0, 0.0 ]; + expected = [ 0.0, 0.0, 0.0, 0.0, 0.0 ]; -acoversinBy( x.length, x, 1, y, 1, accessor ); -t.deepEqual( y, expected, 'deep equal' ); + acoversinBy( x.length, x, 1, y, 1, accessor ); + t.deepEqual( y, expected, 'deep equal' ); -x = Array.from( { 'length': 5 } ); // sparse array -x[ 2 ] = rand(); + x = []; // sparse array + x.length = 5; + x[ 2 ] = rand(); y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ]; expected = y.slice();