You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which platform were you using when you encountered this?
Mobile/Tablet (touch devices)
Desktop/Laptop
Others (specify if possible)
Details about the bug:
p5.js version: 0.7.1
Web browser and version:
Operating System:
Steps to reproduce this:
In trying to work on processing/p5.js-web-editor#417, I noticed that sometimes using the flag p5.disableFriendlyErrors works, and other times it doesn't work. For example,
I believe the disabling refers to the removal of the type checking for arguments, which is what slows down the code. In the case of loading images or fonts, an error is returned by the browser if the file isn't found, and the FES just adds some info to make it a little clearer. We could of course prevent this, but it's not causing any performance slowdown in these cases. Or maybe we need to change the documentation and name of p5.disableFriendlyErrors to something like p5.disableParameterChecking? I don't know though, because this naming might be more confusing for beginners.. thoughts?
Nature of issue?
Most appropriate sub-area of p5.js?
Which platform were you using when you encountered this?
Details about the bug:
In trying to work on processing/p5.js-web-editor#417, I noticed that sometimes using the flag p5.disableFriendlyErrors works, and other times it doesn't work. For example,
won't display the friendly error, but
will still show the friendly error. Maybe it has to do with
loadFont()
being asynchronous? I notice the same behavior withloadImage()
as well.The text was updated successfully, but these errors were encountered: