From ed812576f44d22823e44862d0e152307792e94a3 Mon Sep 17 00:00:00 2001 From: Divit Jain Date: Mon, 29 Dec 2025 08:30:02 +0530 Subject: [PATCH] chore: fix JavaScript lint errors (issue #9419) --- 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: passed - task: lint_javascript_benchmarks status: na - 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 --- --- .../@stdlib/math/strided/special/abs-by/test/test.main.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/math/strided/special/abs-by/test/test.main.js b/lib/node_modules/@stdlib/math/strided/special/abs-by/test/test.main.js index 9808f30b8ba5..d9ef387f74f2 100644 --- a/lib/node_modules/@stdlib/math/strided/special/abs-by/test/test.main.js +++ b/lib/node_modules/@stdlib/math/strided/special/abs-by/test/test.main.js @@ -62,7 +62,8 @@ tape( 'the function computes the absolute value of each indexed strided array el absBy( 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 ]; @@ -70,7 +71,8 @@ tape( 'the function computes the absolute value of each indexed strided array el absBy( 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 ] = -3.0; y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];