Skip to content

Fix saveGif duration validation to be a silent no-op#8841

Closed
Chessing234 wants to merge 2 commits into
processing:mainfrom
Chessing234:fix/savegif-duration
Closed

Fix saveGif duration validation to be a silent no-op#8841
Chessing234 wants to merge 2 commits into
processing:mainfrom
Chessing234:fix/savegif-duration

Conversation

@Chessing234
Copy link
Copy Markdown

Bug: saveGif throws a RangeError if duration is <= 0.

Root cause: Explicit parameter validation in saveGif throws an error if duration <= 0, which is inconsistent with how p5.js usually handles unexpected input.

Fix: Changed the validation to be a silent no-op (early return) instead of throwing an error, to align with the rest of the codebase.

@Chessing234 Chessing234 closed this by deleting the head repository May 29, 2026
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