From e8d3c79042c80198d4222ed32ca3923a20f86536 Mon Sep 17 00:00:00 2001 From: bhumikasudarshani-cmd Date: Thu, 9 Apr 2026 10:25:54 +0000 Subject: [PATCH 1/6] chore: fix JavaScript lint errors (issue #11327) --- lib/node_modules/@stdlib/error/tools/msg2id/lib/index.js | 2 +- lib/node_modules/@stdlib/math/base/special/roundb/test/test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/error/tools/msg2id/lib/index.js b/lib/node_modules/@stdlib/error/tools/msg2id/lib/index.js index 8b8f704684a7..a68eee335b7d 100644 --- a/lib/node_modules/@stdlib/error/tools/msg2id/lib/index.js +++ b/lib/node_modules/@stdlib/error/tools/msg2id/lib/index.js @@ -27,7 +27,7 @@ * var msg2id = require( '@stdlib/error/tools/msg2id' ); * * var v = msg2id( 'invalid option. `%s` option must be an array. Option: `%s`.' ); -* // returns '8t' +* // returns 8Z */ // MODULES // diff --git a/lib/node_modules/@stdlib/math/base/special/roundb/test/test.js b/lib/node_modules/@stdlib/math/base/special/roundb/test/test.js index ddb755865abd..56f7631234d4 100644 --- a/lib/node_modules/@stdlib/math/base/special/roundb/test/test.js +++ b/lib/node_modules/@stdlib/math/base/special/roundb/test/test.js @@ -162,7 +162,7 @@ tape( 'the function supports rounding a numeric value to a desired number of dec tape( 'due to floating-point rounding error, rounding a numeric value can result in unexpected behavior', function test( t ) { var x; - x = 0.2 + 0.1; // => 0.30000000000000004 + x = 0.2 + 0.1; // returns 0.30000000000000004 t.strictEqual( roundb( x, -16, 10 ), 0.3000000000000001, 'equals 0.3000000000000001 and not 0.3' ); x = 24.616838129811768; From c5eb64a9db80805088765528701a653f9b88b638 Mon Sep 17 00:00:00 2001 From: bhumikasudarshani-cmd Date: Mon, 13 Apr 2026 17:31:59 +0000 Subject: [PATCH 2/6] fix: add quotes to return value in msg2id comment --- lib/node_modules/@stdlib/error/tools/msg2id/lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/error/tools/msg2id/lib/index.js b/lib/node_modules/@stdlib/error/tools/msg2id/lib/index.js index a68eee335b7d..4a2c2d9a6155 100644 --- a/lib/node_modules/@stdlib/error/tools/msg2id/lib/index.js +++ b/lib/node_modules/@stdlib/error/tools/msg2id/lib/index.js @@ -27,7 +27,7 @@ * var msg2id = require( '@stdlib/error/tools/msg2id' ); * * var v = msg2id( 'invalid option. `%s` option must be an array. Option: `%s`.' ); -* // returns 8Z +* // returns '8Z' */ // MODULES // From 9f7659a3d6b76e8b2a1f14ca637aa5bbfb511cf3 Mon Sep 17 00:00:00 2001 From: bhumikasudarshani-cmd Date: Tue, 14 Apr 2026 13:22:14 +0000 Subject: [PATCH 3/6] fix: replace new Array() constructor with array literal --- .../assert/is-readable-property-in/benchmark/benchmark.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/assert/is-readable-property-in/benchmark/benchmark.js b/lib/node_modules/@stdlib/assert/is-readable-property-in/benchmark/benchmark.js index 63a39eb62326..a4555e335c27 100644 --- a/lib/node_modules/@stdlib/assert/is-readable-property-in/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/assert/is-readable-property-in/benchmark/benchmark.js @@ -33,7 +33,8 @@ bench( pkg, function benchmark( b ) { var arr; var i; - arr = new Array( 100 ); + arr = []; + arr.length = 100; b.tic(); for ( i = 0; i < b.iterations; i++ ) { From 240dd8e7a2bdd4fcd895cb0c8e5ce7c9eca4502b Mon Sep 17 00:00:00 2001 From: Athan Date: Wed, 15 Apr 2026 21:55:34 -0700 Subject: [PATCH 4/6] Apply suggestions from code review Co-authored-by: Athan Signed-off-by: Athan --- lib/node_modules/@stdlib/error/tools/msg2id/lib/index.js | 2 +- lib/node_modules/@stdlib/math/base/special/roundb/test/test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/error/tools/msg2id/lib/index.js b/lib/node_modules/@stdlib/error/tools/msg2id/lib/index.js index 4a2c2d9a6155..8b8f704684a7 100644 --- a/lib/node_modules/@stdlib/error/tools/msg2id/lib/index.js +++ b/lib/node_modules/@stdlib/error/tools/msg2id/lib/index.js @@ -27,7 +27,7 @@ * var msg2id = require( '@stdlib/error/tools/msg2id' ); * * var v = msg2id( 'invalid option. `%s` option must be an array. Option: `%s`.' ); -* // returns '8Z' +* // returns '8t' */ // MODULES // diff --git a/lib/node_modules/@stdlib/math/base/special/roundb/test/test.js b/lib/node_modules/@stdlib/math/base/special/roundb/test/test.js index 56f7631234d4..ddb755865abd 100644 --- a/lib/node_modules/@stdlib/math/base/special/roundb/test/test.js +++ b/lib/node_modules/@stdlib/math/base/special/roundb/test/test.js @@ -162,7 +162,7 @@ tape( 'the function supports rounding a numeric value to a desired number of dec tape( 'due to floating-point rounding error, rounding a numeric value can result in unexpected behavior', function test( t ) { var x; - x = 0.2 + 0.1; // returns 0.30000000000000004 + x = 0.2 + 0.1; // => 0.30000000000000004 t.strictEqual( roundb( x, -16, 10 ), 0.3000000000000001, 'equals 0.3000000000000001 and not 0.3' ); x = 24.616838129811768; From df953b4f8cba2eb37ec950171778f838d5ae5927 Mon Sep 17 00:00:00 2001 From: Athan Date: Wed, 15 Apr 2026 21:56:22 -0700 Subject: [PATCH 5/6] Apply suggestions from code review Co-authored-by: Athan Signed-off-by: Athan --- .../assert/is-readable-property-in/benchmark/benchmark.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/assert/is-readable-property-in/benchmark/benchmark.js b/lib/node_modules/@stdlib/assert/is-readable-property-in/benchmark/benchmark.js index a4555e335c27..79aab52209f1 100644 --- a/lib/node_modules/@stdlib/assert/is-readable-property-in/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/assert/is-readable-property-in/benchmark/benchmark.js @@ -33,8 +33,7 @@ bench( pkg, function benchmark( b ) { var arr; var i; - arr = []; - arr.length = 100; + arr = new Array( 100 ); // eslint-disable-line stdlib/no-new-array b.tic(); for ( i = 0; i < b.iterations; i++ ) { From a58aeddb06a098a0f3c5409c4e9533d07f0c3426 Mon Sep 17 00:00:00 2001 From: Athan Date: Wed, 15 Apr 2026 21:56:39 -0700 Subject: [PATCH 6/6] Apply suggestions from code review Co-authored-by: Athan Signed-off-by: Athan --- .../assert/is-readable-property-in/benchmark/benchmark.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/assert/is-readable-property-in/benchmark/benchmark.js b/lib/node_modules/@stdlib/assert/is-readable-property-in/benchmark/benchmark.js index 79aab52209f1..b1150f2e9a34 100644 --- a/lib/node_modules/@stdlib/assert/is-readable-property-in/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/assert/is-readable-property-in/benchmark/benchmark.js @@ -33,7 +33,7 @@ bench( pkg, function benchmark( b ) { var arr; var i; - arr = new Array( 100 ); // eslint-disable-line stdlib/no-new-array + arr = new Array( 100 ); // eslint-disable-line stdlib/no-new-array b.tic(); for ( i = 0; i < b.iterations; i++ ) {