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

textWrap() parameter validation uses FES instead of throwing error #7009

Merged
merged 1 commit into from
May 4, 2024

Conversation

limzykenneth
Copy link
Member

Resolves #6997

Changes:

In the textWrap() function for parameter type checking, use FES p5._validateParameters() instead of manual checking and throwing error for a more recoverable state overall.

Also removed unit test that expects the function to throw an error on incorrect argument type.

PR Checklist

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.

canvas doesn't load, no error thrown when invalid parameter passed to textWrap()
2 participants