Most appropriate sub-area of p5.js?
p5.js version
2.3.0
Web browser and version
Brave 1.90.122
Operating system
Linux Mint 22.1
Steps to reproduce this
Steps:
- Run the snippet below. It has an error; the first param should be a vector.
- The expected output is a friendly error message "The v1 parameter should be of type Array or p5.Vector"
- Instead, it gives an error "TypeError: this._friendlyError is not a function"
Snippet:
function setup() {
print(p5.Vector.equals(1, createVector(1, 2)));
}
Discussion
Friendly errors for vectors seem to work fine for instance methods like setValue(), but not for static methods like p5.Vector.equals.
Most appropriate sub-area of p5.js?
p5.js version
2.3.0
Web browser and version
Brave 1.90.122
Operating system
Linux Mint 22.1
Steps to reproduce this
Steps:
Snippet:
Discussion
Friendly errors for vectors seem to work fine for instance methods like
setValue(), but not for static methods likep5.Vector.equals.