### p5.js version 2.3.4 ### What is your operating system? Mac OS ### Web browser and version Firefox 158.0 ### Actual Behavior When i use private variable class, combined with while loop in draw() function, run freeze ! Whitout while loop, it's ok. ### Expected Behavior That the Web editor accept private variable. ### Steps to reproduce ``` let i = 0; let person; function setup() { createCanvas(400,` 400); person = new Person('George', 20); person.display(); } function draw() { background(220); textSize(50); fill(0); text('Hello',50, 50); while(i < 10) { console.log(`i ${i}`); i += 1; } } class Person { #name; #age; constructor(name, age) { this.#name = name; this.#age = age; } display() { console.log(`name ${this.#name} age ${this.#age}`); } } ```
Activity