Skip to content

Fix saveGif to silent no-op for non-positive duration#8842

Closed
Chessing234 wants to merge 3 commits into
processing:mainfrom
Chessing234:fix-savegif-no-op
Closed

Fix saveGif to silent no-op for non-positive duration#8842
Chessing234 wants to merge 3 commits into
processing:mainfrom
Chessing234:fix-savegif-no-op

Conversation

@Chessing234
Copy link
Copy Markdown

Bug: saveGif threw an error for non-positive durations. Root cause: The duration validation incorrectly raised a RangeError instead of returning early. Fix is correct because it ensures p5.js returns silently on invalid inputs, keeping with its forgiving API design, while also updating the test suite to expect no-op behavior.

@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