p5.js-web-editor
p5.js-web-editor copied to clipboard
Cannot console.log objects having circular references
p5.js version
1.9.4
What is your operating system?
Windows
Web browser and version
Chrome 126.0.6478.127
Actual Behavior
Printing a p5.Image object breaks the console.
Expected Behavior
p5.Image should be printable.
Steps to reproduce
Steps:
- Copy the following code in a sketch
- Running the code prints nothing on the console
- Commenting out the third line prints "Hi".
Snippet:
let img = createImage(20, 20);
console.log("Hi");
console.log(img);