From a0ac1e27f95842ebfef6d8519494c40107181e9a Mon Sep 17 00:00:00 2001 From: Aniket Sonawane Date: Sat, 21 Mar 2026 13:32:17 +0530 Subject: [PATCH 1/2] chore: fix JavaScript lint errors (issue #11065) --- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: passed - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- .../stats/ztest/benchmark/benchmark.js | 24 +++++++------------ 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/lib/node_modules/@stdlib/stats/ztest/benchmark/benchmark.js b/lib/node_modules/@stdlib/stats/ztest/benchmark/benchmark.js index 5515659cc458..ea74d0015385 100644 --- a/lib/node_modules/@stdlib/stats/ztest/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/stats/ztest/benchmark/benchmark.js @@ -34,14 +34,12 @@ var ztest = require( './../lib' ); bench( pkg, function benchmark( b ) { var result; var sigma; - var len; var x; var i; - x = new Array( 100 ); - len = x.length; - for ( i = 0; i < len; i++ ) { - x[ i ] = randu()*50.0; + x = []; + for ( i = 0; i < 100; i++ ) { + x.pusha( randu()*50.0 ); } sigma = stdev( 0.0, 50.0 ); @@ -65,14 +63,12 @@ bench( pkg+'::one-sided', function benchmark( b ) { var result; var sigma; var opts; - var len; var x; var i; - x = new Array( 100 ); - len = x.length; - for ( i = 0; i < len; i++ ) { - x[ i ] = randu()*50.0; + x = []; + for ( i = 0; i < 100; i++ ) { + x.push( randu()*50.0 ); } opts = { 'alternative': 'less' @@ -100,14 +96,12 @@ bench( pkg+':print', function benchmark( b ) { var result; var output; var sigma; - var len; var x; var i; - x = new Array( 100 ); - len = x.length; - for ( i = 0; i < len; i++ ) { - x[ i ] = randu()*50.0; + x = []; + for ( i = 0; i < 100; i++ ) { + x.push( randu()*50.0 ); } sigma = stdev( 0.0, 50.0 ); result = ztest( x, sigma ); From 19baa7a0726f6f8f5a53b860a71a1735a156023d Mon Sep 17 00:00:00 2001 From: Aniket Sonawane Date: Sat, 21 Mar 2026 13:37:17 +0530 Subject: [PATCH 2/2] chore: fix JavaScript lint errors (issue #11065) --- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: passed - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- lib/node_modules/@stdlib/stats/ztest/benchmark/benchmark.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/stats/ztest/benchmark/benchmark.js b/lib/node_modules/@stdlib/stats/ztest/benchmark/benchmark.js index ea74d0015385..f6f908eb1aad 100644 --- a/lib/node_modules/@stdlib/stats/ztest/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/stats/ztest/benchmark/benchmark.js @@ -39,7 +39,7 @@ bench( pkg, function benchmark( b ) { x = []; for ( i = 0; i < 100; i++ ) { - x.pusha( randu()*50.0 ); + x.push( randu()*50.0 ); } sigma = stdev( 0.0, 50.0 );