From acd43153c32fb6d287359ad67f5f5f6f978e31ea Mon Sep 17 00:00:00 2001 From: Suyash Pathak Date: Sat, 17 Jan 2026 17:10:59 +0530 Subject: [PATCH 1/5] Update test.instance.set_nd.js Signed-off-by: Suyash Pathak --- .../fancy/test/test.instance.set_nd.js | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/lib/node_modules/@stdlib/ndarray/fancy/test/test.instance.set_nd.js b/lib/node_modules/@stdlib/ndarray/fancy/test/test.instance.set_nd.js index d01ad9860083..bb3169f02139 100644 --- a/lib/node_modules/@stdlib/ndarray/fancy/test/test.instance.set_nd.js +++ b/lib/node_modules/@stdlib/ndarray/fancy/test/test.instance.set_nd.js @@ -73,22 +73,22 @@ tape( 'a FancyArray constructor returns an instance which has a `set` method whi } t.end(); - function badValue( value, dim ) { - return function badValue() { - var args = new Array( shape.length+1 ); - var i; - - for ( i = 0; i < shape.length; i++ ) { - if ( i === dim ) { - args[ i ] = value; - } else { - args[ i ] = 0; - } +function badValue( value, dim ) { + return function badValue() { + var args = []; + var i; + + for ( i = 0; i < shape.length; i++ ) { + if ( i === dim ) { + args.push( value ); + } else { + args.push( 0 ); } - args[ i ] = 10.0; - arr.set.apply( arr, args ); - }; - } + } + args.push( 10.0 ); + arr.set.apply( arr, args ); + }; +} }); tape( 'a FancyArray constructor returns an instance which has a `set` method for setting an array element using subscripts (>4d; row-major)', function test( t ) { From d033ec07c2b9102b55e3de9c7c10582adad54cfc Mon Sep 17 00:00:00 2001 From: Suyash Pathak Date: Sat, 17 Jan 2026 17:14:56 +0530 Subject: [PATCH 2/5] Update benchmark.js Signed-off-by: Suyash Pathak --- .../assert/is-negative-integer-array/benchmark/benchmark.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/assert/is-negative-integer-array/benchmark/benchmark.js b/lib/node_modules/@stdlib/assert/is-negative-integer-array/benchmark/benchmark.js index 8ed150018d08..e9f5c9042346 100644 --- a/lib/node_modules/@stdlib/assert/is-negative-integer-array/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/assert/is-negative-integer-array/benchmark/benchmark.js @@ -50,7 +50,7 @@ function createBenchmark( fcn, len, primitives ) { } } else { for ( i = 0; i < len; i++ ) { - x.push( new Number( -1.0 ) ); // eslint-disable-line no-new-wrappers + x.push( new Number( -1.0 ) ); } } return benchmark; From a219c25733ec01e61e09b388195a8aac567a7a2a Mon Sep 17 00:00:00 2001 From: Suyash Pathak Date: Sat, 17 Jan 2026 17:25:41 +0530 Subject: [PATCH 3/5] Update test.instance.set_nd.js Signed-off-by: Suyash Pathak --- .../fancy/test/test.instance.set_nd.js | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/lib/node_modules/@stdlib/ndarray/fancy/test/test.instance.set_nd.js b/lib/node_modules/@stdlib/ndarray/fancy/test/test.instance.set_nd.js index bb3169f02139..db393a32c2e8 100644 --- a/lib/node_modules/@stdlib/ndarray/fancy/test/test.instance.set_nd.js +++ b/lib/node_modules/@stdlib/ndarray/fancy/test/test.instance.set_nd.js @@ -73,22 +73,22 @@ tape( 'a FancyArray constructor returns an instance which has a `set` method whi } t.end(); -function badValue( value, dim ) { - return function badValue() { - var args = []; - var i; - - for ( i = 0; i < shape.length; i++ ) { - if ( i === dim ) { - args.push( value ); - } else { - args.push( 0 ); + function badValue( value, dim ) { + return function badValue() { + var args = []; + var i; + + for ( i = 0; i < shape.length; i++ ) { + if ( i === dim ) { + args.push( value ); + } else { + args.push( 0 ); + } } - } - args.push( 10.0 ); - arr.set.apply( arr, args ); - }; -} + args.push( 10.0 ); + arr.set.apply( arr, args ); + }; + } }); tape( 'a FancyArray constructor returns an instance which has a `set` method for setting an array element using subscripts (>4d; row-major)', function test( t ) { From 21aca0db97ef1e4de3ef64909092202635ae5b93 Mon Sep 17 00:00:00 2001 From: Suyash Pathak Date: Sun, 18 Jan 2026 02:09:40 +0530 Subject: [PATCH 4/5] Update benchmark.js Signed-off-by: Suyash Pathak --- .../is-negative-integer-array/benchmark/benchmark.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/node_modules/@stdlib/assert/is-negative-integer-array/benchmark/benchmark.js b/lib/node_modules/@stdlib/assert/is-negative-integer-array/benchmark/benchmark.js index e9f5c9042346..f516aa6f5bbe 100644 --- a/lib/node_modules/@stdlib/assert/is-negative-integer-array/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/assert/is-negative-integer-array/benchmark/benchmark.js @@ -26,6 +26,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var Number = require( '@stdlib/number/ctor' ); var pkg = require( './../package.json' ).name; var isNegativeIntegerArray = require( './../lib' ); +var format = require( '@stdlib/string/format' ); // FUNCTIONS // @@ -106,13 +107,13 @@ function main() { len = pow( 10, i ); f = createBenchmark( isNegativeIntegerArray, len, false ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); f = createBenchmark( isNegativeIntegerArray.primitives, len, true ); - bench( pkg+':primitives:len='+len, f ); + bench( format( '%s:primitives:len=%d', pkg, len ), f ); f = createBenchmark( isNegativeIntegerArray.objects, len, false ); - bench( pkg+':objects:len='+len, f ); + bench( format( '%s:objects:len=%d', pkg, len ), f ); } } From eef0025307d8673b64d6d5cd0df71fc162175c89 Mon Sep 17 00:00:00 2001 From: Suyash Pathak Date: Sun, 18 Jan 2026 02:16:00 +0530 Subject: [PATCH 5/5] Update benchmark.js Signed-off-by: Suyash Pathak --- .../assert/is-negative-integer-array/benchmark/benchmark.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/assert/is-negative-integer-array/benchmark/benchmark.js b/lib/node_modules/@stdlib/assert/is-negative-integer-array/benchmark/benchmark.js index f516aa6f5bbe..8c995a492262 100644 --- a/lib/node_modules/@stdlib/assert/is-negative-integer-array/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/assert/is-negative-integer-array/benchmark/benchmark.js @@ -23,10 +23,10 @@ var bench = require( '@stdlib/bench' ); var isBoolean = require( '@stdlib/assert/is-boolean' ).isPrimitive; var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var Number = require( '@stdlib/number/ctor' ); var pkg = require( './../package.json' ).name; var isNegativeIntegerArray = require( './../lib' ); -var format = require( '@stdlib/string/format' ); // FUNCTIONS //