janpaul123/paperprograms

Log in editor shows duplicate log messages

Closed this issue · 0 comments

Example:

// Program 7
importScripts('paper.js');

(async () => {
  var i = 0;

  setInterval(async () => {
    console.log(i++);

  }, 2000);
})();

Log output in editor:

console.log[program:9:13]: 0
console.log[program:9:13]: 0
console.log[program:9:13]: 0
console.log[program:9:13]: 0
console.log[program:9:13]: 0
console.log[program:9:13]: 1
console.log[program:9:13]: 1
console.log[program:9:13]: 1
console.log[program:9:13]: 1
console.log[program:9:13]: 2
console.log[program:9:13]: 2
console.log[program:9:13]: 2
console.log[program:9:13]: 3
console.log[program:9:13]: 3
console.log[program:9:13]: 4

I think the flushing of the log in the editor isn't working correctly but I haven't confirmed that yet.