Skip to content

Commit 1a7089b

Browse files
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 ---
1 parent 50367fe commit 1a7089b

File tree

1 file changed

+4
-2
lines changed
  • lib/node_modules/@stdlib/math/strided/special/abs-by/test

1 file changed

+4
-2
lines changed

lib/node_modules/@stdlib/math/strided/special/abs-by/test/test.main.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,17 @@ tape( 'the function computes the absolute value of each indexed strided array el
6262
absBy( x.length, x, 1, y, 1, accessor );
6363
t.deepEqual( y, expected, 'deep equal' );
6464

65-
x = new Array( 5 ); // sparse array
65+
x = [];
66+
x.length = 5; // sparse array
6667
y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];
6768

6869
expected = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];
6970

7071
absBy( x.length, x, 1, y, 1, accessor );
7172
t.deepEqual( y, expected, 'deep equal' );
7273

73-
x = new Array( 5 ); // sparse array
74+
x = [];
75+
x.length = 5; // sparse array
7476
x[ 2 ] = -3.0;
7577
y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];
7678

0 commit comments

Comments
 (0)