Skip to content

chore: fix JavaScript lint errors (issue #10084)#10728

Open
travisbreaks wants to merge 1 commit intostdlib-js:developfrom
travisbreaks:fix/issue-10084
Open

chore: fix JavaScript lint errors (issue #10084)#10728
travisbreaks wants to merge 1 commit intostdlib-js:developfrom
travisbreaks:fix/issue-10084

Conversation

@travisbreaks
Copy link
Contributor

Description

Replace new Array( 5 ) with x = []; x.length = 5; in @stdlib/math/strided/special/asinh-by/test/test.main.js to satisfy the stdlib/no-new-array lint rule. The sparse array behavior is preserved by setting .length on an empty array literal.

Related Issues

Resolves #10084

Checklist

AI Assistance

  • Yes

  • No

  • Code generation (e.g., when writing an implementation or fixing a bug)

  • Test/benchmark generation

  • Documentation (including examples)

  • Research and understanding

Co-authored-by: Egger egger@horny-toad.com

Replace `new Array( 5 )` with `x = []; x.length = 5;` to satisfy
the `stdlib/no-new-array` lint rule.

Resolves stdlib-js#10084

Co-authored-by: Egger <egger@horny-toad.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@stdlib-bot stdlib-bot added Math Issue or pull request specific to math functionality. Good First PR A pull request resolving a Good First Issue. First-time Contributor A pull request from a contributor who has never previously committed to the project repository. Needs Review A pull request which needs code review. Potential Duplicate There might be another pull request resolving the same issue. and removed First-time Contributor A pull request from a contributor who has never previously committed to the project repository. labels Mar 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Good First PR A pull request resolving a Good First Issue. Math Issue or pull request specific to math functionality. Needs Review A pull request which needs code review. Potential Duplicate There might be another pull request resolving the same issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix JavaScript lint errors

2 participants