processing / p5.js

p5.js is a client-side JS platform that empowers artists, designers, students, and anyone to learn to code and express themselves creatively on the web. It is based on the core principles of Processing. http://twitter.com/p5xjs —
http://p5js.org/
GNU Lesser General Public License v2.1
21.1k stars 3.22k forks source link

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

Closed limzykenneth closed 1 month ago

limzykenneth commented 1 month ago

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