Open
Description
Most appropriate sub-area of p5.js?
- Accessibility
- Color
- Core/Environment/Rendering
- Data
- DOM
- Events
- Image
- IO
- Math
- Typography
- Utilities
- WebGL
- Build process
- Unit testing
- Internationalization
- Friendly errors
- Other (specify if possible)
p5.js version
2.0.0-beta.4
Web browser and version
No response
Operating system
No response
Steps to reproduce this
Steps:
- Use
print()
with more than 1 arguments will cause FES to print an incorrect message🌸 p5.js says: Expected at most 1 argument, but received more in print(). For more information, see https://p5js.org/reference/p5/print.
- It should not be printing that message as
print()
likeconsole.log()
accepts any number of arguments. This should either be fixed in the reference and/or in FES parameter validation logic itself.
Snippet:
function setup() {
createCanvas(400, 400);
print(1, 2);
}