Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(parallel): avoid range error with empty array #337

Merged
merged 2 commits into from
Jan 7, 2025

Conversation

aleclarson
Copy link
Member

@aleclarson aleclarson commented Jan 7, 2025

Summary

Passing an empty array to parallel resulted in a clamp range error.

Related issue, if any:

Fixes #336

For any code change,

  • Related documentation has been updated, if needed
  • Related tests have been added or updated, if needed
  • Related benchmarks have been added or updated, if needed
  • Release notes in next-minor.md or next-major.md have been added, if needed

Does this PR introduce a breaking change?

No

Bundle impact

Status File Size 1 Difference
M src/async/parallel.ts 1720 +22 (+1%)

Footnotes

  1. Function size includes the import dependencies of the function.

@aleclarson aleclarson changed the title fix(parallel): clamp error with empty array fix(parallel): avoid range error with empty array Jan 7, 2025
@aleclarson aleclarson merged commit f16445d into radashi-org:main Jan 7, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: parallel throws invalid clamp range error
1 participant