Skip to content

Don't use push(...arr) in GeometryBuilder for long vertex arrays#8789

Merged
davepagurek merged 1 commit into
dev-2.0from
fix/push-array-spread
May 13, 2026
Merged

Don't use push(...arr) in GeometryBuilder for long vertex arrays#8789
davepagurek merged 1 commit into
dev-2.0from
fix/push-array-spread

Conversation

@davepagurek
Copy link
Copy Markdown
Contributor

@davepagurek davepagurek commented May 13, 2026

Resolves #8788

Changes:

  • Instead of spreading an array into arguments of push(), which breaks if the array is bigger than the max number of function arguments in javascript, GeometryBuilder now uses a loop.

Non-crashing version of the sketch in the issue: https://editor.p5js.org/davepagurek/sketches/n6BJZ0GWI

PR Checklist

@p5-bot
Copy link
Copy Markdown

p5-bot Bot commented May 13, 2026

Continuous Release

CDN link

Published Packages

Commit hash: c23d1c0

Previous deployments

This is an automated message.

@davepagurek davepagurek merged commit d7e16b5 into dev-2.0 May 13, 2026
8 checks passed
@davepagurek davepagurek deleted the fix/push-array-spread branch May 13, 2026 13:52
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.

1 participant