Nature of issue?
Most appropriate sub-area of p5.js?
Which platform were you using when you encountered this?
Details about the bug:
Posted originally in processing/p5.js-web-editor#614
Calling print(x) with an undefined variable brings up the browser print dialog. I noticed that there was a similar issue over on processing/p5.js-web-editor#474 but that seemed to be more focused on calling print outside of setup or draw. In this case, it just happens if a variable becomes undefined.
One of my students stumbled across this by accidentally providing the dist function without enough parameters let x = dist(10, 35), which ended up returning undefined.
- p5.js version: 0.6.0
- Web browser and version: Chrome/Firefox/Safari
- Operating System: MacOSX 10.12.6
- Steps to reproduce this:Alpha editor link
Nature of issue?
Most appropriate sub-area of p5.js?
Which platform were you using when you encountered this?
Details about the bug:
Posted originally in processing/p5.js-web-editor#614
Calling print(x) with an undefined variable brings up the browser print dialog. I noticed that there was a similar issue over on processing/p5.js-web-editor#474 but that seemed to be more focused on calling print outside of setup or draw. In this case, it just happens if a variable becomes undefined.
One of my students stumbled across this by accidentally providing the dist function without enough parameters
let x = dist(10, 35), which ended up returning undefined.