Most appropriate sub-area of p5.js?
p5.js version
2.0.4
Web browser and version
Chrome
Operating system
Windows
Steps to reproduce this
Steps:
- console.log(min(Infinity,3));
- console.log(max(3,-Infinity));
- until 2.0.3, it throws no error. 2.0.4 and 2.0.5 throws friendly error. (There is no problem in getting the value.)
Snippet:
function setup() {
createCanvas(windowWidth, windowHeight);
background(100);
console.log(min(Infinity,3));
console.log(max(3,-Infinity));
}
2.0.3
no error.
2.0.4, 2.0.5
friendly error occurs.
p5.disableFriendlyErrors = true;
This might solve the problem, but most users probably don't want to go through the hassle.